1 | static void pressAltChar(char c) ctex {
|
2 | int keyCode = charToKeyCode(c); |
3 | new Robot robot; |
4 | robot.keyPress(KeyEvent.VK_ALT); |
5 | robot.keyPress(keyCode); |
6 | robot.keyRelease(keyCode); |
7 | robot.keyRelease(KeyEvent.VK_ALT); |
8 | } |
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: | 568 / 616 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |