Page 1 of 1

新手求教 如何让脚本长按shift键和鼠标左键  Topic is solved

Posted: 21 Apr 2024, 04:01
by HBK
自己试着写了写 发现按下运行键之后脚本会一直长按shift键和鼠标左键 没法停止

Re: 新手求教 如何让脚本长按shift键和鼠标左键

Posted: 21 Apr 2024, 13:36
by garry
你好 HBK

Code: Select all

#Requires Autohotkey v1.1
;------------------------
~$+Lbutton::   ;- SHIFT + LBUTTON
Loop
 {
 GetKeyState,Lmouse,LButton,P
    If Lmouse = U
        break
 tooltip,LBUTTON PRESSED 鼠标左键 running....		
 }
tooltip 
return
;------------
esc::exitapp    ;- quit script with ESC
;============