31
General / Re: Autohotkey to trigger exit key in AM?
« on: December 22, 2015, 08:48:34 AM »
Spent some more time looking at this and thinking about it.
So thinking about this, it make sense in a weird way.
AHK sends the keypress to the system when you hit the button combo, you can see it in a text editor because it's being all it cares about is the input.
Setting it to Alt-f4 closes the emulator for the same reason, the system receives the input and acts.
The reason mapping it to esc doesn't work is because the emulator is not looking for the system receive an esc input, but rather for the key to be pressed.
https://autohotkey.com/board/topic/62117-implementation-of-send-vs-controlsend/
Can you post your script?
Quote
Separately, everything works:
So thinking about this, it make sense in a weird way.
AHK sends the keypress to the system when you hit the button combo, you can see it in a text editor because it's being all it cares about is the input.
Setting it to Alt-f4 closes the emulator for the same reason, the system receives the input and acts.
The reason mapping it to esc doesn't work is because the emulator is not looking for the system receive an esc input, but rather for the key to be pressed.
https://autohotkey.com/board/topic/62117-implementation-of-send-vs-controlsend/
Can you post your script?