Jump to content

How do I find out coords of user click


Recommended Posts

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

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