My script works in IE, but not Edge
Posted: 06 Dec 2021, 05:57
Hey there!
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:
Thing is, the script works fine with Edge, but not IE (this is work related, so a few old machines are running IE instead of Edge still). I've checked with a colorpicker software and the coordinates are correct, and the font color is the same (CC0000).
Any suggestions as to why this works with Edge but not IE?
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?