static void robot_mouseButtonPressOrRelease_scaled(bool down, int button, double x, double y) { int dummyWidth = 100000; robot_mouseButtonPressOrRelease_scaled(down, button, iround(x*dummyWidth), iround(y*dummyWidth), dummyWidth); } static void robot_mouseButtonPressOrRelease_scaled(bool down, int button, int x, int y, int scaledWidth) ctex { final new Robot robot; dm_moveMouseImmediate_direct_scaled(x, y, scaledWidth); if (down) robot.mousePress(button); else robot.mouseRelease(button); }
Began life as a copy of #1019908
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, hpgrupgrauku, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, odhhsrjjbcgr, pyentgdyhuwx, pzhvpgtvlbxg, rjpzpeejafvs, snaazhdonpnp, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019914 |
Snippet name: | robot_mouseButtonPressOrRelease_scaled |
Eternal ID of this version: | #1019914/3 |
Text MD5: | 8094b16f902efc6ced48434054b72f85 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-30 22:35:14 |
Source code size: | 527 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 274 / 326 |
Version history: | 2 change(s) |
Referenced in: | [show references] |