Page 1 of 1

無法按Ctrl  Topic is solved

Posted: 06 Aug 2017, 03:29
by Noboru
[code=autohotkey file=Untitled.ahk][/code]

啟動此程式的時候無法按Ctrl...

程式碼:

#MaxThreadsPerHotkey 3
MButton::
#MaxThreadsPerHotkey 1
if KeepWinZRunning
{
KeepWinZRunning := false
return
}
KeepWinZRunning := true
Loop
{
Send q
Sleep 5
Send 3
Sleep 5
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}hh
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10
Send {RButton}
Sleep 10

if not KeepWinZRunning
break
}
KeepWinZRunning := false
return