cppman Posted March 24, 2006 Posted March 24, 2006 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. Miva OS Project
GaryFrost Posted March 24, 2006 Posted March 24, 2006 (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 March 24, 2006 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.
cppman Posted March 24, 2006 Author Posted March 24, 2006 hmm, yeah, i meant left, thanks!!! Miva OS Project
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now