Jump to content
Sign in to follow this  

Windows Media Player video control

Recommended Posts


ok, newbie alert; but haven't been able to figure this one out yet:

Can't seem to get hold of the video window of WMP.

Some examples:

$test = ControlClick("Windows Media Player", "", "[CLASS:EVRVideoHandler; INSTANCE:1]")
$test = ControlClick("Untitled - Notepad", "", "[CLASS:Edit; INSTANCE:1]")

$test returns 0 for WMP and 1 for Notepad. A video is playing in windowed mode.

Actually what I'm trying to achieve is to switch to fullscreen mode by sending alt+enter if less than desktop size by using this function to get the size:

$pos = ControlGetPos("Windows Media Player", "", "[CLASS:EVRVideoHandler; INSTANCE:1]")

Any ideas to why the code is not working and how to achieve what I need?

Running Win7 x64

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