Sign in to follow this  
Followers 0
TheOnlyOne

bot ?

9 posts in this topic

#1 ·  Posted (edited)

okay i need a bot to a game where some gnats spawn all the time and then i have to click on them...

here is my script (still need somethink . that what i need help for)

[/code]MsgBox (0,"",""); that is just so i can switch to the browser
do
$1= PixelSearch (180,350,780,755,11162191,0,1); some of the possible colors it need to click on
$2= PixelSearch (180,350,780,755,9068879,0,1); some of the possible colors it need to click on
$3= PixelSearch (180,350,780,755,7227967,0,1); some of the possible colors it need to click on
$4= PixelSearch (180,350,780,755,16777215,0,1); some of the possible colors it need to click on


if PixelSearch (180,350,780,755,16777215,0,1) = PixelSearch (180,350,780,755,16777215,0,1) then; the problem comes up here ... what do i need to wright so it can click on the gnat there it
spawn? i cant use mouseclick for then i need a x and a y but this is nearly never the same
if PixelSearch (180,350,780,755,7227967,0,1) = PixelSearch (180,350,780,755,7227967,0,1) then; the problem comes up here ... what do i need to wright so it can click on the gnat there it spawn? i cant use mouseclick for then i need a x and a y but this is nearly never the same
if PixelSearch (180,350,780,755,9068879,0,1) = PixelSearch (180,350,780,755,9068879,0,1) then; the problem comes up here ... what do i need to wright so it can click on the gnat there it spawn? i cant use mouseclick for then i need a x and a y but this is nearly never the same
if PixelSearch (180,350,780,755,11162191,0,1) = PixelSearch (180,350,780,755,11162191,0,1) then; the problem comes up here ... what do i need to wright so it can click on the gnat there it spawn?  i cant use mouseclick for then i need a x and a y but this is nearly never the same
until send ("{f8}")
Edited by TheOnlyOne

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

hmm plz post exaple ?

im not sure on what you mean :P

Edited by TheOnlyOne

Share this post


Link to post
Share on other sites

hmm i do know a little bit bot not mutch :P

i will look on the site :(

ty

Share this post


Link to post
Share on other sites

There is also a great helpfile, and a pretty good examples listing in my signature :P

Share this post


Link to post
Share on other sites

Here is a little script to get you started.....

$search=PixelSearch(50,50,200,200,162775,50)
if IsArray($search) then 
MsgBox(0,"","found that colour at X"&$search[0]&"   Y"&$search[1],0)
MouseMove($search[0],$search[1])
Else
    MsgBox(0,"Error","not found",0)
EndIf

Share this post


Link to post
Share on other sites

do you know anything about the AutoIt language? serious question. If not, then look here: http://www.autoitscript.com/forum/index.php?showtopic=21048

really really thanks it is working now :P its just took 10-40 min reading and trying and then i got it ;D

hmm i post the script about 10-20 mins :(

ty agian :idea:

Share this post


Link to post
Share on other sites

sleep (3000)
Dim $Game,$mid
Dim $My_Color =0xA37649
Dim $My_Color2 = 0xAC130B
Dim $My_Color3 =0xA72010
opt("MouseCoordMode", 0)       ;see Level I or Search Help for "options".
Opt("PixelCoordMode", 0)       
do
$hitgnot = PixelSearch( 180, 350, 780, 755, $My_Color, 50, 10) 
        If Not @error Then MouseClick("left", $hitgnot[0], $hitgnot[1], 1, 0)
        
$hitgnot2 = PixelSearch( 180, 350, 780, 755, $My_Color, 50, 10) 
        If Not @error Then MouseClick("left", $hitgnot2[0], $hitgnot2[1], 1, 0)
    until run ("nothink.exe")

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