Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1015662 // pressAltChar

JavaX fragment (include)

static void pressAltChar(char c) ctex {
  int keyCode = charToKeyCode(c);
  new Robot robot;
  robot.keyPress(KeyEvent.VK_ALT);
  robot.keyPress(keyCode);
  robot.keyRelease(keyCode);
  robot.keyRelease(KeyEvent.VK_ALT);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015662
Snippet name: pressAltChar
Eternal ID of this version: #1015662/2
Text MD5: 11b0c6f7667476c35e55bb47726cdd28
Author: stefan
Category: javax / os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-21 09:40:08
Source code size: 229 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 283 / 319
Version history: 1 change(s)
Referenced in: [show references]