Page 1 of 1

tracking coords

Posted: 22 May 2022, 16:32
by ash78
how would i get autohotkey to like read the coordinates of the screen
because what im trying to do is get the software to automatically run to the destination by checking the cordinated and confirming if its getting closer or further away
im new to ahk thats why im asking sorry if this is a repeat

Re: tracking coords

Posted: 22 May 2022, 16:45
by mikeyww
Welcome to this AutoHotkey forum!

:arrow: MouseGetPosExample

Re: tracking coords

Posted: 23 May 2022, 12:43
by tidbit
what's the capital of Minnesota, usa, ash?

Re: tracking coords

Posted: 23 May 2022, 21:56
by ash78
tidbit wrote:
23 May 2022, 12:43
what's the capital of Minnesota, usa, ash?
minnesota is a state ? and the state capital is st paul

Re: tracking coords

Posted: 23 May 2022, 22:04
by ash78
image.png
image.png (28.24 KiB) Viewed 724 times
this is what im looking to track so the game has a map, and i want to be able to use the map to track the coords and have the player move to those coords automatically i know there will be alot of work involved in this i think

Re: tracking coords

Posted: 24 May 2022, 04:54
by mikeyww
You may want to search the forum for some techniques, according to whether this is:
1. HTML text in a Web browser => Could look for JavaScript approaches in AHK (some by teadrinker)
2. Text in a program's control => ControlGetText (an AHK command)
3. An image => OCR (AHK scripts or libraries such as FindText, OCR, Vis2)

Good luck!