Uses 911K of libraries. Click here for Pure Java version (11432L/63K).
!7 cmodule GrabScreenshot > DynImageSurface { S computerID; int width = 256; visualize { ret northAndCenterWithMargins(vstackWithSpacing( centerAndEastWithMargin( withLabel("Grab from:", dm_onlineComputerSelectorComboBox(dm_fieldLiveValue('computerID))), jbutton("Grab", rThread grab)), jRightAlignedLine(jLabel("Resize to width (pixels):"), jMinWidth(100, jLiveValueIntTextField(dm_fieldLiveValue('width))))), super.visualize()); } void grab enter { if (possibleComputerID(computerID)) loading "Grabbing Screenshot..." { setImage( width == 0 ? dm_screenshotFromOtherMachine(computerID) : dm_scaledDownScreenshotFromOtherMachine(computerID, width)); } } }
download show line numbers debug dex old transpilations
Travelled to 11 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1019777 |
Snippet name: | Grab Screenshot From Other Machine |
Eternal ID of this version: | #1019777/9 |
Text MD5: | 891be8beaa17d204491ed2e5c2f234f8 |
Transpilation MD5: | fccc2f7011760f5c53c95a5061a9d877 |
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-06-11 15:12:10 |
Source code size: | 779 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 358 / 5410 |
Version history: | 8 change(s) |
Referenced in: | -