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

21
LINES

< > BotCompany Repo | #1020118 - Send Module To Other Machine

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 824K of libraries. Click here for Pure Java version (12519L/67K).

!7

cmodule SendModuleToMachine {
  S moduleID, computerID;
  
  visualize {
    ret withRightMargin(makeForm2(
      "Module ID:", dm_fieldTextField('moduleID),
      "Send to:", dm_onlineComputerSelectorComboBox(dm_fieldLiveValue('computerID)),
      "", jbutton("Send!", rThread doIt)));
  }
  
  void doIt enter {
    if (nempty(moduleID) && nempty(computerID)) {
      if (dm_mod(moduleID) != null)
        dm_copyModuleToOtherMachine(moduleID, computerID);
      else if (startsWith(moduleID, "#"))
        dm_evalOnOtherMachine(computerID, "dm_addDynamicModuleDialog2(" + quote(moduleID) + ");");
    }
  }
}

download  show line numbers  debug dex   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, hpgrupgrauku, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1020118
Snippet name: Send Module To Other Machine
Eternal ID of this version: #1020118/5
Text MD5: 00240fc8478f949959cd19cd544978a7
Transpilation MD5: 8fadecb2c345de4fe5555ed94c3ba4f0
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: 2020-08-01 11:39:13
Source code size: 635 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 105 / 574
Version history: 4 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1020118 & http://1020118.tinybrain.de