home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 January / PCWELT_1_2006.ISO / pcwsoft / autoit-v3-setup.exe / Examples / PixelChecksum.au3 < prev    next >
Encoding:
Text File  |  2004-09-22  |  336 b   |  12 lines

  1. ; Wait until something changes in the region 0,0 to 50,50
  2.  
  3. ; Get initial checksum
  4. $checksum = PixelChecksum(0,0, 50,50)
  5.  
  6. ; Wait for the region to change, the region is checked every 100ms to reduce CPU load
  7. While $checksum = PixelChecksum(0,0, 50, 50)
  8.   Sleep(100)
  9. WEnd
  10.  
  11. MsgBox(0, "", "Something in the region has changed!")
  12.