Results 1 to 5 of 5

Thread: Wait until you press enter?

  1. #1
    Join Date
    Jul 2007
    Location
    America
    Posts
    421
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Wait until you press enter?

    So, I was making something that would do something when the user presses enter. Trouble is, I can't find how to wait until it presses enter. I know you can use + chr(13) in a sendkeys to make it hit enter, but when I try chr(13) alone it fails. Help would be appreciated greatly.

    Thanks.
    I dunno, those asians are pretty difficult to out-auto, legend has it they don't need sleep or food...~tim0suprem0
    Activity is on the decline - school's got me
    Check out my tutorial[s] on Color Finding!||Procedures and Functions!

  2. #2
    Join Date
    Jun 2007
    Location
    Minnesota
    Posts
    773
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    repeat
      wait(50)
      until(IsKeyDown(chr(13)));
    Like that?

  3. #3
    Join Date
    Jul 2007
    Location
    America
    Posts
    421
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh, I thought chr(13) was more of a command to hit the enter key... thanks. I didn't find it in the SCAR manual.
    I dunno, those asians are pretty difficult to out-auto, legend has it they don't need sleep or food...~tim0suprem0
    Activity is on the decline - school's got me
    Check out my tutorial[s] on Color Finding!||Procedures and Functions!

  4. #4
    Join Date
    Jun 2007
    Location
    Minnesota
    Posts
    773
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    NP. The wiki is your friend .

  5. #5
    Join Date
    Jul 2007
    Location
    America
    Posts
    421
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The wiki doesn't give an example of chr(13).
    I dunno, those asians are pretty difficult to out-auto, legend has it they don't need sleep or food...~tim0suprem0
    Activity is on the decline - school's got me
    Check out my tutorial[s] on Color Finding!||Procedures and Functions!

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 Do I Make A Script Press The Enter Key?
    By Vincent_WIebe in forum OSR Help
    Replies: 3
    Last Post: 05-22-2007, 10:41 PM
  3. Replies: 5
    Last Post: 04-30-2007, 08:57 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
  •