Jump to content

Problem With My Code


Recommended Posts

Hi !

I have a problem with my Program

Global $Coord[2]
HotKeySet("{F1}", "fin")


Func fin()
    Exit
EndFunc

Func verif()
    Sleep(200)
    $up = PixelGetColor(810,600)
    $echange = PixelGetColor(957, 591)
    If $echange = 0xFF6100 Then
        Mouseclick("left",957, 591)
    ElseIf $up = 0xFF6100 Then
        MouseClick("left",810,600)
    EndIf
EndFunc

Func faucher()
    WinActivate("Biffleur-Masquer")
    $Coord = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0xFAD22B, 1)

    If not @error Then
        Mouseclick("left", $Coord[0], $Coord[1], 1, 0)
        Sleep(500)
        Mouseclick("left", $Coord[0] + 25, $Coord[1] + 30, 1, 1)
        Sleep(15000)
    Else
        Sleep(3000)
    EndIf
EndFunc

    While 1
        verif()
        faucher()
    WEnd

In Game (Dofus), The bot doesnt work.

The mouse doesnt move and click on the position.

That's a "Test Bot" for Dofus 2.0, Im not really going to use it. Just to pratice AutoIt

(Sorry for my bad english)

Thx !

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