Steven
Steven

Reputation: 1

AutoHotKey - Make image appear relative to a set of moving pixels?

Is it possible to create an AHK script that will position a given image (not changing) relative to a different "image" that will be moving constantly on the computer screen? I put the second "image" in quotations because the program would have to constantly search for that "image" or set of pixels that make up that "image" in order to correctly position the first image relative to the second "image".

If it's not possible to do this with AHK, how else can this be done?

The "image" would have to be placed always on top (or above all other programs).

Upvotes: 0

Views: 593

Answers (1)

KickAss
KickAss

Reputation: 4290

Yes this can be achieved relatively easily.

You will need to create a Loop which performs:

  1. Pixel Search/Image Search
  2. Using the data retrieved from (1), depending on how the image is displayed using AHK, perform a image move function. If you use a borderless window (GUI), you will need WinMove function.

See all commands here: Commands

Upvotes: 0

Related Questions