Jump to content

Recommended Posts

Posted

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?

Posted (edited)

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

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
×
×
  • Create New...