makaveeti Posted April 12, 2017 Share Posted April 12, 2017 I'm interested in a script where holding Button9 and button10 on my gamepad for 2 seconds will cause sorR.exe and AHK to exit. Here is my attempt. It works perfectly for button9 only. What needs adding to the code below so that holding both button9 and button10 together for 2 seconds executes the script? Joy9:: KeyWait,Joy9,T2 ;wait 2 seconds for release key If (ErrorLevel) ;more than 2 sec have passed { Process, Close, sorR.exe Exitapp } Return Quote Link to comment Share on other sites More sharing options...
DJQuad Posted April 14, 2017 Share Posted April 14, 2017 Try an approach like https://autohotkey.com/board/topic/91901-hold-2-buttons-for-4-seconds/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.