Jump to content


Photo

Apple Keyboard No.A1245 :: iTunes, Volume keys.


  • Please log in to reply
2 replies to this topic

#1 graybix

graybix
  • Members
  • 2 posts

Posted 29 August 2010 - 08:33 PM

My first scripts for the apple keyboard (model no. A1243).

F8 It'll open iTunes if not running and play/pause if open.
F7 F8 F9 iTunes keys
F10 F11 F12 Windows main volume
shift F3 Print screen
shift F4 Task manager

+F3::Send {PrintScreen} 

+F4::Send, {SHIFTDOWN}{CTRLDOWN}{ESC}{SHIFTUP}{CTRLUP} 

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} 

F11::Send {Volume_Down 3} 

F12::Send {Volume_Up}

DetectHiddenWindows, on
F8::
    IfWinNotExist, ahk_class iTunes
    {
    Run %ProgramFiles%\iTunes\iTunes.exe  ;launch program
    return
    }

    IfWinExist, ahk_class iTunes 
    ControlSend, ahk_parent, {SPACE} ; play/pause toggle 
    return

Mod from Qins

#2 starheart

starheart
  • Members
  • 1 posts

Posted 28 June 2012 - 08:09 AM

you are so excellent!!!

#3 graybix

graybix
  • Members
  • 2 posts

Posted 21 September 2012 - 09:28 PM

just an update to get it working with iTunes 10.7

+F3::Send {PrintScreen} 

+F4::Send, {SHIFTDOWN}{CTRLDOWN}{ESC}{SHIFTUP}{CTRLUP} 

F10::Send {Volume_Mute} 

F11::Send {Volume_Down 3} 

F12::Send {Volume_Up}


F8::
    DetectHiddenWindows, on
    IfWinNotExist, ahk_class iTunes
    {
    Run %ProgramFiles%\iTunes\iTunes.exe  ;launch program
    return
    }

    IfWinExist, ahk_class iTunes 
    ControlSend, ahk_parent, {SPACE} ; play/pause toggle 
return

F9::
    DetectHiddenWindows , On
    ControlSend , ahk_parent, ^{right}, iTunes ahk_class iTunes
    DetectHiddenWindows , Off
return

F7::
    DetectHiddenWindows , On
    ControlSend , ahk_parent, ^{left}, iTunes ahk_class iTunes
    DetectHiddenWindows , Off
return