svoid robot_typeAltKeyCode(int code) { sleep(20); awtRobot().keyPress(KeyEvent.VK_ALT); sleep(20); for (char c : characters(str(code))) robot_keyPressAndRelease(KeyEvent.VK_NUMPAD1-1+parseDigit(c)); sleep(20); awtRobot().keyRelease(KeyEvent.VK_ALT); }
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: | 264 / 306 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |