Not sure if the title is the best way to phrase it, but basically, while the active window is "WARFRAME" I want to make XButton1(pressed) hold down the ctrl and "e" keys, and when it is released, to release those keys. (so I can control how long the buttons are pressed)
I currently have
#IfWinActive WARFRAME
XButton1::
Send, {LControl Down}{e}{LControl Up}
Return
but I would like it to work more like (warning:pseudocode inbound)
#IfWinActive WARFRAME
XButton1(down)::
Send, {hold LControl Down}{hold e down}
XButton1(up)::
Send, {e up}{LControl Up}
Return
How to treat a single button as a combination of buttons? Topic is solved
Re: How to treat a single button as a combination of buttons?
The notes on how keys are remapped cover everything you want, I think. Just copy that but send 2 keys instead of 1
https://autohotkey.com/docs/misc/Remap.htm#Remarks
https://autohotkey.com/docs/misc/Remap.htm#Remarks
Re: How to treat a single button as a combination of buttons? Topic is solved
That pseudo code is verry nice. Gives a clear idea of what you want.
This is the conversion to real code:
Let me know how it works.
This is the conversion to real code:
Code: Select all
#IfWinActive WARFRAME
XButton1::
Send, {LControl Down}{e down}
Return
XButton1 up::
Send, {e up}{LControl Up}
Return
#IfWinActive
Re: How to treat a single button as a combination of buttons?
well that's straightforward enough, thanks
edit: doesnt seem to be working, it looks like the {e} command is releasing the control key being held down
second edit: it totally works, I was wrong
edit: doesnt seem to be working, it looks like the {e} command is releasing the control key being held down
second edit: it totally works, I was wrong
Who is online
Users browsing this forum: No registered users and 131 guests