Sign in to follow this  
Followers 0
Vert

MouseMove relative to client

2 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  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

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