Hi I'm newbie using autoit so please guys be gentle )
so i make a flash internet browser script it perfectly works on single pixelsearch loop ,
but I cannot make it work if I put another 2 pixelsearch is there something wrong? help
here's my script
HotKeySet ("{HOME}", "Start")
HotKeySet ("{END}", "_Exit")
While 1
Sleep(200)
WEnd
Func Start()
While 1
$colorgreen = PixelSearch ( 0,0, @DesktopWidth, @DesktopHeight, 0x00FF00)
If Not @error Then
MouseClick ( "Left" , $colorgreen[0], $colorgreen[1] , 1,1) ;spam left click on the green-color areas
Sleep(100)
Else
PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0xFF0063)
If Not @error Then
SoundPlay(@WindowsDir & "\media\tada.wav", 1) ;Alert me using very loud noise when it founds pink color lol
Sleep(100)
Else
Send("{F5}") ;Refresh button
EndIf
EndIf
WEnd
EndFunc
Func _Exit()
Exit
EndFunc