1 | svoid robot_typeAltKeyCode(int code) { |
2 | sleep(20); |
3 | awtRobot().keyPress(KeyEvent.VK_ALT); |
4 | sleep(20); |
5 | for (char c : characters(str(code))) |
6 | robot_keyPressAndRelease(KeyEvent.VK_NUMPAD1-1+parseDigit(c)); |
7 | sleep(20); |
8 | awtRobot().keyRelease(KeyEvent.VK_ALT); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019958 |
Snippet name: | robot_typeAltKeyCode (only works on Windows) |
Eternal ID of this version: | #1019958/3 |
Text MD5: | 394168618882e3be5df55ef41e8951a2 |
Author: | stefan |
Category: | javax / automation |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-25 13:50:46 |
Source code size: | 275 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 265 / 307 |
Version history: | 2 change(s) |
Referenced in: | [show references] |