Sign in to follow this  
Followers 0
cppman

Limiting The Mouse Position...

3 posts in this topic

Say I have a GUI that is 500x500

Is their a way to limit the mouse pos so when i use MouseGetPos it will return the pos based off of the width and height of the GUI?

like if the mouse is in the very right nad top corner of the GUI it will return 0, 0.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Say I have a GUI that is 500x500

Is their a way to limit the mouse pos so when i use MouseGetPos it will return the pos based off of the width and height of the GUI?

like if the mouse is in the very right nad top corner of the GUI it will return 0, 0.

Opt("MouseCoordMode",2)

btw 0,0 should be the top left not right

and if you want to limit the mouse to the gui look up _MouseTrap

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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