Open Side Menu Go to the Top
Register
help improving script Pandora.ahk help improving script Pandora.ahk

01-05-2011 , 05:52 PM
Found this script on the internets and works fine except when a poker table is active (works fine with other active apps, guessing b/c TN is keeping table active). Is there a better way to send the commands to Pandora app when not active?
Quote:

; Make the script work even if the window is hidden
DetectHiddenWindows, on

; Ctrl-Win-Alt-Right Arrow, Skip song
^#!Right::
IfWinExist, ahk_class ApolloRuntimeContentWindow
ControlSend, , {RIGHT} ; Next
return

; Ctrl-Win-Alt-Up Arrow, Volume Up
^#!Up::
IfWinExist, ahk_class ApolloRuntimeContentWindow
ControlSend, , {UP} ; VolUp
return

; Ctrl-Win-Alt-Down Arrow, Volume Down
^#!Down::
IfWinExist, ahk_class ApolloRuntimeContentWindow
ControlSend, , {DOWN} ; VolDown
return

; Ctrl-Win-Alt-Space, Pause/Resume Playing
^#!Space::
IfWinExist, ahk_class ApolloRuntimeContentWindow
ControlSend, , {SPACE} ; PlayToggle
return

; Ctrl-Win-Alt-Plus, Thumbs up a song
^!F11::
IfWinExist, ahk_class ApolloRuntimeContentWindow
ControlSend, ahk_parent, {NumpadAdd} ; ThumbsUp
return

; Ctrl-Win-Alt-Minus, Thumbs down a song
^!F12::
IfWinExist, ahk_class ApolloRuntimeContentWindow
ControlSend, , - ; ThumbsDown
return

; Ctrl-Win-Alt-X, Closes the window
^#!X::
IfWinExist, Pandora
WinClose ; Close Window
return
help improving script Pandora.ahk Quote

      
m