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

11
LINES

< > BotCompany Repo | #1005549 // moveMouse - moves mouse to a point on screen, slowly (so user can watch)

JavaX fragment (include)

1  
static void moveMouse(int newx, int newy) ctex {
2  
  mouseMover().moveMouse(pt(newx, newy));
3  
}
4  
5  
static void moveMouse(Pt p) {
6  
  if (p != null) moveMouse(p.x, p.y);
7  
}
8  
9  
static void moveMouse(Rect r) {
10  
  moveMouse(centerOfRect(r));
11  
}

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: #1005549
Snippet name: moveMouse - moves mouse to a point on screen, slowly (so user can watch)
Eternal ID of this version: #1005549/5
Text MD5: 03a53acb3db0c31e0ec114981948a853
Author: stefan
Category: javax / automation
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-15 12:37:53
Source code size: 238 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 553 / 572
Version history: 4 change(s)
Referenced in: [show references]