Sign in to follow this  
Followers 0
mokitooo

Why still clicking?

3 posts in this topic

Hey, what's up. I still creating automovement program, and i'm on a mess. The part of the script that makes me crazy is this one:

MouseClick("left",647,592)
$14 = PixelGetColor(859,596)
if not $14 = 11657443 Then
    MouseClick("left",512,861)
Else
    _DoCacota16()
EndIf

Func _DoCacota16()
    MouseClick("left",647,592)
    $14 = PixelGetColor(859,596)
    if not $14 = 11657443 Then
        MouseClick("left",512,861)
    Else
        _DoCacota16()
    EndIf
EndFunc

Well, here it seams rly easy, because it just ought to click somewhere, check the pixel, and if the pixel stills there, click again, and so infinite times till the pixel disappears. But, it just clicks on 647,592 , even when the pixel has disappeared. What's happening here, it's like it detects ever the pixel with the color 11657443, but it's not o.o

thanks.

Share this post


Link to post
Share on other sites



this test is wrong:

if not $14 = 11657443 Then

should be :

if not ($14 = 11657443) Then

or

if $14 <> 11657443 Then

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

this test is wrong:

if not $14 = 11657443 Then

should be :

if not ($14 = 11657443) Then

or

if $14 <> 11657443 Then

Jos

Thanks!:)

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