gotdank Posted October 12, 2009 Share Posted October 12, 2009 ok im trying to make a script to detect a specific shade of yellow in a pixel range, and when it is detected have the program play a sound to alert me this is what i have gotten from the help file, but it doesnt work.. any suggestions? $i = 0 While $i <= 10 $coord = PixelSearch( 360, 750, 360, 750, 0xf9f76e, 10 ) If Not @error Then SoundPlay(@WindowsDir & "\media\tada.wav",1) EndIf WEnd Link to comment Share on other sites More sharing options...
gotdank Posted October 12, 2009 Author Share Posted October 12, 2009 sorry for the double post, i wanted to clarify that it compiles just fine, but it does not play a sound when the color is present Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now