Hey everyone,
I made this quick little eBook type thing for anyone who wanted to be more helpful and doesn't really know how.
It will be updated with more AutoIt stuff, and more survival tips . Now instead of flaming newbs point them here.
Thanks
Chapter 1- Who is this guide for?
Here is a guide that can help all kinds of people. If you want to get better at being a more helpfu at GamerzPlanet, this guide is for you. We are going to look at: · Scanning Files · Giving constructive feedback · How to make your posts meaningful · And Basic Scripting
Chapter Two- Scanning Files
Want to contribute to the community in the easiest way? Scan a file. If someone posts a bot or a macro that no one has scanned yet, and comes from a relatively new, or not trusted member, scan it for everyone. Go to any of the following sites: · [Only registered and activated users can see links. ] · [Only registered and activated users can see links. ] · [Only registered and activated users can see links. ] Any other onlinevirus scanning site will work, but it is recommended that you use these. First, download the suspicious program, but DO NOT OPEN IT. Now, go to any of the virusscan websites listed above, and click the browse button. Find the suspicious file that is downloaded to your computer, and see the results. Post these up and give your feedback on either the scan or the program.
Chapter Three- Giving Constructive Feedback
If you see a bot, macro, or tool that you found a bug or glitch with, post it! Be sure to make your post positive and not flame the threadstarter. Tell them that while you were using his/her program, you found an error with the coding. Tell them what you were doing when the error occurred, and tell them what happened after the error happened (Did the program close? Did your computer shut down?).
Chapter Four- Making your Posts Meaningful
Have a question? Really want to post it? The first thing you should do is use the search button. The search button is located at the top right of your screen, and try searching the forums for the answer(s) to your question(s). Also, check through the announcements! Your answer might be in there!
If you have searched, and checked the announcements, you might want to think about posting. Please use search and the announcements before posting!
Section Two- AutoIt™ Intro For this guide, we are going to use AutoIt™, because it is powerful for a macro script, and very easy to learn. First off, we are going to learn the MouseClick() function. Download AutoIt from [Only registered and activated users can see links. ]. Open your SciTE script editor from your AutoIt folder in your start menu. Or you can right click on your desktop, press new, and click AutoIt script. Now that we’ve got our editor open we can start scripting.
Chapter Two- The Function- MouseClick() OK so if you already know what a function is you can skip this section. For those that don’t know, a function is a series of commands that you can execute easily in one, or more lines of code. For example, in AutoIt there is a built in function called MouseClick(). What goes inside the parentheses are called parameters. The parameters tell the function specifically how to work, but you have to know the parameters that a function requires before using that function. If you don’t really get that that’s OK, because it will get easier once I explain the MouseClick() function.
OK, so the parameters for the MouseClick() function go like this:
MouseClick(“MouseButton[Left Or Right]”, x-coord, y-coord, # of clicks, speed)
So for example, if I wrote:
MouseClick(“left”, 60, 60, 2, 1)
My mouse would move to 60, 60 (speed being 1-10, 1 instantly) instantly, and left click twice. So that’s pretty much the MouseClick() function.
There is two more good functions to learn, the Sleep() function, and the Send() function. These functions are both really easy! The sleep function pauses the script in the middle, so if I wanted it to click once, pause for two seconds, and click again, I would write:
MouseClick(“left”, 30, 70, 1, 3) Sleep(2000) MouseClick(“left”, 30, 70, 1, 3) The parameters inside the Sleep() function are the milliseconds in which to wait. Our last function we are going to learn is the Send() function. There are going to be two smaller functions used in this[ProcessClose and Run], but if you read carefully, you can probably figure out what they do. With the Send() function, you can make the bot or macro type keys. Also, if you write a ; in AutoIt, it automaticially makes whatever comes next a comment, so only people who open the script can see them. All of the comments are going to be in green in this guide. But if I wanted my bot to open notepad, type Hi, and close notepad, I would write:
Run(“notepad.exe”) ;Open Notepad Sleep(2000) ;wait for it to open Send(“Hi”) Sleep(2000) ProcessClose(“notepad.exe”) ; Close Notepad as a process
Another thing the SendKeys() can be used for is sending enter Send(“{Enter}”) Or sending F1, or F2, or F3: Send(“{F1}”) ---More keys are"{CTRLDOWN}" , "{CTRLDOWN}" , "{LSHIFT}" , and "{RSHIFT}" .
Chapter Three- User Defined Functions (or UDFs) So lets say I had a bot that clicked at one spot, clicked at another spot, and clicked at a third spot before closing. It repeated this three times. So, instead of writing this three times I would use a user defined function. A user defined function is just what the name is, you make up your own function. So lets say I wanted to call this sequence of clicks, Click(). Here’s how I would go about doing this:
Func Click() ;Starts the UDF MouseClick(“left”, 30, 70, 1, 3) Sleep(2000) MouseClick(“left”, 60, 70, 1, 3) Sleep(2000) MouseClick(“left”, 80, 70, 1, 3) EndFunc ;Ends the Function
Click() Click() Click() Writing Click() would execute all of the commands inside the UDF. UDFs can have almost any commands inside of them, and are really helpful in long scripts.
Chapter Four – Loops You need to know how to do a loop in AutoIt to make a macro, because when you make a macro, you want it to run continuously. The loop I use most is a 'While', and it is very simple to use. If you want a loop to go forever simply type this:While 1 ;starts loop;Stuff Inside Loop WEnd ;where loop endsSay you want something to run 10 times. You can use a counter variable to mark how many times something has ran. For example:$counter=1 ;declares a variable "$counter" and sets its value at 1.Note you can use any variable as long as it starts with a $. So I could say $Chicken=1, but I would have to say this throughout the whole script. While $counter<=10 ;this loop will run as long as $counter is less than or equal to 10 MouseClick("left",150,100,1,1) ;code inside loop sleep(1000) ;code inside loop $counter=$counter+1 ;increments counter by 1. This makes this a non-infinite loop WEnd ; the end of loop
Chapter Five- Hot Keys Say you want a loop to run forever, but exit when you hit "Ctrl+Alt+x". You have to set a hotkey, that when pressed, will trigger a Use-Defined Function. For example, this would be the whole program:HotKeySet("^!x","QuitLoop") ; when the program is running, hitting "ctrl+alt+x" will call the function called "Quit"
$counter=0 ; declares a counter variable
Func QuitLoop() ;user defined func called 'QuitLoop' $counter=1 ; if func QuitLoop is called, $counter will become 1 EndFunc
While $counter=0 ; loop goes while $counter is 0 MouseClick("left",150,60,1,1) ; code inside loop sleep(1000) ; code inside loop WEnd ;end of loop In the above program, the loop will continue running until somebody hits "Ctrl+Alt+x', making $counter=1. If you want to make it so the whole program will automatically exit, use this hotkey: HotKeySet("^!x","QuitProg") ;sets hotkey Func QuitProg() ;user-defined-function Exit ; quits out of the script EndFunc
Please- if you have any comments- things to be added or removed. POST HERE! Hope you enjoyed.
this have to be one best guids ever written and brought up alot of newer gpzp members should read it :D great posted
*clicked thanks as well thik u earned it 1005 with this posy*