IsMouseButtonPressed 在游戏中总是判定为假
lua吧
全部回复
仅看楼主
level 2
掌轮 楼主
EnablePrimaryMouseButtonEvents(true)
function OnEvent(event, arg)
OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
if(event == "MOUSE_BUTTON_PRESSED" and arg == 1 and IsMouseButtonPressed(3) ) then
Sleep(200)
PressKey(5)
Sleep(100)
ReleaseKey(5)
OutputLogMessage("12 \n")
end
if(event == "MOUSE_BUTTON_PRESSED" and arg == 2 and IsMouseButtonPressed(1) ) then
Sleep(200)
PressKey(5)
Sleep(100)
ReleaseKey(5)
OutputLogMessage("21 \n")
end
end
2023年02月27日 11点02分 1
level 2
掌轮 楼主
玩永杰无间的时候,想实现按住左键,再按右键的时候自动振刀,在控制台运行是没问题的,一进入游戏就没法实现了,最后判断应该是IsMouseButtonPressed在游戏的时候一直判定为负,各位大佬,怎么解决啊
2023年02月27日 11点02分 2
level 2
掌轮 楼主
救救孩子吧
2023年02月27日 11点02分 3
level 1
老哥解决了吗
2023年09月10日 05点09分 4
没有,后面赖的搞了
2023年09月10日 15点09分
@掌轮 我解决了 我开G模式就OK了 但是用了会 小黑屋了[阴险]
2023年09月10日 16点09分
@人潮iº 这个不可能小黑屋吧,鼠标宏而已,检测不出来的
2023年09月11日 01点09分
1