A code to press j when the pixels on the screen change.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Luciquad
Posts: 3
Joined: 21 Mar 2021, 13:11

A code to press j when the pixels on the screen change.

21 Mar 2021, 13:15

A code to press j when the pixels on the screen change.
If I move my mouse around, the pixels will change and press the j key automatically. (Continuous)
User avatar
boiler
Posts: 17034
Joined: 21 Dec 2014, 02:44

Re: A code to press j when the pixels on the screen change.

21 Mar 2021, 13:56

Do you mean you want it to press j when any pixel on the screen changes, or when certain pixels in certain locations change? It makes a big difference in how it would be done.
Luciquad
Posts: 3
Joined: 21 Mar 2021, 13:11

Re: A code to press j when the pixels on the screen change.

14 Apr 2021, 16:07

boiler wrote:
21 Mar 2021, 13:56
Do you mean you want it to press j when any pixel on the screen changes, or when certain pixels in certain locations change? It makes a big difference in how it would be done.
yes
User avatar
boiler
Posts: 17034
Joined: 21 Dec 2014, 02:44

Re: A code to press j when the pixels on the screen change.

14 Apr 2021, 16:20

You can capture the entire screen or window of interest using something like the one found on this page (there are others), then use ImageSearch to search for that entire image. Keep looping as long as it finds it until it can't find it. When it can no longer find it, it indicates that a pixel has changed.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada and 323 guests