Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1019903 - dm_moveMouseImmediate_direct_scaled - coordinates come from scaled-down screenshot

JavaX fragment (include)

static void dm_moveMouseImmediate_direct_scaled(double x, double y) {
  int w = screenWidth();
  moveMouseQuickly(scaleInt(x, w), scaleInt(y, w));
}

static void dm_moveMouseImmediate_direct_scaled(int x, int y, int scaledWidth) {
  double ratio = doubleRatio(screenWidth(), scaledWidth);
  moveMouseQuickly(scaleInt(x, ratio), scaleInt(y, ratio));
}

Author comment

Began life as a copy of #1019767

download  show line numbers  debug dex   

Travelled to 13 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, hpgrupgrauku, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, odhhsrjjbcgr, pyentgdyhuwx, pzhvpgtvlbxg, rjpzpeejafvs, snaazhdonpnp, tvejysmllsmz

No comments. add comment

Snippet ID: #1019903
Snippet name: dm_moveMouseImmediate_direct_scaled - coordinates come from scaled-down screenshot
Eternal ID of this version: #1019903/3
Text MD5: de9b16377f9bea67969618d857c3dc69
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 21:56:50
Source code size: 358 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 97 / 136
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1019903 & http://1019903.tinybrain.de