Jump to content

PixelChecksum Plz Help


MaxxQ
 Share

Recommended Posts

Hi everyone, how to make the calculation graphical computing field 0х0, 50x50 when PixelChecksum equal 1111111111 must go by pushing the keys Z, with the amount of any other key X, as a function should look like?

Sorry for my English, translate google.

Link to comment
Share on other sites

The english is a little hard to read. I'm not sure I fully understand you. However the basis of what your trying to get at seems to be:

; Get initial checksum
$checksum = PixelChecksum(0,0, 50,50)

; Wait for the region to change, the region is checked every 100ms to reduce CPU load
While 1
    Sleep(1000)
    
    if $checksum = PixelChecksum(0,0, 50, 50) Then
        Send('z')
    Else
        Send('x')
    EndIf
  
WEnd

This is not a great way to do it as it needs an exit and more control of the send but it's the general idea.

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...