Results 1 to 7 of 7

Thread: First Script! (AutoTyper With Hotkeys)

  1. #1
    Join Date
    Feb 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default First Script! (AutoTyper With Hotkeys)

    Hello.
    After reading Coh3n's guide for beginners, here is what I have come up with.

    EDIT: You type in your message, and desired hotkey.
    Run the script, and press the hotkey whenever you want the message to be printed.
    I like this better than using repeating intervals, because you have complete control over when the messaged is printed
    and choose your own interval.

    Code:
    program SaltyTyper; //All credit goes to Coh3n @ Villavu
    
    Const
    ////////////// USER SETTINGS /////////////////
    
     MESSAGE    = ('Your message here.');
    
     HOTKEY     = ('F4');   // Use a hotkey to print your message.
                            // Change this to any F key (1-9)
    
     // Want the bot to type the message, but not send it? Comment out line 60.
    
    ////////////// USER SETTINGS /////////////////
    
     var
      Key: Integer;
    
    procedure WhatKey;
     begin
      case (HotKey) of
    
       'F1':
      Key:= 112;
    
       'F2':
      Key := 113; //I do not recommend using F2. This is the default key for "stop" in Simba.')
    
       'F3':
      Key := 114;
    
       'F4':
      Key := 115;
    
       'F5':
      Key := 116;
    
       'F6':
      Key := 117;
    
       'F7':
      Key := 118;
    
       'F8':
      Key := 119;
    
       'F9':
       Key := 120;
    
     end;
     end;
    
    
    
    procedure AutoType;
     begin
      repeat
       WhatKey;
    
      If IsKeyDown(Key) = true then
         begin
          Sendkeys(Message, 50);
          PressKey(13);
         end;
     until(false);
    end;
    
    begin
     AutoType;
    end.
    Last edited by Saltyspoons; 04-18-2012 at 11:25 PM. Reason: Adding information

  2. #2
    Join Date
    Dec 2011
    Posts
    257
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Seems like a good script The only problem is, I don't know how to use it.

  3. #3
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Not bad for a first script (I remember mine being something similar, some sort of autotyper) have you considered setting a key for turning off the autotyper without opening simba and manually stopping the script? eg.
    Simba Code:
    until(IsKeyDown(113))

    ~Caotom

  4. #4
    Join Date
    Feb 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by sm321 View Post
    Seems like a good script The only problem is, I don't know how to use it.
    Replace "Your message here" with the desired message to be printed.
    Change the HOTKEY constant to any F key (F1, F2, etc.) or leave it the same.
    Run the script.
    Push the HOTKEY that is chosen, and it will print and return the message one time.
    Repeat pushing the HOTKEY as needed.

    Quote Originally Posted by Caotom View Post
    Not bad for a first script (I remember mine being something similar, some sort of autotyper) have you considered setting a key for turning off the autotyper without opening simba and manually stopping the script? eg.
    Simba Code:
    until(IsKeyDown(113))

    ~Caotom
    Good idea. Thanks for the input. I REALLY appreciate it.
    Last edited by Saltyspoons; 04-19-2012 at 06:52 PM. Reason: Adding quote

  5. #5
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Like it Might be able to implement this into another script? So if your botting.. u wanna look legit just hit f1-f12 which has custom sayings :P

  6. #6
    Join Date
    Feb 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    Like it Might be able to implement this into another script? So if your botting.. u wanna look legit just hit f1-f12 which has custom sayings :P
    Also a great idea! I will keep this saved on my computer not only because it is my first script (for sentimental value ;P), but to use it in future scripts.

  7. #7
    Join Date
    Jun 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    where we have to put message for auto typing

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •