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?

GroupAdd, EmEditorGroup, ahk_class EmEditorMainFrame3 

^#1:: GroupActivate EmEditorGroup   ; activate the next window in this window group 
  • 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 '15 at 5:03
  • Awesome feature. Wish I knew this earlier! – Gene Pavlovsky Feb 27 '17 at 17:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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