cammy9.9 Posted October 28, 2006 Share Posted October 28, 2006 Im needing help with a script im working on its a bot for a game that i play i need the script to sort of sleep intill the change has happoned then to start running agen i tryed useing the sleep thing but i dont want it to wait for a amount of time but to wait intill it has the change has takeon place. i am new to autoit as well Link to comment Share on other sites More sharing options...
Paulie Posted October 28, 2006 Share Posted October 28, 2006 Im needing help with a script im working on its a bot for a game that i play i need the script to sort of sleep intill the change has happoned then to start running agen i tryed useing the sleep thing but i dont want it to wait for a amount of time but to wait intill it has the change has takeon place. i am new to autoit as well Are you looking for a chang in a specific spot? or could the change happen anywhere?Look herePixelCheckSum() Link to comment Share on other sites More sharing options...
cammy9.9 Posted October 28, 2006 Author Share Posted October 28, 2006 both i dont know very mush about it Link to comment Share on other sites More sharing options...
Paulie Posted October 28, 2006 Share Posted October 28, 2006 both i dont know very mush about it ; Get initial checksum $checksum = PixelChecksum(0, 0, @DesktopWidth, @DesktopHeight) ; Wait for the region to change, the region is checked every 100ms to reduce CPU load While $checksum = PixelChecksum(0, 0, @DesktopWidth, @DesktopHeight) Sleep(100) WEnd MsgBox(0, "", "Something has changed!") Link to comment Share on other sites More sharing options...
Richard Robertson Posted October 28, 2006 Share Posted October 28, 2006 Wow, Paulie, I can't tell if you are being sarcastic by giving the noob that code or if you expect them to run it and learn. Link to comment Share on other sites More sharing options...
Paulie Posted October 28, 2006 Share Posted October 28, 2006 Wow, Paulie, I can't tell if you are being sarcastic by giving the noob that code or if you expect them to run it and learn.I wasn't being sarcastic.It is pretty much the example straight from the helpfile, I gave it to him so he could look at everything about it, and if there is something he doesn't understand he could look it up or ask a specific question. 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