lua右mousebutton点击器
我希望我的头衔还可以。
我有一个用于GHUB的工作脚本,当按下Mousebutton 4时,它会垃圾邮件留下mousebutton:
function OnEvent(event, arg)
if(event == "PROFILE_ACTIVATED") then
EnablePrimaryMouseButtonEvents(true);
elseif(event == "PROFILE_DEACTIVATED") then
end
if IsMouseButtonPressed(4)then
repeat
PressMouseButton(1)
Sleep(1)
ReleaseMouseButton(1)
until not IsMouseButtonPressed(4)
end
end
如何在同一脚本中添加相同的函数,但是当按下MouseButton 5时,右键单垃圾邮件?
I hope my title is okay.
I have this working script for Ghub that when mousebutton 4 is pressed, it spams Left mousebutton:
function OnEvent(event, arg)
if(event == "PROFILE_ACTIVATED") then
EnablePrimaryMouseButtonEvents(true);
elseif(event == "PROFILE_DEACTIVATED") then
end
if IsMouseButtonPressed(4)then
repeat
PressMouseButton(1)
Sleep(1)
ReleaseMouseButton(1)
until not IsMouseButtonPressed(4)
end
end
How can I add the same function in the same script but for rightclick spam when mousebutton 5 is pressed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果块类似于您已经拥有的,只需添加一个
:
Just add one more
if
block similar to the one you already have: