Jump to content

Qeustion About Getting x,z Cordinates


lilx
 Share

Recommended Posts

Hello,

Is it possible to make a script where you ask the user of your script to Mouse click at a location in his screen then when he Mouse click the program gets the x, z location where he clicked?

Cheers thx in advance,

lilx

Link to comment
Share on other sites

Quickly scripted for you...

#include<misc.au3>
While 1
    $Pos=MouseGetPos()
    ToolTip("Mouse Pos:"&$Pos[0]&","&$Pos[1],Default,Default,"",1,1)
    If _IsPressed("01") Then
        Do
            ToolTip("You clicked on:"&$Pos[0]&","&$Pos[1],Default,Default,"",1,1)
        Until Not _IsPressed("01")
    EndIf
WEnd
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...