UnknownWarrior Posted October 24, 2008 Share Posted October 24, 2008 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 More sharing options...
Valuater Posted October 24, 2008 Share Posted October 24, 2008 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) Link to comment Share on other sites More sharing options...
UnknownWarrior Posted October 25, 2008 Author Share Posted October 25, 2008 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 More sharing options...
UnknownWarrior Posted October 25, 2008 Author Share Posted October 25, 2008 Fixed it... #Close Thread? xD 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