Dynamite
10-23-2009, 05:00 PM
OK, well this is (I think) my first scripting tutorial.
I don't know about other people but when I started scripting I found it hard to learn how to use the functions and where to find how to use them.
So I will be making this tutorial and I will describe as well as possible how to use them, when to use them, why they are good/bad.
This will be an increasing tutorial meaning you can ask for a function and I will post it ;)
Well here we go:
Wait
In Use: Wait(1000);
Explanation: Wait is the function. 1000 is the amount of MS you want to wait.
Used for: Failsafes, if you need to wait for something to show up.
What else can you do?: Wait(Random(200));
and
Wait(200 + Random(500));
TypeSend
In Use: TypeSend('Hello');
Explanation: TypeSend is the function. The ''s means it is a string. The 'Hello' is the text you want to type.
Used for: Typing text then pressing enter. EG. In runescape
TypeSendEx
In Use: TypeSendEx('Hello', False);
Explanation TypeSendEx is the function. The ''s means it is a string. The 'Hello' is the text you want to type.
False is to not press enter.
True is to press enter.
Used for: Typing text. if True then press enter, else don't.
WriteLn
In Use: Writeln('hello');
Explanation: Writeln is the function. The ''s means it is a string. The 'Hello' is the text you want to type.
Used for: Printing text to the debug box.
Mouse
In Use: Mouse(DTM.X, DTM.Y, 4, 4, false);
Explanation: Mouse is the function
The X and Y are the co-ordinates which have to be declared before
4, 4 is the randomness to x and y
False is right click
True is left click
Used for: Moving the mouse to the Co-Ordinates then clicking
MMouse
In Use: MMouse(DTM.X, DTM.Y, 4, 4);
Expanation:MMouse is the function
The X and Y are the co-ordinates which have to be declared before
4, 4 is the randomness to x and y
Used for: Moving the mouse to the Co-Ordinates
Will add more :)
T~M
I don't know about other people but when I started scripting I found it hard to learn how to use the functions and where to find how to use them.
So I will be making this tutorial and I will describe as well as possible how to use them, when to use them, why they are good/bad.
This will be an increasing tutorial meaning you can ask for a function and I will post it ;)
Well here we go:
Wait
In Use: Wait(1000);
Explanation: Wait is the function. 1000 is the amount of MS you want to wait.
Used for: Failsafes, if you need to wait for something to show up.
What else can you do?: Wait(Random(200));
and
Wait(200 + Random(500));
TypeSend
In Use: TypeSend('Hello');
Explanation: TypeSend is the function. The ''s means it is a string. The 'Hello' is the text you want to type.
Used for: Typing text then pressing enter. EG. In runescape
TypeSendEx
In Use: TypeSendEx('Hello', False);
Explanation TypeSendEx is the function. The ''s means it is a string. The 'Hello' is the text you want to type.
False is to not press enter.
True is to press enter.
Used for: Typing text. if True then press enter, else don't.
WriteLn
In Use: Writeln('hello');
Explanation: Writeln is the function. The ''s means it is a string. The 'Hello' is the text you want to type.
Used for: Printing text to the debug box.
Mouse
In Use: Mouse(DTM.X, DTM.Y, 4, 4, false);
Explanation: Mouse is the function
The X and Y are the co-ordinates which have to be declared before
4, 4 is the randomness to x and y
False is right click
True is left click
Used for: Moving the mouse to the Co-Ordinates then clicking
MMouse
In Use: MMouse(DTM.X, DTM.Y, 4, 4);
Expanation:MMouse is the function
The X and Y are the co-ordinates which have to be declared before
4, 4 is the randomness to x and y
Used for: Moving the mouse to the Co-Ordinates
Will add more :)
T~M