Sign in to follow this  
Followers 0
CygnusX1

Mouse Position

5 posts in this topic

Hello,

Other then using:

$pos = MouseGetPos()

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

that pops up a messagebox

What is the easiest way to get a bunch of Mouse Positions.

It would be nice if a tool tip was attached to the cursor so I could see Mouse Position point in a instant.

Thanks

Cygnus


Cygnus

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

while 1

$pos = MouseGetPos()

tooltip("Mouse x,y:" & $pos[0] & "," & $pos[1])

sleep(1)

wend

Edited by ReaImDown

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

Hi,

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

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

Hi,

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

Mega

hmmm I didnt know that one, thx mega, both work though

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

Most excellent that is exactly what I needed!

Did I miss that in the documentation? Sorry if I did :-/

Thanks for your quick response.

Cygnus


Cygnus

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