1 | svoid robot_keyPressAndReleaseWithModifiers(int keyCode, int mod) {
|
2 | new L<Int> modifiers; |
3 | if (hasBit(mod, InputEvent.SHIFT_MASK)) modifiers.add(KeyEvent.VK_SHIFT); |
4 | if (hasBit(mod, InputEvent.CTRL_MASK)) modifiers.add(KeyEvent.VK_CONTROL); |
5 | if (hasBit(mod, InputEvent.ALT_MASK)) modifiers.add(KeyEvent.VK_ALT); |
6 | if (hasBit(mod, InputEvent.ALT_GRAPH_MASK)) modifiers.add(KeyEvent.VK_ALT_GRAPH); |
7 | for (int modifier : modifiers) robot_keyPress(modifier); |
8 | robot_keyPressAndRelease(keyCode); |
9 | for (int modifier : modifiers) robot_keyRelease(modifier); |
10 | } |
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: | 531 / 765 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |