Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WindowsUserNotification.SetScriptName
Sets the script name for script trigger.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WindowsUserNotification UserNotification | 7.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "WindowsUserNotification.SetScriptName"; Notification; ScriptName ) More
Parameters
Parameter | Description | Example |
---|---|---|
Notification | The reference number for the Windows User Notification. | $Notification |
ScriptName | The script name. | "MyScript" |
Result
Returns OK or error.
Description
Sets the script name for script trigger.The parameter to the script includes a list of values. First entry in the list is the notification reference number. Second entry is the reason to call which can be Activated, Dismissed or Failed. Third value is reason for demission or error code for failure.
When called for Dismissed, we pass an additional value for the reason: UserCanceled, ApplicationHidden or TimedOut.
When called for Failed, we pass the error code as additional parameter.
Examples
Set which script to trigger:
Set Variable [ $r; Value:MBS( "WindowsUserNotification.SetScriptName"; $ID; "NotificationTrigger") ]
Set Variable [ $r; Value:MBS( "WindowsUserNotification.SetFileName"; $ID; Get(FileName)) ]
See also
- WindowsUserNotification.GetScriptName
- WindowsUserNotification.NewNotification
- WindowsUserNotification.SetFileName
- WindowsUserNotification.SetGroup
- WindowsUserNotification.SetImagePath
- WindowsUserNotification.SetPriority
- WindowsUserNotification.SetRemoteId
- WindowsUserNotification.SetSuppressPopup
- WindowsUserNotification.SetText
- WindowsUserNotification.Setting
Example Databases
This function is free to use.
Created 2nd April 2017, last changed 20th May 2025
WindowsUserNotification.SetRemoteId - WindowsUserNotification.SetSuppressPopup
