Skip to content

Instantly share code, notes, and snippets.

@andymasteroffish
Created May 30, 2018 17:19
Show Gist options
  • Save andymasteroffish/4112ded0ef32aa4be0e33c1f17ad272b to your computer and use it in GitHub Desktop.
Save andymasteroffish/4112ded0ef32aa4be0e33c1f17ad272b to your computer and use it in GitHub Desktop.
Fire Fox fullscreener for DreamBoxXx
; 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