Jump to content

$wtf Not 1 Not Working


Recommended Posts

I was doing =not but then it wasent working right.

how can i fix it?

Func potcheck()
        Do
    $p1=PixelGetColor(441,500)
    MsgBox(0,"1",$p1)
    Until $p1 Not 263172
        Do
    $p2=PixelGetColor(472,500)
    MsgBox(0,"2",$p2)
    Until $p2 Not 526344 
        Do
    $p3=PixelGetColor(502,500)
    MsgBox(0,"3",$p3)
    Until $p3 Not 105376 
        Do
    $p4=PixelGetColor(531,500)
    MsgBox(0,"4",$p4)
    Until $p4 Not 263172
EndFunc
Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()
Link to comment
Share on other sites

Func potcheck()
        Do
    $p1=PixelGetColor(441,500)
    MsgBox(0,"1",$p1)
    Until $p1 <> 263172
        Do
    $p2=PixelGetColor(472,500)
    MsgBox(0,"2",$p2)
    Until $p2 <> 526344 
        Do
    $p3=PixelGetColor(502,500)
    MsgBox(0,"3",$p3)
    Until $p3 <> 105376 
        Do
    $p4=PixelGetColor(531,500)
    MsgBox(0,"4",$p4)
    Until $p4 <> 263172
EndFunc

<> means not equal to.

Link to comment
Share on other sites

  • Moderators

holy crap i never seen that in documents thanks alot.

This could have been fixed like this too:
Func potcheck()
    Do
        $p1 = PixelGetColor(441,500)
        MsgBox(0, "1", $p1)
    Until Not ($p1 == 263172)
    Do
        $p2 = PixelGetColor(472,500)
        MsgBox(0, "2", $p2)
    Until Not ($p2 == 526344)
    Do
        $p3 = PixelGetColor(502,500)
        MsgBox(0, "3", $p3)
    Until Not ($p3 == 105376)
    Do
        $p4 = PixelGetColor(531,500)
        MsgBox(0, "4", $p4)
    Until Not ($p4 == 263172)
EndFunc  ;==>potcheck
BTW... what is "potcheck"? I can only think of 420 things for this :)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

This could have been fixed like this too:

Func potcheck()
    Do
        $p1 = PixelGetColor(441,500)
        MsgBox(0, "1", $p1)
    Until Not ($p1 == 263172)
    Do
        $p2 = PixelGetColor(472,500)
        MsgBox(0, "2", $p2)
    Until Not ($p2 == 526344)
    Do
        $p3 = PixelGetColor(502,500)
        MsgBox(0, "3", $p3)
    Until Not ($p3 == 105376)
    Do
        $p4 = PixelGetColor(531,500)
        MsgBox(0, "4", $p4)
    Until Not ($p4 == 263172)
EndFunc ;==>potcheck
BTW... what is "potcheck"? I can only think of 420 things for this :)
Clever.. but pot could also stand for potion....
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...