Jump to content

Limiting The Mouse Position...


Recommended Posts

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.

 

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...