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

!7

module SendAllKeystrokes > DynPrintLog {
  S sendTo;
  bool enabled;

  start {
    dm_startKeyLogger();
    ownResource(vmBus_onMessage('keyDown, voidfunc(int keyCode, int modifiers) {
      if (!enabled || !possibleComputerID(sendTo)) ret;
      switch to q();
      print("Sending: " + s);
      dm_privateChat_evalOnOtherMachine(sendTo, "dm_setAIBarText(" + quote(s) + ");");
    }));
  }
  
  visualize {
    ret centerAndSouthWithMargins(super.visualize(),
      centerAndEast(withLabel("Send to:", dm_fieldTextField('sendTo)), dm_fieldCheckBox('enabled)));
  }
}

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: 244 / 259
Referenced in: [show references]