sinnerboy6606 Posted July 14, 2009 Posted July 14, 2009 (edited) im trying to make a bot for a game using autoit but for some reason i cant get my autoit window finder to work on finding the right window (its an online game connected through a web browser dunno if thats the reason or not) but also i have some quiestions on setting a kind of "guide point" for it to move my character Edited July 14, 2009 by sinnerboy6606
trung0407 Posted July 14, 2009 Posted July 14, 2009 What do you mean you can't find the right window? The browser window doesn't have a title or a window inside the game. If the game is coded in Java or Flash, there is nothing you can do beside spamming mouse click.
sinnerboy6606 Posted July 14, 2009 Author Posted July 14, 2009 What do you mean you can't find the right window? The browser window doesn't have a title or a window inside the game. If the game is coded in Java or Flash, there is nothing you can do beside spamming mouse click.so if its java theres no us in making a bot for it?
trung0407 Posted July 14, 2009 Posted July 14, 2009 You can make bot with MouseClick, Send should work fine...
sinnerboy6606 Posted July 14, 2009 Author Posted July 14, 2009 You can make bot with MouseClick, Send should work fine...but ok how would i go about starting it like ok i am sort of new to autoit but i herd it was repetitively easy to make a game bot for online gaming like all i want it to do is click on something till my inventory is full then run back stash it then go back to the same spot and do it all over again how would i go about doing that?
trung0407 Posted July 14, 2009 Posted July 14, 2009 (edited) First you need to identify the unique color of the loot, using Autoit window info tool. Then make a loop with PixelSearch to search for the color if your loot appear. Next, make a mouse click to loot it. And so on, you need to figure out what's the characteristics of the event "inventory full" then try to code it... There are methods such as analyzing packets, but it's hard for newbies Edited July 14, 2009 by trung0407
sinnerboy6606 Posted July 14, 2009 Author Posted July 14, 2009 (edited) First you need to identify the unique color of the loot, using Autoit window info tool.Then make a loop with PixelSearch to search for the color if your loot appear. Next, make a mouse click to loot it. And so on, you need to figure out what's the characteristics of the event "inventory full" then try to code it...this is runescape i wanna make a bot for so basicly its gunna be an auto woodcutter it only really has to click on 1 spot how would i program it to click on 1 little spot then when full stash the invi? Edited July 14, 2009 by sinnerboy6606
trung0407 Posted July 14, 2009 Posted July 14, 2009 I just told you lol. Detect color, mouse click... If you have X slots in inventory, then make X mouse click only, after that, go home...
sinnerboy6606 Posted July 14, 2009 Author Posted July 14, 2009 (edited) I just told you lol. Detect color, mouse click...If you have X slots in inventory, then make X mouse click only, after that, go home...k so i got the color set and the loop for chopping now k how would i start on how to make the bot bank everytime its full like hows it going to know how many logs i chop for every tree?im not a 100% sure i got what im trying to do but if not i can go back and debug itoh and would i have to set hotkeys if theres only going to be 1 button pressed? Edited July 14, 2009 by sinnerboy6606
trung0407 Posted July 14, 2009 Posted July 14, 2009 But first tell me how can you identify you inventory full, supposedly you are a script and not human?
Rkey Posted July 14, 2009 Posted July 14, 2009 I assume there is a way to look at you inventory and there is an order in it so the last item you gather always is in the same spot (and assuming your inventory is always in the same spot too) In that case you can get the pixelcolor of your last inventoryslot to determine if your inventory is full. Another idea is to just set the number of times to the minimum of the amount your inventory can be full. I assume it does no harm to bank your inventory when it is halffull.
sinnerboy6606 Posted July 14, 2009 Author Posted July 14, 2009 (edited) I assume there is a way to look at you inventory and there is an order in it so the last item you gather always is in the same spot (and assuming your inventory is always in the same spot too)In that case you can get the pixelcolor of your last inventoryslot to determine if your inventory is full.Another idea is to just set the number of times to the minimum of the amount your inventory can be full. I assume it does no harm to bank your inventory when it is halffull. k but when invi is full it'll say in chat if you try to grab something could i use that as a reference to make it bank?there is a way to look at your invi but it'll be more accurate if i check the msg log cause it says everytime i get a logand is the (sleep) in seconds or minutes i cant find it in the help sectionand also how would i set it for a number of loops for clicking then have it bank after Edited July 14, 2009 by sinnerboy6606
Developers Jos Posted July 14, 2009 Developers Posted July 14, 2009 and is the (sleep) in seconds or minutes i cant find it in the help sectionYou did actually read it? Sleep --------------------------------------------------------------------------------Pause script execution.Sleep ( delay )Parametersdelay Amount of time to pause (in milliseconds). Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
sinnerboy6606 Posted July 14, 2009 Author Posted July 14, 2009 You did actually read it? Josi know lol i was meaning is there a way to set it in seconds? cause it sure would take a lot less time
Developers Jos Posted July 14, 2009 Developers Posted July 14, 2009 i know lol i was meaning is there a way to set it in seconds? cause it sure would take a lot less time Now lets think about that: How many Milliseconds where there again in a second ? Ah .. yes ... 1000 So I guess you just do "Sleep(5 * 1000)" for 5 seconds.. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
sinnerboy6606 Posted July 14, 2009 Author Posted July 14, 2009 (edited) Now lets think about that: How many Milliseconds where there again in a second ? Ah .. yes ... 1000 So I guess you just do "Sleep(5 * 1000)" for 5 seconds.. Jos k heres what i got so far HotKeySet("{f3}","click") ; set f3 ; to function "click ;create a loop which will loop ;until something happends ; like f3 is pressed while 1 sleep(50) ; to be nice to CPU WEnd ;create the Func click Func click() ; start a loop While 1 Sleep(4000) ; delay between ;clicks ; this will make a left click ; at the mouse pos MouseClick("left" [, 452, 408]) tell me if that wont work for clicking on a spot for the time being im running of tutorials on youtube and what you guys are telling me so yea i dont think its right Edited July 14, 2009 by sinnerboy6606
Developers Jos Posted July 14, 2009 Developers Posted July 14, 2009 k heres what i got so far-snip-tell me if that wont work for clicking on a spot for the time beingim running of tutorials on youtube and what you guys are telling me so yea i dont think its rightWhats wrong with doing the testing and debugging yourself?Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
sinnerboy6606 Posted July 14, 2009 Author Posted July 14, 2009 Whats wrong with doing the testing and debugging yourself? Jos k i tested it out for what i got so far and it said line 28 (my info on were its located on my computer): mouseclick("left"[, 452,408]) error: "while" statement has no matching "wend" statement. any clue on what I'm doing wrong?
Developers Jos Posted July 14, 2009 Developers Posted July 14, 2009 any clue on what I'm doing wrong? I have no idea and really don't care about BOT creation. The real question is : Do you? k i tested it out for what i got so far and it said line 28 (my info on were its located on my computer): mouseclick("left"[, 452,408]) error: "while" statement has no matching "wend" statement. What are the square brackets supposed to do in the statement? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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