Jump to content
Sign in to follow this  
cammy9.9

i need some help

Recommended Posts

cammy9.9

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 :whistle:;)

Share this post


Link to post
Share on other sites
Paulie

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 :whistle:;)

Are you looking for a chang in a specific spot? or could the change happen anywhere?

Look here

PixelCheckSum()

Share this post


Link to post
Share on other sites
Paulie

both i dont know very mush about it :whistle:

; 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!")

Share this post


Link to post
Share on other sites
Richard Robertson

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.

Share this post


Link to post
Share on other sites
Paulie

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.