Jump to content
Sign in to follow this  
targeter

play status of windows media player 12

Recommended Posts

targeter

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

Share this post


Link to post
Share on other sites
Tvern

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

Share this post


Link to post
Share on other sites
targeter

was it from using his wmp.au3? I guess I will experiment too, just curious what you did.

Share this post


Link to post
Share on other sites
Tvern

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.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.