Sign in to follow this  
Followers 0
wangzhengbo

AutoItX 3.3.10.0: AU3_WinGetPos return wrong width and height

3 posts in this topic

1. Run notepad

2. get the width and height of the notepad using AU3_WinGetPos defined in AutoItX3.dll

3. resize the notepad using AU3_WinMove

4. reget the width and height using AU3_WinGetPos, the newly width and height is wrong, it is not the changed size for the notepad.

This's happened in AutoItX 3.3.10.0. It's ok in AutoItX 3.3.8.1.

Share this post


Link to post
Share on other sites



Hmm, it seems OK when I check it. Have you got some repo code?

Yes, it's ok. I made a mistake. Because i defined the LPRECT structure as below:

public class LPRECT {

  public int x;

  public int y;

  public int width;

  public int height;

}

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