First you need to run the color script i gave you. Then go ingame and press mouse1 on the red color. When a window called "The decimal color is" pops up, you go to you'r script and type in the numbers that are shown in the popup window on this line: $Color =. So the code will look like this.
$szTitle = "World of Warcraft"
WinWaitActive($szTitle);Wait for WoW window
WinMove($szTitle, "", 0, 0, 1570, 1000);Move and resize WoW window
$Color = TheNumbersYouGot
While 1 = 1;While always True
Sleep(random(1000, 2000, 1))
$c=PixelSearch(5,8,1277,968,$Color)
If IsArray($c) Then MouseClick("Left",$c[0], $c[1],1,0)
Sleep(random(1000, 2000, 1))
Send("{SPACE}")
WEnd
I hope you understand. I'm not very good at explainig. Oh and by the way, the script I posted should work.