SendNotificationMessageToUser

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > Messages >

SendNotificationMessageToUser

Description

This command shows a popup window to a specific user with a message of multiple line

Syntax

call DBWShell("SendNotificationMessageToUser UserID from message Xsize Ysize delay [script1[script2[script3[script4]]]]"))

Parameters

userID

the user receiver of the message

from

the user sender of the message

message

the message to be displayed in the window. It's possible to insert the new line command throught the "\n" keyword.

Xsize

the width size of the popup message

Ysize

the height size of the popup message

delay

the number of seconds after which the dialog disappears. if "0" it won't disappear

script1...script4

Optional. Shows a button for each script (up to 4 buttons) in the lower side of the message.
if existing the script as LST\PopUpScripts\<ScriptName>, it's run at click time.

Remarks

This is an example of the dialog shown on the receiver monitor:

SendNotificationMessageToUser

If you click the HelloWorld button, the script LST\PopUpScripts\HelloWorld.vbs is fired

If you click the Script2 button, the script LST\PopUpScripts\Script2.vbs is fired
If you click the Script3 button, the script LST\PopUpScripts\Script3.vbs is fired

Example

Sub main()

 DBWInit(TRUE)
 DBWShell("SendNotificationMessageToUser ""luca-adm"" ""JoeDesigner"" ""This is a notification message"" 600 200 0 HelloWorld script2 script3")
End Sub