Results 1 to 4 of 4

Thread: Is it possible to press and send two or more keys at the same time?

  1. #1
    Join Date
    May 2008
    Location
    Canada
    Posts
    665
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default Is it possible to press and send two or more keys at the same time?

    Keydown/keyup doesn't seem to work in all cases.

    Sendkey has always worked great , but only one key at a time.

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

    Default

    works for me. types ')'
    Simba Code:
    program new;
    begin
      keyDown(16); //shift
      keyDown($30); //0
      keyUp($30);
      keyUp(16);
    end.
    is this what you meant?

  3. #3
    Join Date
    May 2008
    Location
    Canada
    Posts
    665
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by Citrus View Post
    works for me. types ')'
    Simba Code:
    program new;
    begin
      keyDown(16); //shift
      keyDown($30); //0
      keyUp($30);
      keyUp(16);
    end.
    is this what you meant?
    mm sort of! Say in a game you want to move in the NW direction. we typically press w+a together. I wanted to achieve that, but the client isn't reading any keystroke unless I use sendkeys.

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

    Default

    Quote Originally Posted by mrpickle View Post
    mm sort of! Say in a game you want to move in the NW direction. we typically press w+a together. I wanted to achieve that, but the client isn't reading any keystroke unless I use sendkeys.
    Hmm. I can't really say without testing it myself, but maybe activateClient() will help?

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
  •