Jump to content
Sign in to follow this  

How do I find out coords of user click

Recommended Posts


Hi all,

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



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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.