Sign in to follow this  
Followers 0
Roby123

Problem with pixel search!

4 posts in this topic

Goodmornig to Everybody!

I want to create a bot that go around a map (a flash map) find an Item (that has a lot of color) and click on it and send left ctrl this is the code

Func streuner()
while 1 
    $trovato=false
    $puntoX = Random($MiniMappaXa, $MiniMappaXb, 1);
    $puntoY = Random($MiniMappaYa, $MiniMappaYb, 1);
    MouseClick( "left", $puntoX, $puntoY, 1, 0)
    $loop=0
    while $loop=0
        call("nemico")
        $colore="0xFF0000"
        $pixel=PixelSearch ( 0,20, 20,40,$colore )
        If Not @error Then
            $trovato= True
            MouseClick($pixel[0], $pixel[1], 1,0)
             Send("{LCTRL}")
             $loop=1
        EndIf
    wend
        Sleep(1000)
wend
endFunc

with minimappa I choose a random cupple number's for decide the coordinate, it does it only once time and I don't know why!

and it doesn't find the pixel color iven if the items is on the window!

Please help me!

Thanks for the answers

Roberto

Share this post


Link to post
Share on other sites



try to use shade varations, and... what game is it?

Share this post


Link to post
Share on other sites

try to use shade varations, and... what game is it?

the game is darkorbit if you want to see what is it insert

nick -venge-

password sapessi90

then click to start

that is the window I need and streuner the Item that I want to capture!

Share this post


Link to post
Share on other sites

Nobody Can Help me???

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