Ryan Beasse Posted December 13, 2007 Posted December 13, 2007 How do you find the x,y coordinates of the mouse, that are used in the move mouse function.
Ryan Beasse Posted December 13, 2007 Author Posted December 13, 2007 How would I display that? So when I'm playing a game I can scroll over a icon, and it shows the cords.
Valuater Posted December 13, 2007 Posted December 13, 2007 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) WEndAutoitInfo.au3 located here...http://www.autoitscript.com/forum/index.ph...st&p=4468418)
Ryan Beasse Posted December 13, 2007 Author Posted December 13, 2007 That worked amazing, thanks a lot.
Valuater Posted December 13, 2007 Posted December 13, 2007 (edited) 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 December 13, 2007 by Valuater
Xenobiologist Posted December 13, 2007 Posted December 13, 2007 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
Valuater Posted December 13, 2007 Posted December 13, 2007 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)
newb2007 Posted December 13, 2007 Posted December 13, 2007 #Include <Misc.au3> do _IsPressed('0d') $xy = MouseGetPos() MsgBox(0,"MouseCoOrds","X: "&$xy[0]&" Y: "&$xy[1]) Until _IsPressed('1b') newb way
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now