Sign in to follow this  
Followers 0
Faleira

give coords?

4 posts in this topic

how would i make a simple gui that shows the coords of where ur mouse is, like in au3info?

(i'm haven't really messed around all that much with the GUI yet, sorry if this is a stupid question)


[quote]If whenever you feel small, useless, offended, depressed, and just generally upset always remember......you were once the fastest and most vicious sperm out of hundreds of millions![/quote]

Share this post


Link to post
Share on other sites



straight from help

$pos = MouseGetPos()
MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1])

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

well, ya, but thats just a msg box, and will only give my current co-ords, i want it so that it changes as u move ur mouse ^^.


[quote]If whenever you feel small, useless, offended, depressed, and just generally upset always remember......you were once the fastest and most vicious sperm out of hundreds of millions![/quote]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

this will do the trick

; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused, $T = 0
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("{F9}", "ShowMouse") 

;;;; Body of program would go here;;;;
While 1
    If $T = 1 Then
        $pos = MouseGetPos()
        ToolTip($pos[0] & "," & $pos[1])
    EndIf
Sleep(10)
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

Func ShowMouse()
    If $T = 0 Then
        $T = 1
        Return
    EndIf
    If $T = 1 Then
        ToolTip("")
        $T = 0
        Return
    EndIf

EndFunc

8)

Edited by Valuater

NEWHeader1.png

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