I have created an autohotkey script that allows me to change itunes songs when i'm not in itunes. It works fine, except when i am in firefox. here is my code
Code:
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT/XP/Vista/7
; Author: €M€RY$T€€L€
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetNumlockState, AlwaysOn ;turns numlock to always on.
F7::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, ^{LEFT} ; < previous
return
F8::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, {SPACE} ; play/pause toggle
return
F9::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, ^{RIGHT} ; > next
return
F10::
Send {Volume_Mute} ; vol master mute.
return
F11::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, ^{DOWN} ; vol down
return
F12::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, ^{UP} ; vol up
return