Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Shows a messagebox to the logged on user

Syntax

(blue star) [string] $InputObject.ShowMessageBox(caption, text, buttons, default, iconStyle, timeOut aSync)

Considerations for Æ Ø Å

There are no specific considerations for the use of special characters (unlike Sys_BreakThruMsgBox)

Parameters

sCaption (String)

Title of the messagebox

...

Specifies if the messagebox displays asynchronously(True) or waits for the user to respond(False)

Return value

(blue star) Result will be returned from the function. Valid answers are: 'OK', 'YES', 'NO', 'ABORT', 'RETRY', 'CANCEL' and 'IGNORE'

Example:

(blue star) PowerShell

Code Block
languagepowershell
  $cs.Job_WriteLog("Messagebox:","Showing MessageBox")
  $messageBoxResponse = $InputObject.ShowMessageBox("MessageBox title", "This is a test messageBox from a PowerPack (æøå). Please click one of the three buttons below", "YESNOCANCEL", "TWO", "Info", 180, $false)
  $cs.Job_WriteLog("Install:","response: $messageBoxResponse")  

Scripting Guidelines

Related functions

Sys_BreakthruMsgbox https://capasystems.atlassian.net/wiki/spaces/CI66DOC/pages/19610863366