Advertisement
BGM

instantbirder

BGM
Dec 16th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #singleinstance force
  3. #noenv
  4. ;directives
  5. coordmode, mouse, screen    ;set mouse to get coords from screen
  6. settitlematchmode 2
  7.  
  8. ;-------------------------------------------------------------------
  9. ;variables for the Instantbird focuser
  10. 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.
  11. curwin := ""
  12. lastwin := ""
  13. ;-------------------------------------------------------------------
  14.  
  15. ;hotkey control+space
  16. ^space::InstantbirdFocuser()
  17.  
  18. InstantbirdFocuser(){
  19.     global
  20.     WinGetActiveTitle, curwin
  21.     IfInString, curwin, %instantbird%
  22.     {
  23.         winactivate, %lastwin%
  24.         lastwin := curwin
  25.     }else{
  26.         lastwin := curwin
  27.         winactivate, %instantbird%
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement