I've got a AHK script that looks for an active Emacs window and switches to it. However, since I'm using VirtuaWin now, this script stopped working -- it only works on the virtual display where Emacs actually is, but not on others. Any suggestions on what I can do?
would detect it, but switching to the workspace it's on could be complicated.
Old question, but in case anyone else stumbles upon it, if you always run Emacs (or whatever other application) on a specific desktop, you can use VirtuaWin's command line interface to switch desktops. Here's a snippet from my autohotkey.ahk to switch to desktop 5 and find or run visual studio:
A brief sleep is needed after the window switch or WinExist won't find it.
A list of all of the VirtuaWin msg commands is in the VirtuaWin help file, Advanced User Guide / External Interface.
Hope it helps.