Jump to content

Recommended Posts

Posted (edited)

I am trying to capture the current playing of windows media player 12. If you use winexists, the return is immediate if the program is running. By using ControlFocus with WMP Skin Host/WMPlayerApp and "ervhandler1" it goes into an infinite 0.

When I click on a audio or video file, there is a possibility based on the computer hardware that it may take time for the media file to load. I want autoit to check if the file is currently playing before the script proceeds. Is there a way to do this?

I suppose I could use the WMP udf and check for the existance of duration, but I want to see if I can do this without having to use the _create command it requires http://www.autoitscript.com/forum/index.php?showtopic=27352

http://www.autoitscript.com/forum/index.php?showtopic=52961 - This looks promising, but I have trouble figuring out exactly how it might be implemented.

Edited by targeter
Posted (edited)

I think you can use the WMP UDF, but use ObjGet() instead of _Create().

Edit: Actually I can't get it to work with either parameter. :<

Edited by Tvern
Posted

Nah I can't get the object of the running WMP. I'm not sure if I'm doing something wrong, or if the WMP object isn't retrievable with ObjGet.

I'm affraid I'm a little out of my league.

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...