Created
May 30, 2018 17:19
-
-
Save andymasteroffish/4112ded0ef32aa4be0e33c1f17ad272b to your computer and use it in GitHub Desktop.
Fire Fox fullscreener for DreamBoxXx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; some code from https://autohotkey.com/board/topic/17656-breaking-an-infinite-loop-with-keypress/ | |
Loop, | |
{ | |
;loop waiting for it to launch | |
Loop, | |
{ | |
WinWait, Mozilla Firefox, , 5 | |
if ErrorLevel | |
{ | |
;do nothing | |
} | |
else{ | |
WinActivate | |
Send {F11 1} | |
break | |
} | |
} | |
;loop waiting for it to close | |
Loop, | |
{ | |
Process,Exist, firefox.exe | |
If ErrorLevel{ | |
;do nothing | |
} | |
else{ | |
break | |
} | |
Sleep, 1000 | |
} | |
} | |
#f:: | |
Msgbox, ending firefox full-screener | |
ExitApp | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment