[AHK-]鼠标长按

楼主: lan661203 (庙小狼)   2015-02-10 18:15:37
以下是在板上找到的程式码
#Persistent
D_times = 1000 ;1秒
~lbutton::
StartTime := A_TickCount
While GetKeyState("lbutton")
{
If (A_TickCount - StartTime > D_times)
Goto, mouse ;
}
Return
mouse:
send {click down} ;这里已修改鼠标左键按下
Return
但它会因为我的鼠标放开时,而停止鼠标按下的动作
我是想要鼠标按住一秒后自动按住 除非鼠标在点一下
否则它持续按住鼠标。

Links booklink

Contact Us: admin [ a t ] ucptt.com