svoid robot_keyPressAndReleaseWithModifiers(int keyCode, int mod) { new L<Int> modifiers; if (hasBit(mod, InputEvent.SHIFT_MASK)) modifiers.add(KeyEvent.VK_SHIFT); if (hasBit(mod, InputEvent.CTRL_MASK)) modifiers.add(KeyEvent.VK_CONTROL); if (hasBit(mod, InputEvent.ALT_MASK)) modifiers.add(KeyEvent.VK_ALT); if (hasBit(mod, InputEvent.ALT_GRAPH_MASK)) modifiers.add(KeyEvent.VK_ALT_GRAPH); for (int modifier : modifiers) robot_keyPress(modifier); robot_keyPressAndRelease(keyCode); for (int modifier : modifiers) robot_keyRelease(modifier); }
Began life as a copy of #1019924
download show line numbers debug dex old transpilations
Travelled to 19 computer(s): ayivmpnvhhik, bhatertpkbcr, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, hpgrupgrauku, irmadwmeruwu, ishqpsrjomds, jcllbfdqhrgy, jozkyjcghlvl, mqqgnosmbjvj, ofpaelxlmzfo, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1019926 |
Snippet name: | robot_keyPressAndReleaseWithModifiers |
Eternal ID of this version: | #1019926/6 |
Text MD5: | 0c093516a942485807e0073e6651a64b |
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:59:14 |
Source code size: | 568 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 310 / 525 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |