Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to create a remap script for Alt+O.
The program for data entry that I use has Alt+O to close the dialog box for 'OK'

I would like to remap it to one of the following (because they are all on the left side of the keyboard)

zz or
xx or
Win+Z or

share|improve this question

migrated from Nov 9 '12 at 9:13

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Something like this should set Alt+Z as equivalent to Alt+O:


You may wish to add in a stipulation that it only happens in the App you're using. See here for details on doing that via #IfWinActive (in Remarks section).

share|improve this answer
Thanks for the reply, I tried this and doesn't work. Can you give me the code for Middle button = Alt + O – user1811075 Nov 10 '12 at 2:57
huh. that would be MButton::!o . Just to clear, you put the previous one in a text file, save it with a .ahk extension, and double click it and it pops up in your system tray, but the new keyboard shortcut doesn't take effect? (also remember to kill or reload the previous running of the script if you make an edit and try again) – Brian Henry Nov 10 '12 at 3:40
Thanks a lot. Now both MButton::!o and !z::!o is working, I was editing a previous script and reloading, bit did not work, when I made a new .ahk from a text file it works. Thanks once again for the help. – user1811075 Nov 15 '12 at 10:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.