targeter Posted August 18, 2010 Posted August 18, 2010 (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 August 18, 2010 by targeter
Tvern Posted August 18, 2010 Posted August 18, 2010 (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 August 18, 2010 by Tvern
targeter Posted August 18, 2010 Author Posted August 18, 2010 was it from using his wmp.au3? I guess I will experiment too, just curious what you did.
Tvern Posted August 18, 2010 Posted August 18, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now