Jump to content
Sign in to follow this  
Ryan Beasse

X, Y Coordinates

Recommended Posts

Maybe...

#include <AutoitInfo.au3>

; Set option
Opt("MouseCoordMode", 1)        ;1=absolute, 0=relative, 2=client

; Get mouse position / looped
While GUIGetMsg() <> -3
    $return = _AutoitInfoDisplay(MouseGetPos(), "MouseGetPos", 2)
    Sleep(10)
WEnd

AutoitInfo.au3 located here...

http://www.autoitscript.com/forum/index.ph...st&p=446841

8)

Share this post


Link to post
Share on other sites

That worked amazing, thanks a lot.

Welcome!

you can remember AutoitInfo.au3 in the future for all Autoit command returns!

.. it will display Autoit errors/arrays/success with information 5 different ways!

.. and even if its not from Autoit you can display almost anything. (in writting)

8)

Edited by Valuater

Share this post


Link to post
Share on other sites

Hi,

#include<WinAPI.au3>
While 1
    ToolTip("x: " & _WinAPI_GetMousePosX() & @CRLF & "y: " & _WinAPI_GetMousePosY(), 0, 0)
    Sleep(10)
WEnd

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

and, how about...

#include <AutoitInfo.au3>

; Set option
Opt("MouseCoordMode", 1)        ;1=absolute, 0=relative, 2=client

; Get mouse position / looped
While GUIGetMsg() <> -3
    $return = _AutoitInfoDisplay(MouseGetPos(), "MouseGetPos", 0)
    
    $return = _AutoitInfoDisplay(MouseGetPos(), "MouseGetPos", 2)
    
    $return = _AutoitInfoDisplay(MouseGetPos(), "MouseGetPos", 3)
    Sleep(10)
WEnd

8)

Share this post


Link to post
Share on other sites

#Include <Misc.au3>

do

_IsPressed('0d')

$xy = MouseGetPos()

MsgBox(0,"MouseCoOrds","X: "&$xy[0]&" Y: "&$xy[1])

Until _IsPressed('1b')

newb way :)

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  

×
×
  • Create New...