Jump to content

MouseMove relative to client


Vert
 Share

Recommended Posts

Hello,

I am trying to simulate a few mouse movements to a windowed game. Is there a way to use MouseMove() with coordinates relative to a specific window, rather than the entire screen? I'm assuming it will require some math, so could someone please explain it to me?

Link to comment
Share on other sites

Hello,

I am trying to simulate a few mouse movements to a windowed game. Is there a way to use MouseMove() with coordinates relative to a specific window, rather than the entire screen? I'm assuming it will require some math, so could someone please explain it to me?

Have a look at _WinAPI_ScreenToClient in help file.

and/or

MouseCoordMode

Edited by Malkey
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...