rommmcek wrote: ↑21 Nov 2020, 22:48
Try this one:
Code: Select all
1:: modif:= 1
Q::
If modif
Send Y
Else Send X
modif:= ""
Return
Hmm, I just commented above (sorry if you didn't see that, I figured it out quite quick, I should have done more research).
To clarify, I actually want every key to act normal until I press the 1 key. So, q sends q, unless I press 1; then it sends y. Didn't mean to mislead you there!
When I do that with your code I think it repeats it self (it said I sent 71 hotkeys in like 750 ms).
Anyway... if you DO want to help, perhaps you could help me figure out how to take this code:
Code: Select all
Keyboard := 0
1::Keyboard := 1
2::Keyboard := 2
3::Keyboard := 3
4::Keyboard := 4
#If (Keyboard = 2)
Q::
Send, t
Keyboard = 0
return
#If
#If (Keyboard = 2)
F::
Send, x
Keyboard = 0
return
#If
And mush it into one? Notice the two almost identical
blocks; I tried merging them and it didn't work unfortunately.
To clarify exactly what I want this time, every time I press a key it needs to revert back to Keyboard 0. Hence the Keyboard = 0 in every block. I don't think it's possible to merge them, but if you have any ideas feel free to post 'em! You know the whole deal with repeating stuff in the code world