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

4
LINES

< > BotCompany Repo | #1017974 // simulateKeyPress

JavaX fragment (include)

1  
static void simulateKeyPress(int keyCode) {
2  
  awtRobot().keyPress(keyCode);
3  
  awtRobot().keyRelease(keyCode);
4  
}

Author comment

Began life as a copy of #1010755

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017974
Snippet name: simulateKeyPress
Eternal ID of this version: #1017974/1
Text MD5: c491129a27d795feb7a0965a489f3cef
Author: stefan
Category: javax / automation
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-23 20:59:46
Source code size: 114 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 321 / 365
Referenced in: [show references]