1 | static bool robotDragMouse(final Point a, int delay, final Point b) ctex {
|
2 | mouseMover().enable(); |
3 | if (mouseMover().blocked()) false; |
4 | mouseMover().moveMouse(Pt(a.x, a.y)); |
5 | final int button = InputEvent.BUTTON1_DOWN_MASK; |
6 | final new Robot robot; |
7 | mouseMover().pressButton(); |
8 | swingLater(delay, r {
|
9 | mouseMover().moveMouse(Pt(b.x, b.y)); |
10 | mouseMover().releaseButton(); |
11 | }); |
12 | true; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005571 |
| Snippet name: | robotDragMouse - uses left button |
| Eternal ID of this version: | #1005571/12 |
| Text MD5: | c889dc6953b47ed570abcb2f82e032ae |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-15 13:25:08 |
| Source code size: | 410 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 797 / 825 |
| Version history: | 11 change(s) |
| Referenced in: | [show references] |