Run PixelGetColor only in specific window
Posted: 14 Dec 2017, 09:02
Hello,
Im trying to setup the script that gets color and works only in specific window. What I want to do, is script running all the time, without hotkey, searching for pixelchange in certain window but I cant seem to get it right.
I came up with something like this:
Even when the window active is Chrome it sends "I" instead of F or D. What is wrong with this script? can someone help me out?
Im trying to setup the script that gets color and works only in specific window. What I want to do, is script running all the time, without hotkey, searching for pixelchange in certain window but I cant seem to get it right.
I came up with something like this:
Code: Select all
s::
If WinActive, Chrome {
PixelGetColor, color, 104, 926
if (color="0x2D1AB1") {
Send {F}
}
else {
Send {D}
}
}
Else
Send {I}
Return
Esc::ExitApp