Sign in to follow this  
Followers 0
nofire

Problem With My Code

7 posts in this topic

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 !

Share this post


Link to post
Share on other sites



post-43958-0-23300800-1303165340_thumb.p

Share this post


Link to post
Share on other sites

I'm just asking why my pointer doesnt move...

Share this post


Link to post
Share on other sites

I'm just asking why my pointer doesnt move...

You're still asking about it for a bot for a game though.

Share this post


Link to post
Share on other sites

I'm just asking why my pointer doesnt move...

Sorry, then take a look to this

Share this post


Link to post
Share on other sites

If I edit and i say that s for a somethings else ?

Share this post


Link to post
Share on other sites

If I edit and i say that s for a somethings else ?

you're toast ! Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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