how to detect colour

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
hieveryone
Posts: 43
Joined: 28 Nov 2022, 01:31

how to detect colour

Post by hieveryone » 30 Nov 2022, 00:40

is there a way to detect colour, and twhen the colour gets detected it gives a warning on the screen
is it possible?

Rohwedder
Posts: 7645
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: how to detect colour

Post by Rohwedder » 30 Nov 2022, 01:18

Hallo,
try:

Code: Select all

#Persistent
SetTimer, Color, 200
Color:
PixelSearch, Px, Py, 200, 200, 300, 300, 0x9d6346, 3, Fast
if ErrorLevel = 0 
    MsgBox, warning 
Return

Yellow Lemonade
Posts: 1
Joined: 30 Nov 2022, 05:42

Re: how to detect colour

Post by Yellow Lemonade » 30 Nov 2022, 05:53

Hello
Can someone help me
I need program: when on the pc screen something will change colour, mouse cursor do something.
Sry for my eng.

Post Reply

Return to “Ask for Help (v1)”