This might take more work, I looked up the basics to it.
//AHK version
//... Maybe use #IfWinActive to detect flashplayer window
A.You need to find what colors and location determined by pixels you want to detect.
B.When that color in (pixels) changes, you need to set a keystroke to (nexus), default setting is (R)
C.Initiate Nexus keystroke.
Example:
Code:
t:: ; toggle
PixelGetColor, Red, 696, 311; Gets the color at the coordinates in the active window
if(Red = 0x545454){ ; checks if the found color is completely RED
Send, R
//AutoIt Version
Do something like this
//Find pixel(location)
Code:
$z = PixelSearch( 696, 311, 0x545454)
if $z = true then
send("r")