Skip to content

Instantly share code, notes, and snippets.

Created March 11, 2015 03:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Switch between Instantbird and any other program with a hotkey
#singleinstance force
coordmode, mouse, screen ;set mouse to get coords from screen
settitlematchmode 2
;variables for the Instantbird focuser
instantbird := " - Instantbird" ;the title of the typing window is something like "Name of Person - Instantbird" --I confirm that the " - " is always in the title, complete with the two spaces on either side of the hyphen.
curwin := ""
lastwin := ""
;hotkey control+space
WinGetActiveTitle, curwin
IfInString, curwin, %instantbird%
winactivate, %lastwin%
lastwin := curwin
lastwin := curwin
winactivate, %instantbird%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment