Sign in to follow this  
Followers 0
automation

Seting text in WMP OpenURL window

2 posts in this topic

HI,

I am trying to automate running music from WMP using URL.

SO I LaunchWMP:

Run(wmplayer.exe)

WinWaitActive("Windows Media Player")

Send("^u")

#this will popup window - OpenURL where I want to set a URL

WinWaitActive("OpenURL")

ControlSend("OpenURL", "", "Edit1","http://www.live365.com/stations/swarsudha")

# Control send /send does not work and the script hangs.

PLZ help.

Thanks

Share this post


Link to post
Share on other sites



Your window title is incorrect. It's "Open URL"..... with a space in between. I'd also recommend using the timeout on the winwaitactive's in case something goes wrong then it won't just hang.

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