1 | static void quickClick(Rect r, int preClickDelay) { |
2 | moveMouseQuickly(r); |
3 | sleep(preClickDelay); |
4 | if (mouseLocationTooFarFrom(centerOfRect(r))) |
5 | fail("Aborting automation because of user mouse movement"); |
6 | mouseClick(r); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005802 |
Snippet name: | quickClick - move mouse quickly, wait for a short time, then click |
Eternal ID of this version: | #1005802/1 |
Text MD5: | b755adc7634025a555c1c158f9027843 |
Author: | stefan |
Category: | javax / automation |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-09 03:12:13 |
Source code size: | 235 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 516 / 527 |
Referenced in: | [show references] |