单击运行,双击退出

b106(timeout = 400)           ; b106 此处为变量,需要重新命名。
{
	tout := timeout/1000
	key := RegExReplace(A_ThisHotKey,"[\*\~\$\#\+\!\^]")
	Loop
	{
     	 t := A_TickCount
      	KeyWait %key%
      	Pattern .= A_TickCount-t > timeout
      	KeyWait %key%,DT%tout%
      	If (ErrorLevel)
	Return Pattern
	}
}
+Esc::  
   p := b106()                          ; b106 此处为变量,需要重新命名。
          If (p = "0")                    ; 0 单击
Run, c:\3\9 FSCapture97\FSCapture.exe , , min
        	Sleep, 800
        	SendInput, !+x                                       
If (p = "00")                         ; 00 双击   1为常按
        Process, Close, FSCapture.exe
return
转载请注明出处