So basically I have a kinda-working script where
if coordinate on screen equals #CC0000
then trigger sendkey F8
if not then trigger sendkey F9
This is to start and stop recording in OBS once an area of the screen changes color.
Here's the script:
Code: Select all
loop ;keeps checking till it gets triggered the first time
{
PixelGetColor, Color, 407, 483, RGB ;gets the color at X, Y
if (Color == 0xCC0000)
{
SetKeyDelay, 0, 10
Send, {F8}
}
else if (Color == 0xFFFFFF)
{
SetKeyDelay, 0, 10
Send, {F9}
}
else
{
sleep, 500 ;sleeps for 0.5 second
continue ;starts the loop again
}
}
return
Any suggestions as to why this works with Edge but not IE?