Jump to content

2 variables aren't cooperately


Recommended Posts

Sleep(14000)
                
                Sleep(500)
                $checksum123 = PixelChecksum(111, 88, 125, 99)

                While $checksum123 = PixelChecksum(111, 88, 125, 99)
                    MouseClick( "left", 292, 110)
                    Sleep(1000)
                WEnd                
                Sleep(1000)                                    
                MouseClick( "left", 292, 110)                                       
                Sleep(700)                                      
                Send("{F9}")
                Sleep(1000)
                  
                Sleep(500)
                Send("{ENTER}")
                Sleep(15000)
                
                $checksum = PixelChecksum(878, 125, 900, 146)

                While $checksum = PixelChecksum(878, 125, 900, 146)
                    Sleep(100)
                WEnd
                Sleep(2000)
                
                Send("{F4}")

This part isn't working:

$checksum = PixelChecksum(878, 125, 900, 146)

                While $checksum = PixelChecksum(878, 125, 900, 146)
                    Sleep(100)
                WEnd

Before I added in $checksum123, $checksum worked fine... Now $checksum123 works good, but now $checksum won't work for me... Any ideas?

Link to comment
Share on other sites

works for me...

; Wait until something changes in the region 0,0 to 50,50

; Get initial checksum
$checksum = PixelChecksum(878, 125, 900, 146)

; Wait for the region to change, the region is checked every 100ms to reduce CPU load
While $checksum = PixelChecksum(878, 125, 900, 146)
  Sleep(100)
  ToolTip("Sleeping...", 10, 10)
WEnd

ToolTip("")
MsgBox(0, "", "Something in the region has changed!")

8)

NEWHeader1.png

Link to comment
Share on other sites

works for me...

; Wait until something changes in the region 0,0 to 50,50

; Get initial checksum
$checksum = PixelChecksum(878, 125, 900, 146)

; Wait for the region to change, the region is checked every 100ms to reduce CPU load
While $checksum = PixelChecksum(878, 125, 900, 146)
  Sleep(100)
  ToolTip("Sleeping...", 10, 10)
WEnd

ToolTip("")
MsgBox(0, "", "Something in the region has changed!")

8)

That part ALONE works for me, but added in with my OTHER variable ($checksum123) they won't work together... Is there something I'm doing wrong with the first script I gave? :S
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...