I'm trying to launch Spotify, if it's not running, by pressing the Play/Pause button on the keyboard.
I have this.
Media_Play_Pause::
Process, Exist, spotify.exe
if ErrorLevel
{
Send {Media_Play_Pause}
}
else
{
Run, Spotify
}
return
This works, but since my ahk is ran as admin, Spotify also runs as admin. Why is this bad? because elevated Spotify doesn't show the media control buttons in the taskbar preview, and it creates a new icon on the taskbar separate from the pinned Spotify icon.
Is there any way to run Spotify as normal user and not as admin?