![]() |
| |||||||
| Home | GzP Upload | GzP Arcade | Register | vbBux / vbPlaza | All Albums | FAQ | Donate | Members List | Calendar | Mark Forums Read |
| SilkRoad Online Bots/Hacks Discussion SilkRoad Bots and Hacks discussion |
![]() |
| | Thread Tools | Display Modes |
| | #1 |
| Registered User | Newbie guide to auto it and auto it scripting Auto it is a scripting language that allows the user to use its many functions in order to perform auto mated tasks, in other words it’s a language that is used to create a bot not only for Silk Road but for many other games and computer programs in general. Today I am going to teach you how to make a simple hello world program in auto it and also teach you about while loops and hotkeys. To use auto it you will need to download it from here > [Only registered and activated users can see links. ] and remember to save all of your script wiles as .au3. Currently game guard blocks all commands given to Silk Road from foreign programs so if you do decide to make a bot for SRO it will not work until a new modified client is released from [Only registered and activated users can see links. ]. Ok now for the hello world program here I will post the code and explain it later. Try to read over it and see if you can decipher what its saying. Code: MsgBox(0, "Tutorial", "Hello World") Basically what this is doing is calling a message box (MsgBox) and telling the title (Tutorial) and what text to display (Hello World). Now I bet your wondering what that first 0 is for. Well if you want change the code so it says Code: MsgBox(64, "Tutorial", "Hello World") Ok now for a real bot using auto it were going to make an auto grabber. Why an auto grabber? Because it will teach you how to set a hotkey how to use while loops. Ok here’s the code Code: WinActivate ("SRO_Client")
Sleep(1000)
Global $Paused
HotKeySet("\", "Pause")
Func Pause()
$Paused = NOT $Paused
While $Paused
Sleep (400)
Wend
EndFunc
While 1=1
Send ("g")
Sleep(500)
Wend
Ok lets go over the code 1 line at a time the first line WinActivate ("SRO_Client") activates the window SRO_Client when you use a WinActivate or WinWaitActive you have to add the name of the window inside parentheses and quotes and you have to make sure that you have the letters right because it is case sensitive. The next line Sleep (1000) tells the script to sleep for 1000 milliseconds before executing the next line of code. The third line Global $paused sets a global as $Paused so you can use it later on for the pause function. The fourth line is pretty self explanatory; your setting the hotkey as \ and when it is pressed the script is “paused”. now the next line begins a function called Pause() in the function your defining the global $paused as NOT $paused then your setting up a while loop which says while $paused your going to sleep for 400 milliseconds until your not paused any more then the next two lines (Wend and EndFunc) end the while loop and end the function respectively. Now another while loop this one is a bit different though it says while 1=1(1 will always equal 1) it sends g then sleeps 500 milliseconds over and over again. And finally the last line which is another Wend. Now that wasn’t hard was it? I hope you all learned something and will develop as good auto it scripters. If you have any questions you can post it here or pm me. |
| |
| The Following 4 Users Say Thank You to VitaminC++ For This Useful Post: |
| Sponsored Links |
| |
| | #2 |
| Registered User | Re: Newbie guide to auto it and auto it scripting Well, I don't understand this very well, I see no "Pickup" or "autograb" command where do you get the command to do that? |
| |
| | #3 |
| Registered User | Re: Newbie guide to auto it and auto it scripting The "g" key on your keyboard is a shortcut for grabbing the nearest items. He just sends it to Silkroad. But this won't work with the new version of Gamegaurd. You'd need a modded client to send AutoIt commands to Silkroad Online. |
| |
| | #4 |
| Registered User | Re: Newbie guide to auto it and auto it scripting I used AutoIt, but it doesnt have auto use potion and mana, how to make it? |
| |
| | #5 |
| Banned | Re: Newbie guide to auto it and auto it scripting thank you i hope u do more explained topic i realy want to learn this language |
| |
| | #6 |
| Registered User | Re: Newbie guide to auto it and auto it scripting Autoit is one of the easiest langs out there, one reason for that is the helpfile they got there. if you know the basics its shouldnt be so complicated and Use the helpfile its realy helping. NosT |
| |
| | #7 |
| Registered User | Re: Newbie guide to auto it and auto it scripting also another thing if you need to detect pixels in for a bot there is a program in your auto it folder called auto it active windo info or something like that that will give you the comlor thats under your mouse in hex and html |
| |
| | #8 |
| Registered User | Re: Newbie guide to auto it and auto it scripting Been using autoit for most of today, it rocks Incredibly, INCREDIBLY easy language to master and yes, awesome help files |
| |
| | #9 |
| Registered User | Re: Newbie guide to auto it and auto it scripting Ok a few things... First, if you cant seem to understand autoit, look at the help file. If microsoft's help file was as easy to use as autoit's, there would be no "windows for dummies" books... Secondly, this doesnt work... it spamms G, all good and dandy, but the game somehow blocks it... Im working on another way of doing the same thing... might work might not... if it works i will post it here (theres more than one way to kill a cat) Anyways, learn autoit its awsome and easy as pi (lol pun intended) and it can be used everywhere, and i do mean everywhere... anyways off to remake the autograbber... |
| |
| | #10 |
| Registered User | Re: Newbie guide to auto it and auto it scripting well what i tried didnt work... the game seems to know if the key imput is coming from a program or the keyboard... i dont know how to fix it... if i do i will post here... For those of you that might know what it means, i was trying to set the time that the key is "down"... it may also help to make autoit send the keydown, then wait a little, then send a keyup... also i wanted to make it all in an if statment that would detect if silkroad was "on top" before it did anything... lastly, add the thing that says "program paused"... anyways, i will keep working if somone has ideas let me know |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |