
WinSwitchie v0.1
Samuel Murray, February 2020

With WinSwitchie, you can switch between two windows instantly using just a keyboard shortcut.

==

Shortcuts:

`                 = switch windows
Alt + `           = displays info about remembered windows
Shift + Ctrl + `  = remember window (HANDLE version only)
Ctrl + `          = exit script

==

There are three versions of it:

The HANDLE version identifies windows by their handle.  Open both windows, then run the WinSwitchie script.  Go to one window, then press Shift+Ctrl+` to remember it, then go to the other window, then press Shift+Ctrl+` again to remember it.  Then use ` to switch between windows.  Whenever you use Shift+Ctrl+` again, the script will forget one of the previous windows and remember the current window.

The TITLE & HANDLE version also identifies windows by their handle, but is remembered by a portion of its title.  Open both windows, then run the WinSwitchie script.  The script will ask for the two windows' titles.  Type either the entire title or just enough of the title to uniquely identify it.  The script will continue to remember the windows even if their titles change.  If you close a window and then open another window with the same title, the script won't "remember" that new window.  If you closed a remembered window, you would have to exit the script and rerun it again.

The TITLE version identifies windows by their titles.  Run the WinSwitchie script (the windows do not need to be open).  The script will ask for the two windows' titles.  Type either the entire title or just enough of the title to uniquely identify it.  The script will always use the titles to remember the windows.  If you close a window and then open another window with the same title, the script will consider it the remembered window.  If you have more than one window that matches the originally typed text, the script might switch to the wrong window.  If the title changes so that the originally typed text no longer matches the title, the script will no longer remember the window, but if you change the title back again, the script will remember it again.

==

Issues/notes:

If you use either of the TITLE versions, and you type a title that is the title of a hidden window, the script might select the hidden window.

The default shortcut is ` because on my keyboard it is in the top left corner, on the same key as the ~.

You need AutoIt installed to use it.

You can also pause or exit the script by clicking its system tray icon.

In some programs, e.g. Akelpad, the TITLE versions do not succeed in giving the windows focus after bringing them to the front.

Windows that are minimised will be restored if they are one of the selected windows.

