Results 1 to 4 of 4

Thread: How Do I Make A Script Press The Enter Key?

  1. #1
    Join Date
    Apr 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How Do I Make A Script Press The Enter Key?

    Well first off, I would like to tell you that I am a noob. This is the first script I'v ever tried making. So be Gentle with teh remarks.

    Anyways, I'm working on the Login part of my script, and I want it to type in the username, hit enter to go to the password line, Then type in the password... Only problem is, I'm not exactly sure how to make it hit enter.. Its not an easy button to put in between Apostrophe's... If you can help me, I would very much appritiate it... Thanks.

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Put whatever you want to type and then " + Chr(13)" without the quotes.

  3. #3
    Join Date
    Apr 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sweet Thanks

  4. #4
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    yea...u could just use declare players

    SCAR Code:
    procedure DeclarePlayers;
    begin
      HowManyPlayers:= 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;


      Players[0].Name    := 'username';
      Players[0].Pass    := 'pass';
      Players[0].Nick    := 'nick';
      Players[0].Active  := True;
    end;
    then put LoginPlayer wherever u want it to Log him in
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to make scar press tab key?
    By yamaha317 in forum OSR Help
    Replies: 19
    Last Post: 02-02-2008, 12:54 AM
  2. how to make scar press ctrl+R
    By i like mauls in forum OSR Help
    Replies: 1
    Last Post: 02-01-2008, 04:24 PM
  3. Wait until you press enter?
    By Kik in forum OSR Help
    Replies: 4
    Last Post: 09-26-2007, 01:09 AM
  4. What command do i use to make scar press F6 or F5???
    By Ilikepie1995 in forum OSR Help
    Replies: 9
    Last Post: 07-05-2007, 09:25 PM

Posting Permissions

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