static bool robotDragMouse(final Point a, int delay, final Point b) ctex { mouseMover().enable(); if (mouseMover().blocked()) false; mouseMover().moveMouse(Pt(a.x, a.y)); final int button = InputEvent.BUTTON1_DOWN_MASK; final new Robot robot; mouseMover().pressButton(); swingLater(delay, r { mouseMover().moveMouse(Pt(b.x, b.y)); mouseMover().releaseButton(); }); true; }
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: | 575 / 588 |
Version history: | 11 change(s) |
Referenced in: | [show references] |