Can ahk find "image coordinates" ?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Syrup
Posts: 27
Joined: 22 Aug 2018, 08:38

Can ahk find "image coordinates" ?

04 Dec 2021, 01:52

I am aware that ahk can find the screen coordinates (the mouse position, in X;Y), but is there a way of finding the "relative coordinates" of an image? For example, when you open a picture with Microsoft Paint you can read the X;Y coordinates of the image (the top-left pixel is 0;0), regardless of the position of the Paint window on the screen, regardless of the zoom level or scroll position along the image. Is ahk capable of this too?
User avatar
boiler
Posts: 16913
Joined: 21 Dec 2014, 02:44

Re: Can ahk find "image coordinates" ?

04 Dec 2021, 04:35

You can use ImageSearch to find the position of an image relative to the window, but not regardless of zoom level. It can’t find it if what it is looking for in terms of the reference image is scrolled off the window. Whatever you are using as a reference image must appear within a window in order to find it.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 335 guests