Boot Camp - Apple remote

Discussion in 'Mac Apps and Mac App Store' started by digitalpencil, Jan 29, 2008.

  1. digitalpencil macrumors 6502

    digitalpencil

    Joined:
    Jul 2, 2007
    Location:
    Manchester, UK
    #1
    Hi,

    Under boot camp, when iTunes is selected, you can use your apple remote to play/pause & skip tracks. When iTunes is not focused however, this functionality is lost leaving you with just volume control. Are there any other remote drivers that can be loaded to enable skip, play/pause when iTunes is not selected or perhaps a Windows equivalent to remote buddy so I can attach these behaviours to specific buttons. I ask because I frequently game in boot camp with COD for example, full-screened on one screen & iTunes, playing on the other. This works great although I have to cmd-tab out fo the game whenever I want to skip tracks, it'd be great if I could retain the skip functionality of the apple remote whilst in-game!

    Thanks.
     
  2. digitalpencil thread starter macrumors 6502

    digitalpencil

    Joined:
    Jul 2, 2007
    Location:
    Manchester, UK
    #2
    Success!

    Using AutoHotKey (open-source keystroke sender) i've managed to write a script that can control iTunes from any other focused application, such as your games.

    To use, download/install & run the following: http://www.autohotkey.com/download/
    Then, using explorer, goto file>new>AutoHotKey Script and paste the following, save with ext '.ahk' and double-click to run:
    PHP:
    ;inGame iTunes
    ;
    #NoTrayIcon
    #SingleInstance force
    DetectHiddenWindowson

    #\::
    IfWinNotExistahk_class iTunes
    {
    Run %ProgramFiles%\iTunes\iTunes.exe  ;launch program
    return
    }

    IfWinExistahk_class iTunes toggle minimize/restore
    {
    IfWinNotActive restores window
    WinActivate
    Else
    WinMinimize minimizes windows
    return
    }

    #.::
    IfWinExistahk_class iTunes
    ControlSend
    ahk_parent, ^{RIGHT}  ; > next
    return

    #,::
    IfWinExistahk_class iTunes
    ControlSend
    ahk_parent, ^{LEFT}  ; < previous
    return

    #/::
    IfWinExistahk_class iTunes
    ControlSend
    ahk_parent, {SPACE}  ; play/pause toggle
    return

    #;::
    IfWinExistahk_class iTunes
    ControlSend
    ahk_parent, ^{UP}  ; vol up
    return

    #'::
    IfWinExistahk_class iTunes
    ControlSend
    ahk_parent, ^{DOWN}  ; vol down
    return

    ;
    endofscript
    Fairly straight forward, # denotes windows key so:

    win+\ = hide/show iTunes
    win+. = next track
    win+, = previous track
    win+/ = play/pause
    win+; = vol up
    win+' = vol down

    I'm gonna contact the author of ARW which maps the apple remote to fire AHK commands onRelease to see if I can add a version that offers unfocused control, via the remote.
     

Share This Page