GamerzPlanet - For All Your Online Gaming Needs!!

Go Back   GamerzPlanet - For All Your Online Gaming Needs!! > SilkRoad Online > SilkRoad Online Bots/Hacks Discussion

SilkRoad Online Bots/Hacks Discussion SilkRoad Bots and Hacks discussion



Newbie guide to auto it and auto it scripting

SilkRoad Online Bots/Hacks Discussion


Closed Thread
 
Thread Tools Display Modes
Old 07-18-2006, 08:55 PM   #1
Registered User
 
Last Online: 07-31-2007 10:15 AM
Join Date: Feb 2006
Posts: 68
Thanks: 1
Thanked 11 Times in 6 Posts
VitaminC++ is on a distinguished road
iTrader: 0 / 0%
Points: 120.00
Bank: 0.00
Total Points: 120.00
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")
Go ahead and save that as HelloWorld.au3 and run it and see what happens.

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")
If you did it right the message box should now have an I before it says Hello World. Try changing the number around and see what happens.

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.
VitaminC++ is offline  
The Following 4 Users Say Thank You to VitaminC++ For This Useful Post:
FireHawk2k2 (07-24-2006), kenan557 (07-18-2006), nightmare7570 (07-20-2006), swiss-cs (07-24-2006)
Sponsored Links
Old 07-20-2006, 01:58 PM   #2
Registered User
 
Last Online: 07-21-2006 09:39 AM
Join Date: Jul 2006
Age: 63
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
mistr jesse is on a distinguished road
iTrader: 0 / 0%
Points: 100.00
Bank: 0.00
Total Points: 100.00
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?
mistr jesse is offline  
Old 07-20-2006, 07:26 PM   #3
Registered User
 
Last Online: 10-28-2006 10:41 PM
Join Date: Jul 2006
Age: 19
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Chemrom is on a distinguished road
iTrader: 0 / 0%
Points: 25.00
Bank: 0.00
Total Points: 25.00
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.
Chemrom is offline  
Old 07-20-2006, 11:32 PM   #4
Registered User
 
Last Online: 11-12-2008 01:30 PM
Join Date: Feb 2006
Posts: 10
Thanks: 3
Thanked 1 Time in 1 Post
Dastkoo is on a distinguished road
iTrader: 0 / 0%
Points: 5,209.00
Bank: 0.00
Total Points: 5,209.00
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?
Dastkoo is offline  
Old 07-20-2006, 11:45 PM   #5
Banned
 
Last Online: 06-11-2007 09:29 AM
Join Date: May 2006
Age: 21
Posts: 26
Thanks: 4
Thanked 1 Time in 1 Post
nightmare7570 is on a distinguished road
iTrader: 0 / 0%
Points: 80.00
Bank: 0.00
Total Points: 80.00
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
nightmare7570 is offline  
Old 07-21-2006, 06:49 AM   #6
Registered User
 
Last Online: 08-17-2008 02:49 AM
Join Date: Mar 2006
Posts: 54
Thanks: 0
Thanked 32 Times in 14 Posts
NosT is on a distinguished road
iTrader: 0 / 0%
Points: 1,013.00
Bank: 0.00
Total Points: 1,013.00
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
NosT is offline  
Old 07-22-2006, 12:17 AM   #7
Registered User
 
Last Online: 07-31-2007 10:15 AM
Join Date: Feb 2006
Posts: 68
Thanks: 1
Thanked 11 Times in 6 Posts
VitaminC++ is on a distinguished road
iTrader: 0 / 0%
Points: 120.00
Bank: 0.00
Total Points: 120.00
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
VitaminC++ is offline  
Old 07-22-2006, 01:53 PM   #8
Registered User
 
Last Online: 02-02-2008 06:13 PM
Join Date: Jul 2006
Posts: 190
Thanks: 7
Thanked 38 Times in 18 Posts
NochnoiDozor is on a distinguished road
iTrader: 0 / 0%
Points: 2,225.00
Bank: 0.00
Total Points: 2,225.00
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
NochnoiDozor is offline  
Old 07-23-2006, 09:41 PM   #9
Registered User
 
Last Online: 07-12-2007 01:38 AM
Join Date: Apr 2006
Posts: 34
Thanks: 1
Thanked 0 Times in 0 Posts
The_noob is on a distinguished road
iTrader: 0 / 0%
Points: 216.00
Bank: 0.00
Total Points: 216.00
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...
The_noob is offline  
Old 07-23-2006, 10:05 PM   #10
Registered User
 
Last Online: 07-12-2007 01:38 AM
Join Date: Apr 2006
Posts: 34
Thanks: 1
Thanked 0 Times in 0 Posts
The_noob is on a distinguished road
iTrader: 0 / 0%
Points: 216.00
Bank: 0.00
Total Points: 216.00
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
The_noob is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT -7. The time now is 05:32 PM.


Powered by: vBulletin
Copyright ©2008, GamerzPlanet.Net
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Network: GamerzPlanet | ForumzPlanet | GzPUpload | GzPArcade | GzP Host | Australian Poker | Watch Desperate Housewives | Visits: