Forum Discussion
yuchang
11 years agoContributor
I found the way to save the picture to another file.
screenShot = Utils.Picture;
Sys.Clipboard = Sys.Process("notepad").Window("Notepad", "* - Notepad").Picture();
screenShot = Sys.Clipboard
screenShot.SaveToFile("C:\\Logs\\TestingScreenshot.jpg");
Picture SaveToFile method:
http://support.smartbear.com/viewarticle/31697/
Clipboard property:
http://support.smartbear.com/viewarticle/29817/
screenShot = Utils.Picture;
Sys.Clipboard = Sys.Process("notepad").Window("Notepad", "* - Notepad").Picture();
screenShot = Sys.Clipboard
screenShot.SaveToFile("C:\\Logs\\TestingScreenshot.jpg");
Picture SaveToFile method:
http://support.smartbear.com/viewarticle/31697/
Clipboard property:
http://support.smartbear.com/viewarticle/29817/
Related Content
Recent Discussions
- 10 hours agotramuntana
- 2 days agoSlickRick