Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PhonerLite Toggler: hides/shows/runs PhonerLite. Attach this to a hotkey.
phonerliteapp := "C:\Program Files (x86)\Phoner\PhonerLite.exe"
process, exist, PhonerLite.exe
thispid := errorlevel
;if PhonerLite window is open on the screen, then minimize it
wingettitle, thistitle, ahk_pid %thispid%
winminimize, ahk_pid %thispid%
;if PhonerLite is minimized, then bring it to the front
run, %phonerliteapp%
;if it isn't running, then start the program
run, %phonerliteapp%
return thispid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment