N
N
Nuke1422017-05-19 12:45:06
Automation
Nuke142, 2017-05-19 12:45:06

How to start an action on an event on the screen?

Good afternoon.
At the workplace there is a specialized program with real-time statistics.
The required field usually contains "0", but sometimes the value can change to 1,2,3, etc.
Task:
when changing "0" to another digit, an event should occur - a transition to three different links (using the wget utility).
Question:
How can I monitor the change in the number in the desired part of the screen, followed by the activation of further actions (nircmd)?
ps, this program cannot be output to the web version.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TomasHuk, 2017-05-19
@TomasHuk

You can use Autoit , controlling the color of a particular pixel (or several at once), but you need to first track which pixels change plus the window should be in a certain place:

HotkeySet("{F2}","proverka")
While 1
   Sleep(100)
WEnd
Func proverka()
$var = PixelGetColor(x, y) ; цвет пикселя на данный момент времени
$cvet =zzz ;цвет, который нужен мне
if $var =$cvet Then
;делается действие трали вали
EndIf
EndFunc

And replacing wget with Autoit .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question