Results 1 to 6 of 6

Thread: Dumb question

  1. #1
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default Dumb question

    How do I send 'enter' while using sendkeys in simba? I could Google it to find the number I guess.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  2. #2
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    You could use "TypeByte(VK_ENTER);".

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  3. #3
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    You could use "TypeByte(VK_ENTER);".
    VK_ENTER doesn't exist, keycode 13 is declared as "VK_RETURN" (would be good to have it as VK_ENTER aswell, though!)

    Couple other ways would be...

    1. Using PressKey:

    Code:
    begin
      PressKey(VK_RETURN);
    end.
    2. KeyDown() + KeyUp() combination, with which you can use your own custom wait between the down and up parts:

    Code:
    begin
      KeyDown(VK_RETURN);
      Wait(35 + Random(40)); // Replace with your own custom wait times..
      KeyUp(VK_RETURN);
    end.

  4. #4
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by Janilabo View Post
    VK_ENTER doesn't exist, keycode 13 is declared as "VK_RETURN" (would be good to have it as VK_ENTER aswell, though!)

    Couple other ways would be...

    1. Using PressKey:

    Code:
    begin
      PressKey(VK_RETURN);
    end.
    2. KeyDown() + KeyUp() combination, with which you can use your own custom wait between the down and up parts:

    Code:
    begin
      KeyDown(VK_RETURN);
      Wait(35 + Random(40)); // Replace with your own custom wait times..
      KeyUp(VK_RETURN);
    end.
    TypeSendEx uses TypeByte(VK_ENTER)

    Creds to DannyRS for this wonderful sig!

  5. #5
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    Quote Originally Posted by Sjoe View Post
    TypeSendEx uses TypeByte(VK_ENTER)
    Ahhhh! Are those in SRL include (I don't use Simba with SRL include)?
    Because, Simba itself doesn't seem to have TypeSendEx(), TypeByte() or VK_ENTER... O_o

  6. #6
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    You could use "TypeByte(VK_ENTER);".

    Thanks for all the help guys! Flight's worked lol.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

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
  •