Sign in to follow this  
Followers 0
Champak

Mouse position and touch screen

4 posts in this topic

If I have a function based on if someone is touching the screen within a certain coordinate, and the mouse happens to be on the other side of the screen, can I still use mousegetpos()? Or will touching the screen at the position I want register where the mouse actually is....on the other side of the screen?

Share this post


Link to post
Share on other sites



I think you answered my question, but to rephrase it; if I have a small box on the left side of the screen, and the mouse is on the right side of the screen, and my programming requires that I touch inside of the box, if I touch inside of the box will it register, or not because the mouse is on the other side of the screen? Does the mouse move fast enough to the other side of the screen for it to register the position where I want it, or will autoit fire and grab the position before it gets to the needed position?

Share this post


Link to post
Share on other sites

For me the mouse is moved instantly and then pressed before it returns (if "anchor mouse" is on) so it should work.

I think it would be easiest if you made some simple script and tested it yourself.

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