|
Das folgende Beispiel prüft alle Bookmarks, danach wird ein Report erstellt und im internen Browser geöffnet.
Optional können Sie anschließend den Report per E-Mail an zwei Empfänger schicken, das Script fragt vor dem Senden der E-Mail.
// Ask if the script should be executed
QuestionBox "Run the script ?" /ContinueOnYes /beep
// Check all bookmarks
CheckBookmarks /all
// Create a report and open it in the internal browser
CreateReport /template="{programdir}examples\report_template_changes.htm" (+)
/output="c:\report.htm" (+)
/bookmarks=changed
OpenWithInternalBrowser "c:\report.htm"
// Ask if an e-mail should be sent
// If the user does not abort the script, then send the e-mail
QuestionBox "Send the report by e-mail?" /ContinueOnYes /beep
SendMail /recipient="support@domain.com,info@domain2.com" (+)
/subject="WSW-Report" (+)
/body="Attached a WSW report" (+)
/attachfile="c:\report.htm"
MessageBox "Done." /beep
|
|