Sign in to follow this  
Followers 0
MaxxQ

PixelChecksum Plz Help

3 posts in this topic

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.

Share this post


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

Share this post


Link to post
Share on other sites

Thank you, but as a indicate function PixelChecksum = 1234567890 (amount pixels), and if PixelChecksum = 1234567890 - Send ( 'z'); if PixelChecksum = ?????????? (anything) - send ( 'x')

Is it possible?

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