Forum Discussion

windend's avatar
windend
Occasional Contributor
13 years ago

How to get the log picture in script

we are planning to print screenshot when error is captured, and get the hyperlink to this screenshot. So how can we configure to make the screenshot saved to our specified folder?



do you have some method in Log to get the value from Log.link/Log.picture and so on?

2 Replies

  • VLapidus's avatar
    VLapidus
    Frequent Contributor
    Place saving a screenshot to the event handler:



    Sub GeneralEvents_OnLogError(Sender, LogParams)

      Sys.Desktop.Picture.SaveToFile("C:\File.jpg")

    End Sub