MaxxQ Posted November 4, 2007 Posted November 4, 2007 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.
stampy Posted November 4, 2007 Posted November 4, 2007 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.
MaxxQ Posted November 4, 2007 Author Posted November 4, 2007 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?
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