Sign in to follow this  
Followers 0
2Tricky

WinGetPos, Win7 & Windows Media Player - odd coordinates

5 posts in this topic

I am getting the wrong control (inner) window height returned from WinGetPos. It consistently reduces it to 50 or so pixels high (instead of 400 or so) yet the same code works in XP (Windows Picture and Fax Viewer).

The Info tool reports the correct height (I suppose it is too much to hope that the tool is written in .au3...And that I could inspect it).

If anyone has any insight I'd be grateful - thanks.

Share this post


Link to post
Share on other sites



Sorry I should have said GUI window as opposed to "Control (inner) window" - too much water under the bridge.

While I'm at it, the info inspector reports that the "position" of the window is more or less the bottom left of what seems to be the Control (inner) window although the size seems good - I don't under stand

Thanks

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try showing your code, I've a feeling you may be refering to the client area.

I think you may well be right about my confusion. The only code that I think will be helpful is simply the function:

$pos = WinGetPos($win_title, $win_text) ;X, Y, W, H

$win_title holds "Windows Media Player" and in this case, $win_text is an empty string. This assignment occurs in a cribed function called CaptureToTIFF where quite a bit more goes on but it seems an irelavance.

I have many message boxes which testify to the problem occuring inside this function which of course carries on to be the basis of all subsequent calculations.

N.B. Using the info tool on the "Windows Media Player" window reveals that the 'control' tab reports a size that differs only in the reported height (from the verified size) which I have now realised is always 59 pixels - regardless of the size of the "Windows Media Player" window (the image resizes with the window).

N.B. Have tried using the beta 3.3.4.17 AutoIt without success

Thanks again.

Edited by 2Tricky

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  
Followers 0