Uses 911K of libraries. Click here for Pure Java version (11432L/63K).
1 | !7 |
2 | |
3 | cmodule GrabScreenshot > DynImageSurface { |
4 | S computerID; |
5 | int width = 256; |
6 | |
7 | visualize { |
8 | ret northAndCenterWithMargins(vstackWithSpacing( |
9 | centerAndEastWithMargin( |
10 | withLabel("Grab from:", dm_onlineComputerSelectorComboBox(dm_fieldLiveValue('computerID))), |
11 | jbutton("Grab", rThread grab)), |
12 | jRightAlignedLine(jLabel("Resize to width (pixels):"), jMinWidth(100, jLiveValueIntTextField(dm_fieldLiveValue('width))))), |
13 | super.visualize()); |
14 | } |
15 | |
16 | void grab enter { |
17 | if (possibleComputerID(computerID)) loading "Grabbing Screenshot..." { |
18 | setImage( |
19 | width == 0 |
20 | ? dm_screenshotFromOtherMachine(computerID) |
21 | : dm_scaledDownScreenshotFromOtherMachine(computerID, width)); |
22 | } |
23 | } |
24 | } |
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: | 357 / 5409 |
Version history: | 8 change(s) |
Referenced in: | [show references] |