Jump to content

play status of windows media player 12


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

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