|
yea autoIt is a good choice
here is the code you need:
---------------
Global $sound = @ScriptDir & '/mySong.mp3'
While (1)
; searches from 150, 200 to 300,400 for color white with a color diff range of 15 // pixel step = 5
$coords = PixelSearch (150, 200, 300,400, 0xFFFFFF, 15, 5)
if NOT @error = 1 then
SetError(2)
SoundPlay($sound)
Sleep(5000) ;length of sound in millli secs, so it won't loop :P
EndIf
WEnd
---------------
if you need more help let me know
|