Hello everyone ! I've been using autohotkey for a long time now for basic scripts and I love it. But i'm having trouble setting up a script like I want it to. I've been trying to google the answer and didn't find anything that would solve my issue, so i'm turning to you guys for help
Basically I want the script to do this: When I hold down ''1'' I want the script to hold down ''f'' and ''r'' without the keys releasing all the time and when i release ''1'' I want ''r'' and ''r'' to be released at the same time.
Appreciate any help i can get.
Hold down two keys until you release
-
- Posts: 2
- Joined: 22 Apr 2017, 14:03
Re: Hold down two keys until you release
This preserves the autorepeat function. Sending f and r down fast while holding.
This creates just one down and up event.
Let me know if this helps.
Code: Select all
1::
SEND, {f Down}{r Down}
Return
1 Up::
SEND, {f Up}{r Up}
Return
Code: Select all
1::
SEND, {f Down}{r Down}
KeyWait, %A_ThisHotkey%
SEND, {f Up}{r Up}
Return
-
- Posts: 2
- Joined: 22 Apr 2017, 14:03
Re: Hold down two keys until you release
Thanks for the quick reply. It's working perfectly! <3 Thank you so much.
Who is online
Users browsing this forum: Google [Bot], robforAHK2, Rohwedder and 118 guests