Skip to content

Instantly share code, notes, and snippets.

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