By default, the module saves a screenshot on every fail of a cmdlet:
# default: $true
The default format is jpeg and you can change the format as shown in the following example:
[UIAutomation.Preferences]::OnErrorScreenShotFormat = [System.Drawing.Imaging.ImageFormat]::Png;
# default: jpg
There is also the possibility to save screenshot on a successful run of a cmdlet. The format settings is independent from OnErrorScreenShot:
# default: $false
# default: jpg
By default, screenshots are stored in the user's temp folder. Here is the setting:
Sometimes, we need controls' images to be saved without the red square. The following option hides or shows the square dring the time the module takes a screenshot:
# default: $true

Last edited Feb 2, 2013 at 5:09 PM by xinliu, version 4


No comments yet.