2

I use the following autohotkey commands to bring EmEditor(a great text editor) to foreground.

^#1:: WinActivate, ahk_class EmEditorMainFrame3

However, when there are more than one EmEditor window(both with class name EmEditorMainFrame3), choosing the desire one to activate seems very challenging. I'd like to achieve such a result: Pressing Ctrl+Win+1 multiple times cycles me through different EmEditor windows, that is, each press of the hotkey activates a different EmEditor window. It's the best user experience I can imagine. Is that possible with Autohotkey?

1 Answer 1

5
GroupAdd, EmEditorGroup, ahk_class EmEditorMainFrame3 

^#1:: GroupActivate EmEditorGroup   ; activate the next window in this window group 
3
  • Great answer, and great Autohotkey feature. My own MEMO: GroupAdd, EmEditorGroup, ahk_class EmEditorMainFrame3 should be written above any hotkey definition, i.e. in so called Auto-execute Section.
    – Jimm Chen
    Jan 11, 2015 at 5:03
  • Awesome feature. Wish I knew this earlier! Feb 27, 2017 at 17:17
  • This works, great! Does exactly what the first poster asked for :)
    – JamesR404
    Dec 1, 2022 at 10:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .