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

21
LINES

< > BotCompany Repo | #1019689 // Send All Keystrokes To Other Machine [dev.]

JavaX source code (Dynamic Module) - run with: Stefan's OS

1  
!7
2  
3  
module SendAllKeystrokes > DynPrintLog {
4  
  S sendTo;
5  
  bool enabled;
6  
7  
  start {
8  
    dm_startKeyLogger();
9  
    ownResource(vmBus_onMessage('keyDown, voidfunc(int keyCode, int modifiers) {
10  
      if (!enabled || !possibleComputerID(sendTo)) ret;
11  
      switch to q();
12  
      print("Sending: " + s);
13  
      dm_privateChat_evalOnOtherMachine(sendTo, "dm_setAIBarText(" + quote(s) + ");");
14  
    }));
15  
  }
16  
  
17  
  visualize {
18  
    ret centerAndSouthWithMargins(super.visualize(),
19  
      centerAndEast(withLabel("Send to:", dm_fieldTextField('sendTo)), dm_fieldCheckBox('enabled)));
20  
  }
21  
}

Author comment

Began life as a copy of #1019658

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019689
Snippet name: Send All Keystrokes To Other Machine [dev.]
Eternal ID of this version: #1019689/1
Text MD5: 4f5850761b64cd31903ea0124bd42c72
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-19 14:01:55
Source code size: 593 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 308 / 334
Referenced in: [show references]