Jump to content

i need some help


 Share

Recommended Posts

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

Link to comment
Share on other sites

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()

Link to comment
Share on other sites

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!")
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...