Bananaphone123 Posted October 1, 2006 Share Posted October 1, 2006 Hello, I've just started using AutoIt and I've ran into a bit of a problem. I'm trying to write a script that will play a sound if a certain color is found within a certain area. PixelSearch ( 33, 650, 450, 550, 2493954, 10 ) If Not @error Then SoundPlay("C:\Windows\media\tada.wav", 1) This is what I have and I can't get it to work. I'm sure it is just a noob mistake, but would someone explain to me what I'm doing wrong? Thanks! Link to comment Share on other sites More sharing options...
Paulie Posted October 1, 2006 Share Posted October 1, 2006 Hello, I've just started using AutoIt and I've ran into a bit of a problem. I'm trying to write a script that will play a sound if a certain color is found within a certain area. PixelSearch ( 33, 650, 450, 550, 2493954, 10 ) If Not @error Then SoundPlay("C:\Windows\media\tada.wav", 1) This is what I have and I can't get it to work. I'm sure it is just a noob mistake, but would someone explain to me what I'm doing wrong? Thanks!coordinates can not be right, needs to be like this Pixelsearch(TopLeftX, TopleftY, BottomRightX, BottomRightY, Color, shade) Link to comment Share on other sites More sharing options...
Bananaphone123 Posted October 1, 2006 Author Share Posted October 1, 2006 coordinates can not be right, needs to be like this Pixelsearch(TopLeftX, TopleftY, BottomRightX, BottomRightY, Color, shade) That was the problem. Thank you very much. Link to comment Share on other sites More sharing options...
Paulie Posted October 1, 2006 Share Posted October 1, 2006 That was the problem. Thank you very much. No problem, glad i could help 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