TheOnlyOne Posted October 10, 2008 Share Posted October 10, 2008 (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 October 10, 2008 by TheOnlyOne Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 10, 2008 Share Posted October 10, 2008 PixelSearch() should give you x,y coord. so MouseClick() would be the best way to go. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
TheOnlyOne Posted October 10, 2008 Author Share Posted October 10, 2008 (edited) hmm plz post exaple ? im not sure on what you mean Edited October 10, 2008 by TheOnlyOne Link to comment Share on other sites More sharing options...
Bert Posted October 10, 2008 Share Posted October 10, 2008 do you know anything about the AutoIt language? serious question. If not, then look here: http://www.autoitscript.com/forum/index.php?showtopic=21048 The Vollatran project  My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
TheOnlyOne Posted October 10, 2008 Author Share Posted October 10, 2008 hmm i do know a little bit bot not mutch i will look on the site ty Link to comment Share on other sites More sharing options...
TehWhale Posted October 10, 2008 Share Posted October 10, 2008 There is also a great helpfile, and a pretty good examples listing in my signature Link to comment Share on other sites More sharing options...
Aceguy Posted October 10, 2008 Share Posted October 10, 2008 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 [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
TheOnlyOne Posted October 10, 2008 Author Share Posted October 10, 2008 do you know anything about the AutoIt language? serious question. If not, then look here: http://www.autoitscript.com/forum/index.php?showtopic=21048really really thanks it is working now its just took 10-40 min reading and trying and then i got it ;Dhmm i post the script about 10-20 mins ty agian Link to comment Share on other sites More sharing options...
TheOnlyOne Posted October 10, 2008 Author Share Posted October 10, 2008 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") Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now