Results 1 to 2 of 2
  1. #1
    mrsmokeof's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    68
    My Mood
    Amazed

    AutoIT Need Help With The Code! Pls!



    Ok what i want to do with this? I will try explain my best. The guy in the middle is inside of a rectangle and the round balls are , let see..., well they can be gifts.

    So what i wanna do is : i want the "guy" search for that round balls and then when he found they, i want he pick the gifts.

    well i tried a few things , like pixelsearch & pixelchecksum but i cant get this to work.

    Im asking then for a few ideas to make this work and few tips how i can make this possible.

    Ty every1!

    This is my code, hope can help some1 to tell me whats wrong or missing

    Code:
    HotKeySet("{1}","quit")
    WinWait("test","")
    WinWaitActive("test","")
    sleep(500)
    
    
    opt("mouseclickdelay",200)
    opt("MouseClickDownDelay",200)
    While 1
       $box=PixelSearch(0,0,1280,800,0xFFFFC4)
       
       if IsArray($box) = True Then
    	  MouseClick("left",$box[0],$box[1])
    	  sleep(500)
       ElseIf IsArray($box) = False Then
    	  MouseClick("left",(random(1070,1265)),(random(640, 756)))
    	  sleep(5000)
       EndIf
    
       WEnd
       
       Func quit ()
    	  Exit
    	  EndFunc
    Ok, so i can now make the thing move but now im getting a problem.

    When the "thing" starts walk around and pass for a gift box he just ignore the gift box >.<!

    this is my main problem!

    Can some1 tell me how to write the code to make the "thing" pick up the gift box and continue searching for more?

    P.S: Couldnt remove the attachment, but is just a pic, dont need download since the pic is on top!
    Attached Thumbnails Attached Thumbnails
    exemple.png  

    Last edited by mrsmokeof; 01-17-2013 at 10:12 PM.

  2. #2
    mrsmokeof's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    68
    My Mood
    Amazed
    hey guys! cmon any help would be great!
    I know im missing something! >.<

    I dont wanna be a leecher and im trying by my self starting to do some nice crazy scripts! For educational proposes only,of course. ;P

Similar Threads

  1. [Help Request] need help with injecting code/using it
    By 0xx-kyle-xx0 in forum Combat Arms Help
    Replies: 1
    Last Post: 06-17-2018, 12:02 PM
  2. Need help with the code
    By kenstr in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 12-15-2011, 05:27 AM
  3. [Solved] NEED HELP WITH THE ERROE CODE ON COMBAT ARMS 0X3000
    By ikillu0026 in forum Combat Arms Help
    Replies: 2
    Last Post: 07-28-2011, 12:44 PM
  4. [Help Request] i need help with the hack im using
    By kingster626 in forum Combat Arms Help
    Replies: 12
    Last Post: 06-18-2011, 10:15 PM
  5. Hello! i need help with the source code.
    By LatinHacker in forum Combat Arms Help
    Replies: 3
    Last Post: 05-14-2010, 10:32 PM