1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Windows iTunes Windows 7 Scripts

Discussion in 'Software' started by Dudey109, 24 Apr 2015.

  1. Dudey109

    Dudey109 Minimodder

    Joined:
    20 May 2010
    Posts:
    197
    Likes Received:
    3
    So, I want to basically get iTunes to automatically start a playlist in shuffle mode each time it launches.

    I can see you can do it on Mac with the help of Applescripts but am unable to find a way to do it on Windows.

    Background: This is for a car PC install. I already have the machine booting/shutting down on ignition on/off and opening itunes on startup... obviously. Just missing this last step! I could most likely do it with autohotkey but was hoping for a simple script within itunes so its more reliable.

    Any suggestions?

    Thanks!
     
  2. Dudey109

    Dudey109 Minimodder

    Joined:
    20 May 2010
    Posts:
    197
    Likes Received:
    3
    Ok if anyone's interested, best way to do it via AutoHotkey

    Code:
    IfWinExist ahk_class iTunes
    {
        WinActivate
    }
    else
    {
        WinWait ahk_class iTunes
        WinActivate
    }
    
    ControlSend,,{space} , ahk_class iTunes
     

Share This Page