Results 1 to 5 of 5

Thread: Keydown/Presskey ENTER

  1. #1
    Join Date
    Nov 2014
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default Keydown/Presskey ENTER

    I have an embarrassingly simple problem;

    I am able to type text using sendkeys(), but I am not able to press the enter key with any function like PressKey(13), or keyDown, keyUp with the ENTER (13) key.

    I have no idea how to debug this!

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Quote Originally Posted by edzilla View Post
    I have an embarrassingly simple problem;

    I am able to type text using sendkeys(), but I am not able to press the enter key with any function like PressKey(13), or keyDown, keyUp with the ENTER (13) key.

    I have no idea how to debug this!
    I think the key is 10 if you're using SMART

  3. #3
    Join Date
    Jan 2016
    Posts
    26
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    sendkeys
    Copied from docs.
    KeyDown sends a request to the Operating System to “fake” an event that causes the key to be “up”.

    The following example holds down the “Enter” key and release after pausing to simulate a human action.
    program KeyDownRelative;

    begin
    KeyDown(13);
    wait(RandomRange(50, 100));
    KeyUp(13);
    end.

    also be aware of your code form. keyUp(), Keyup() and keyup() may not be the same thing in simba as KeyUp()
    Last edited by Ozzhates; 04-18-2018 at 08:04 PM.

  4. #4
    Join Date
    Nov 2014
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Ok thanks I'll give it a go and report back

  5. #5
    Join Date
    Nov 2014
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Ozzhates View Post
    sendkeys
    Copied from docs.
    KeyDown sends a request to the Operating System to “fake” an event that causes the key to be “up”.

    The following example holds down the “Enter” key and release after pausing to simulate a human action.
    program KeyDownRelative;

    begin
    KeyDown(13);
    wait(RandomRange(50, 100));
    KeyUp(13);
    end.

    also be aware of your code form. keyUp(), Keyup() and keyup() may not be the same thing in simba as KeyUp()
    Yeah that's exactly what ive been trying with no luck!

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
  •