monitor a position on screen and display message when it changes

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jerryrig
Posts: 40
Joined: 01 May 2021, 23:31

monitor a position on screen and display message when it changes

15 May 2021, 03:41

hey there .... i want to constantly monitor a position on screen ...( lower left ) ....and i would like to show a message when any change occurs to that portion ...

there will be a number 4 in lower left part of screen ..... in chrome .. if that number changed to 3 or 2 or 1 ..... i want to show a message to alert me ..... :shifty:

thanks in advance ............
User avatar
mikeyww
Posts: 27095
Joined: 09 Sep 2014, 18:38

Re: monitor a position on screen and display message when it changes

15 May 2021, 06:21

A possibly simple way could be to find a pixel color that changes when the number changes. You could then use PixelGetColor in a SetTimer routine.
jerryrig
Posts: 40
Joined: 01 May 2021, 23:31

Re: monitor a position on screen and display message when it changes

15 May 2021, 06:52

i thought about pixel color and image color ...
if that screen is hidden .. both fails right
User avatar
mikeyww
Posts: 27095
Joined: 09 Sep 2014, 18:38

Re: monitor a position on screen and display message when it changes

15 May 2021, 08:10

You are correct!

If your window has controls that change at those times, you could use an AHK "Control" command to detect the change-- but that might not be the case in your window. Running Window Spy will show you window titles as well as control names within the window.

For a Web browser, you may be able to use the Chrome.ahk library or JavaScript to find what you need. Examples are available on the forum (not my expertise!).

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 350 guests