Results 1 to 3 of 3

Thread: AutoTyper

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

    Default AutoTyper

    I've made a simple autotyper on Simba, but I get an error:

    Code:
    [Error] (7:13): Invalid number of parameters at line 6
    Compiling failed.
    Here's the script I have so far:

    Simba Code:
    program AutoTpyer;

    procedure Wait;
    begin

      Wait(2000);

    end;

    procedure Typing;
    begin

      SendKeys('Your Text Here', 1);
      KeyDown(13);
      KeyUp(13);
      Wait(500);
    end;

    begin
        Wait
      repeat
        Typing
      until(false);
    end.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    You named a procedure wait.
    Wait is already a procedure built into Simba so you cant name your own procedures by that name. Also since that procedure is 1 line long, just remove it entirely and put the Wait(2000) in your mainloop.

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

    Default

    Quote Originally Posted by YoHoJo View Post
    You named a procedure wait.
    Wait is already a procedure built into Simba so you cant name your own procedures by that name. Also since that procedure is 1 line long, just remove it entirely and put the Wait(2000) in your mainloop.
    Oh I get it, thanks. But I need it to wait ~2 seconds before the script starts, so you can click where you want the message sent. It works anyway

Thread Information

Users Browsing this Thread

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

Posting Permissions

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