Jump to content

Mousemove versus WinAPI


Recommended Posts

Does WinApi call for Mouse movement use twips instead of pixels?  I was writing a script that part of it requires me to use calculations based on pixels and part of it requires me to move the mouse using the WinAPI call not the mousemove command.  If I plug in the correct amount of pixels to move using WinAPI it will move further than expected.  I am assuming that its not using pixels.

Link to comment
Share on other sites

@loki0407
Welcome to the AutoIt forum :)
Directly from Microsoft Docs about MoveToEx function:


Parameters:

hdc Handle to a device context.

x Specifies the x-coordinate, in logical units, of the new position, in logical units.

y Specifies the y-coordinate, in logical units, of the new position, in logical units.

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...