Writing a SCAR Autospammer

Discussion in 'Archives' started by Redemption, Mar 7, 2007.

Writing a SCAR Autospammer
  1. Unread #1 - Mar 7, 2007 at 7:29 PM
  2. Redemption
    Joined:
    Jan 22, 2007
    Posts:
    429
    Referrals:
    0
    Sythe Gold:
    0

    Redemption Forum Addict
    Banned

    Writing a SCAR Autospammer

    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.
     
< [TUT] Proxying with firefox! | Is selling stuff on RuneScape unsafe? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site