Search found 2 matches

by mickeyopq
29 Sep 2014, 23:46
Forum: 请求帮助
Topic: [已解決] BUG,組合鍵Ctrl+click無法被釋放
Replies: 3
Views: 2126

Re: BUG,組合鍵Ctrl+click無法被釋放

:D ,可以了,感恩。

Code: Select all

btn(k)       ;function
{
send {%k% down}
sleep 10
send {%k% up}
sleep 10
}
return

~f12::
Send, {LCtrl Down}
loop,{
    if( GetKeyState("f12" , "P") )
    {
    btn("Click")
    }
    else{
    send {LCtrl up}
    Break
    }
}
return
by mickeyopq
27 Sep 2014, 09:28
Forum: 请求帮助
Topic: [已解決] BUG,組合鍵Ctrl+click無法被釋放
Replies: 3
Views: 2126

[已解決] BUG,組合鍵Ctrl+click無法被釋放

btn(k) ;function { send {%k% down} sleep 70 send {%k% up} sleep 70 } return ~f12:: loop,{ if( GetKeyState("f12" , "P") ) {Send, {LCtrl Down} btn("Click") } else if ( GetKeyState("f12" , "U") ){ send {LCtrl up} } } return 腳本目的是為了,按著F12時,Ctrl會壓著,滑鼠左鍵會連點; 但我寫的腳本有個bug:壓了大約2~3秒,LCtrl會一直變壓著(keystate("LCt...

Go to advanced search