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

9
LINES

< > BotCompany Repo | #1010755 // automate_type

JavaX fragment (include)

1  
static void automate_type(int keyCode) {
2  
  assertAutomationAllowed();
3  
  awtRobot().keyPress(keyCode);
4  
  awtRobot().keyRelease(keyCode);
5  
}
6  
7  
svoid automate_type(S s) {
8  
  automate_typeString(s);
9  
}

Author comment

Began life as a copy of #1010726

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1010755
Snippet name: automate_type
Eternal ID of this version: #1010755/3
Text MD5: 1fa0e360fc27addd5ac144f50bfb327b
Author: stefan
Category: javax / automation
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-27 01:41:05
Source code size: 201 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 450 / 478
Version history: 2 change(s)
Referenced in: [show references]