Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #singleinstance force
- #noenv
- ;directives
- 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
- ^space::InstantbirdFocuser()
- InstantbirdFocuser(){
- global
- WinGetActiveTitle, curwin
- IfInString, curwin, %instantbird%
- {
- winactivate, %lastwin%
- lastwin := curwin
- }else{
- lastwin := curwin
- winactivate, %instantbird%
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement