Make learning to use Autoit Bot, only to learn ...^_^
Here I do not give a bot program, I just tell you how / the bot is made using Autoit.
If after this you create your own bot, and you be short of GM do not blame me.
Ok let's start ....
First section
QUOTE
Send ( "() Space")
Sleep (1000)
Send ( "(enter)")
Sleep (1000)
Send one of the important points in the AutoIT. Role is to send commands to the computer to press the button (the button many) that was.
In the above example we ordered the program to press the button "Spaces", and 1000mili delay during the second (1 seconds), followed by pressing the "Enter" and pause for 1 second again.
Please note:
Sleep always use millimeter Second, so if you want to give pause 2 seconds then you must change a 2000 ml sec.
Part Two
Once we learn how to send a command to press a key on the keyboard, so now we need to learn how to repeat the command.
Why should we learn of this?
No obligation, but please only if you want to type a command again, and remember, if you order too much it will be very long to load the command.
There are many ways to do this, but this is the easiest way:
QUOTE
While 1 = 1
(enter code / commands you here)
Wend
Explanation of code above:
If "While" = true then the code will be repeated until the variable results, other than "true".
Wend showed that the recurrence (anahammad) to stop here and go back to "While 1 = 1"
How is the iteration above all, we now learn iteration (loopin), which stops.
QUOTE
$ i = 1
While $ i <= 10 $ i = $ i 1 Wend "$" Is a sign to show that it is a variable. So now the "i" is a variable. Explanation of code: Variable "i" will be repeated until the East Coast with the same 10 times. "I i = 1" means that every time executed, the code variable "i" will be added 1. which will continue until the added variable "i" together with "10". Hmmm confused? Baca2 first I just ... yes. ... I wuih pegel we go again ... Ok 2 after learning the basic things was let's join the perintah2. QUOTE WinWaitActive ( "Element Client"); While 1 = 1 Send ( "NUMPAD1 ()") Sleep (500) Send ( "NUMPAD2 ()") Sleep (2000) Send ( "NUMPAD3 ()") WEnd Explanation: I give the example above for the game "Perfect World", remember the only example! Where the program will wait until the window "Element Client" active (open), followed by pressing "button 1", the gap during the second half-> followed by pressing "button 2" and given pause for 2 seconds and then press the "key 3" . And it is done repeatedly (never stopped).
Part Three
We have to learn how the light Giving command to the computer to press the button-key on the keyboard.
Then how with the Mouse?
Ok, now we will learn how we can do Bot Click (right does the left) in the Mouse where it is very important in the Games (usually going to run a command characters in the game).
QUOTE
$ moveX = random (1,1000,1)
$ moveY = random (1,500,1)
Where the original syntax is:
Random (min, max, flags)
Explanation:
Min is the figure / coordinates the lowest that we want
Max is the number / coordinates of the highest we want
Flag 1 work to maintain that the results of the integer is a number.
QUOTE
Mouseclick ( "left", $ moveX, MoveY, 1,1)
Syntax:
Mouseclick ( "button", x, y, click, speed)
Explanation:
Button = button you want to press (usually left or right)
X = X coordinate
Y = Y kooridnat
Click = number of clicks desired
Speed = speed given the mouse.
It is time the merge again ...!
QUOTE
$ moveX = random (1,1000,1)
$ moveY = random (1,500,1)
Mouseclick ( "left", $ moveX, $ MoveY, 1,1)
Explanation:
Where is the mouse click will be left at random coordinates "X" n and coordinate random "Y"
You should try it before you install the application AutoIt first ... Thank you.
No comments:
Post a Comment