I've used AHK a little bit but am really a newbie when it comes to scripts, etc.
I'm trying to map alt-tab to a hotkey (ESC.) Normally alt-tab toggles between locally installed programs just fine... However I can't get it to work on the new Windows-style apps, which don't use a traditional program installation. For example, OneNote 365. Just doesn't work for them. I can press physical keys on the keyboard, but can't seem to get AHK commands to be recognized. Sending an {AltD} command, etc. isn't recognized.
I discovered the Alt-Tab hotkeys, which work great using the mouse wheel example: https://www.autohotkey.com/docs/Hotkeys.htm#alttab
However, when I try to map them to actual function keys, they don't work... I can press individual function keys to execute the hotkey, but can't get them to run in a script.
One other favor: what I really want is to toggle between the last two active windows. The AHK alt-tab hotkeys let me move forward and backward between programs, but when I use alt-tab on my keyboard, it toggles between the two active windows I just worked in. Is there a way to do this in AHK?
Here's what I tried:
Code: Select all
;Onenote uses ESC - remap ESC to F4
ESC::F4
F6::AltTabMenu
F7::AltTab
F10::AltTabMenuDismiss
F4::Send {F6}{F7}{F10}
Laszlo