【发布时间】:2015-03-21 05:45:48
【问题描述】:
脚本应该如下:
按“C”:启动/停止脚本
鼠标左键:开始/停止循环
在循环内部:按住鼠标左键的同时,重复鼠标左键,直到我抬起手指为止。
- 每次点击鼠标都会回到屏幕中心。
每次单击后鼠标向下移动 X 像素,我的脚本非常慢。 它会点击 .. 点击 .. 点击 而不是 ClickClickClick :(.
我现在把它改成了这个,但是即使不按住鼠标左键,它也总是被激活,我也不能用 C 停止/启动脚本。
HotKey, ~$*LButton, myLButtonAction ; Activate the hotkey by default
return
~c:: ; configure a Hotkey: c will enable / disable your LButton actions
HotKey, ~$*LButton, toggle ; ON / OFF
return
myLButtonAction: ;cnote: this is NOT a hotkey, it's a label
Loop
{
Click
Sleep 7,516 ;your loop actions (see question code)
}
return ; don't forget your returns at the end of a label / hotkey
【问题讨论】:
-
“停止/启动”是什么意思?
-
当按下“C”时,脚本会停止,以便我可以正常使用鼠标。再次按“C”激活脚本,这样我就可以在按住 LMB 的同时左键单击。
标签: autohotkey