Jump to content

Why still clicking?


 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • Developers

this test is wrong:

if not $14 = 11657443 Then

should be :

if not ($14 = 11657443) Then

or

if $14 <> 11657443 Then

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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