I want to send a key which is held in a variable down. The reason it is held in a variable is because I use a gui for the user to input the key in question.
Currently this works:
Send %hotkey%
But this doesn't:
Send {%hotkey% down}
How can I make this work properly?
Try this code:
Version 1:
hotkey := "n"
Send {%hotkey% down}
Version 2:
!^z::
    hotkey := "n"
    Send {%hotkey% down}
return
Make sure that n is enclosed in "". Enclosing any text with "" means that you are assigning it as a text string. And variable used in a Send command should contain a text string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With