Forum Discussion
maximojo
9 years agoFrequent Contributor
This is the code. Not much there but it is on a timer taking screenshots every 5 seconds.
var timeSaveFolder = "C:\\yourwebserverdirectory\\";
var pingMutex = false;
function TakePingScreenshot()
{
if(pingMutex) return;
pingMutex = true;
var pic = Sys.Desktop.Picture(); // ERROR occurred on this line where ".Picture" could not be found
var config = pic.CreatePictureConfiguration("PNG"); // ERROR occurred on this line where "CreatePictureConfiguration": "Call was rejected by callee."
config.CompressionLevel = 9;
timeSaveFolder = imageFolder + GetCurrentTimeDatePath();
if(!aqFileSystem.Exists(timeSaveFolder))
aqFileSystem.CreateFolder(timeSaveFolder)
var file = timeSaveFolder + "event_" + GetTimeDate_FileNameSafe() + "-" + randAlphanumeric(3) + ".png";
if(!pic.SaveToFile(file, config))
Runner.Halt("File failed to save!");
pingMutex = false;
}
YuriPeshekhonov
Alumni
9 years agoHi everyone,
I'm glad to announce that we created the patch which fixes this issue. Feel free to contact the Support Team and request patch 9848.