有人帮我一些罗技或自动热键脚本,在那里按下鼠标右键,它也按下鼠标左键,这将持续到我释放鼠标右键!
发布于 2022-10-10 02:53:33
这是罗技的剧本。
CapsLock发光二极管必须开着。
local LMB_pressed
function OnEvent(event, arg)
if event == "MOUSE_BUTTON_PRESSED" and arg == 2 and IsKeyLockOn("capslock") then
PressMouseButton(1)
LMB_pressed = true
elseif event == "MOUSE_BUTTON_RELEASED" and arg == 2 and LMB_pressed then
LMB_pressed = false
ReleaseMouseButton(1)
elseif event == "PROFILE_DEACTIVATED" then
ReleaseMouseButton(1)
end
end
发布于 2022-10-10 16:48:41
AHK脚本:
~RButton::
while GetKeyState("RButton")
click
return
; Press F1 to disable/reanable the hotkey
F1:: Suspend
; Press F2 to exit the script
F2:: ExitApp
请参阅同时循环
编辑
如果click
在游戏中不起作用,试着用SendPlay {click}
或SendPlay {LButton}
代替它。
https://stackoverflow.com/questions/74009620
复制相似问题