Forum Discussion
baxatob
Community Hero
Hi,
Can you show the full code of the function from where you've got an error.
maximojo
8 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; }
- YuriPeshekhonov7 years agoSmartBear Alumni (Retired)
Hi 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.
Related Content
Recent Discussions
- 3 days agovladd1