Jump to content

Recommended Posts

Posted

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.

Posted

#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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...