• Log in or sign up for an account here: https://www.sythe.org/login

Writing a SCAR Autospammer

Redemption

Forum Addict

Banned
Joined
Jan 22, 2007
Sythe Gold
0
Messages
429
Location
Wewt Town USA
Code:
program Autospammer;
var text:string;

////Settings\\\\
begin
text:=('Hello World!')   //text you say
////End\\\\

wait(2000)
repeat
sendkeys(text)
sendkeysvb('{ENTER}',true)
wait(5000)
until(false)
end.

This is the code for a SCAR autospammer. If you are new to programming, this might be hard for you to learn, but you'll be able to get it with some practice.

Let's start with the beginning.

Code:
program Autospammer;

This tells SCAR you want to make a program named Autospammer. Easy enough...

Code:
var text:string;

This tells SCAR that you want to make a string variable named text. This means you want to store a string of letters, and name it text so you can access it multiple times without rewriting the code. If text were a number, the variable would be an int instead of a string. There are many types of variable, this is just an example of one.

Code:
begin
text:=('Hello World!')   //text you say

Begin obviously tells SCAR to start the program. Underneath begin, we see the variable text being used. This says text is equal to 'Hello World!'. This is what will be spammed using code later in the program. Note that this stores Hello World! into the variable "text".

Code:
wait(2000)
repeat

Wait 2000 miliseconds, then repeat. Very easy to understand.

Code:
sendkeys(text)

This tells SCAR to send the keys that the variable text has stored. You can also put single quotes in there, and use it the way you stored the string for text earlier.

Code:
sendkeysvb('{ENTER}',true)
wait(5000)

This tells SCAR to send the vb key Enter. True just means that it should send it. After that, it is to wait 5000 miliseconds.

Code:
until(false)

This tells SCAR to keep going until you stop it.

Code:
end.

This tells SCAR to end the entire program. You need a period on this end so that it will show SCAR where the end of the program is.
 
Runescape Gamblingrunescape gambling
Back
Top