Jump to content

Recommended Posts

Posted

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

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...