Sign in to follow this  
Followers 0
Negative1

How do I find out coords of user click

2 posts in this topic

Hi all,

How would I go about finding out the corrdinates of the next type a person clicks after calling a function?

Thanks,

-1


What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world.

Share this post


Link to post
Share on other sites



#include <Misc.au3>

While True
    If _IsPressed('01') Then    ;Left click is pressed
        $POS = MouseGetPos()
        TrayTip("Mouse position","X: " & $POS[0] & "; Y: " & $POS[1],1)
    ElseIf _IsPressed(20) Then  ;Press Spacebar to exit
        Exit
    EndIf
    Sleep(10)
WEnd


When the words fail... music speaks

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