Sign in to follow this  
Followers 0
Morgan

Requesting Help with iTunes Openning Script

3 posts in this topic

I am very new to AutoIt, and have been reading tutorials to get started

The script I am trying to design is supposed to:

Open iTunes

Wait For iTunes to be Active

Send CTRL+ALT+5 to select Cover Flow Mode

Send CTRL+F to select Full Screen Mode

The base of this script is obviously to start iTunes and go directly into Full Screen Cover Flow Mode (this is being designed for use in my CarPC)

I more than likely made poor errors or read an out of date tutorial somewhere on the SEND feature, so my problem is probably easily fixed and I'm just dumb

but anyway, heres my code

Run("E:\Programs\iTunes\iTunes.exe")
WinWaitActive("iTunes")
Send("^!5")
Send("^F")

I'm not sure if I need any waits or holds in this script, and now that I look at it I'm pretty positive that the SEND script is pressing CONTROL then releasing it, then pressing ALT and releasing it, followed by 5

I need the script to press CTRL+ALT+5 simutaniously, can anyone please take a moment to help me fix this little problem? As of now, the script executes and loads iTunes, but doesn't function beyond that

Thank you!

Morgan

Share this post


Link to post
Share on other sites



I changed the script a little bit and now it does half of what I want it to...

New Code:

Run(E:\Programs\iTunes\iTunes.exe")
WinWaitActive("iTunes")
Send("{CTRLDOWN}{ALTDOWN}5")
Send("{CTRLUP}{ALTUP}")
Send("{CTRLDOWN}F")
Send("{CTRLUP}")

Now it waits for iTunes to be active and switches to cover flow view (CTRL+ALT+5) but after that it will not go to fullscreen mode (CTRL+F)

Anybody?

Share this post


Link to post
Share on other sites

Fixed! Probably a sloppy useless script to everyone else but just wanted to let everyone know I figured out the problems

For anyone curious:

Run("E:\Programs\iTunes\iTunes.exe")
WinWaitActive("iTunes")
Send("{CTRLDOWN}{ALTDOWN}5")
Send("{CTRLUP}{ALTUP}")
Sleep (500);half second
Send("{CTRLDOWN}f");lowercase f to avoid shift-problem (capslock issue)
Send("{CTRLUP}")

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0