Traddles Posted February 21, 2007 Posted February 21, 2007 I want to be able to call a method that will send a message to itunes (minimized to tray) to move to the next song.... is there a way to send a message to an external app and also, does anybody know much about the internal guts of itunes for what that message might be? I know this is a long shot but I would rather not have to restore the window, mousemove, etc... because a lot of times I'm doing things in the foreground and just want the playlist to move on in the background. does anybody know if this is possible with AutoIt?
BrettF Posted February 21, 2007 Posted February 21, 2007 Do a search for I tunes in the forum (Like this thread), and look at Hotkeyset() in the helpfile. That should get you started... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Traddles Posted February 21, 2007 Author Posted February 21, 2007 well, I've done a lot of stuff with hotkeys so I'm pretty comfortable with that. it's mostly the "sendMessage" thing, you know?
Shevilie Posted February 21, 2007 Posted February 21, 2007 A wild guess... Itunes might have this already I know winamp have global hotkeys and my guess is that Itunes have it to Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Traddles Posted February 21, 2007 Author Posted February 21, 2007 A wild guess... Itunes might have this already I know winamp have global hotkeys and my guess is that Itunes have it to heh, already checked into it. Only the MAC version has global hotkeys. Windows version has hotkeys but only if the window is open and active. Also, is there an "AutoIt" for MAC, and would some scripts be cross-platform capable?obviously the answer is no if I've compiled my script into a .exe but what about the script itself?
Shevilie Posted February 21, 2007 Posted February 21, 2007 Well show the script Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Traddles Posted February 21, 2007 Author Posted February 21, 2007 Well show the script ok, I actually use one script to do a lot on my computer. it looks like this (greatly truncated)HotKeySet("^r", "commandLine")while (true) sleep(100)wendfunc commandLine() $x = inputBox("command", ">") call($x)endfuncfunc iTunesNextSong() ; what the crap do I do here to make itunes move to the next songendfunchaving a script like this is actually really nice, I just leave it running all the time and a whole crap load of functions that do nice little things for me as well as a couple other hotkeys for really common things like opening an internet browser, etc...
Shevilie Posted February 21, 2007 Posted February 21, 2007 Well its the MAC script i want to look at Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Traddles Posted February 21, 2007 Author Posted February 21, 2007 oh, haha, well no, actually if you look closely I was asking as a side note "oh, and is there a mac version of autoit..."
Shevilie Posted February 21, 2007 Posted February 21, 2007 http://mike.steinbaugh.com/2004/10/09/09.55.01/I think the mac have some build-in auto function... Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Traddles Posted February 21, 2007 Author Posted February 21, 2007 yes, I knew that you could write applescripts to do what I want but I was trying to use autoIt to emulate that same functionality for the windows version of iTunes. Incidentally I found what I was looking for here:http://www.autoitscript.com/forum/index.ph...9&hl=itunesthanks for your help.
Shevilie Posted February 21, 2007 Posted February 21, 2007 Np Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now