Sign in to follow this  
Followers 0
GodForsakenSoul

checksum problems [solved]

1 post in this topic

#1 ·  Posted (edited)

alright... i sort of learned using the allmighty PixelChecksum.

i made two scripts for myself so far, one of them works but the other doesn't.

here's the one that doesn't.

Dim const $ClickHere = 2305634675
While 1=1
    if PixelChecksum (470,180,521,194) = $ClickHere Then
        MouseClick ("left" [,495,187 [, 1] [,0]]])
        Sleep (5000)
    EndIf
WEnd

i mean, it STARTS, does not yell at me for typos, but when the click here button shows up, it does not click it.

as you may have guessed, i want it to loop forever. where did i screw up?

edit: it appears that MouseClick is too complicated for either autoit or my computer to handle...

dividing it to

MouseMove (495,180)
MouseClick ("left")

seems to have solved the problem.

Edited by GodForsakenSoul

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