Sign in to follow this  
Followers 0
UnknownWarrior

2 variables aren't cooperately

4 posts in this topic

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?

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Fixed it... #Close Thread? xD

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  
Followers 0