Just a little script for controlling
iTunes from any window using
keyboard shortcuts. Feel free to change them to your liking, of course. Changed it to use winkey[#]. You could change it to ctrl[^] or ctrl-alt[^!] or ctrl-shift[^+],etc. . Man, I love AutoHotkey.
Let me know of any problems or ideas. I am just getting aquainted with an app called 'Winspector Spy', mentioned somewhere in these here forums.
Hotkey List
--------------------------
winkey + \ = launch iTunes or hide/show
winkey + . = next song
winkey + , = previous song
winkey + / = play/pause toggle
winkey + ; = volume up
winkey + ' = volume down
winkey + = = preview song every 10 sec
winkey + - = stop preview mode
--------------------------
Peace, Dave
Code:
; iTunes Anywhere
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Polyphenol <myemail@nowhere.com>
;
; Script Function:
; Control iTunes from anywhere with hotkeys
;
#NoTrayIcon
#SingleInstance force
DetectHiddenWindows, on
#\::
IfWinNotExist, ahk_class iTunes
{
Run %ProgramFiles%\iTunes\iTunes.exe ;launch program
return
}
IfWinExist, ahk_class iTunes ; toggle minimize/restore
{
IfWinNotActive ; restores window
WinActivate
Else
WinMinimize ; minimizes windows
return
}
#.::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, ^{RIGHT} ; > next
return
#,::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, ^{LEFT} ; < previous
return
#/::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, {SPACE} ; play/pause toggle
return
#;::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, ^{UP} ; vol up
return
#'::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, ^{DOWN} ; vol down
return
#=::
SetTimer, songpreview, 10000 ; change song every 10 sec
songpreview:
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, ^{RIGHT}
return
#-::
SetTimer, songpreview, Off
return
;endofscript