Warning: session_start(): open(/var/lib/php/sessions/sess_d70qrgv158vjnb5gj2rt96mo85, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
module GrabScreenshot > DynImageSurface {
S computerID;
int width = 256;
visualize {
ret northAndCenterWithMargins(vstackWithSpacing(
centerAndEastWithMargin(
withLabel("Grab from:", dm_onlineComputerSelectorComboBox(dm_fieldLiveValue('computerID))),
jbutton("Grab", rThread grab)),
withLabel("Resize to width (pixels):", jLiveValueIntTextField(dm_fieldLiveValue('width)))),
super.visualize());
}
void grab enter {
if (possibleComputerID(computerID)) loading "Grabbing Screenshot..." {
setImage(dm_scaledDownScreenshotFromOtherMachine(computerID, width));
}
}
}