Shell Commands/SendBeacon

From MorphOS Library

< Shell Commands

SendBeacon - Creates MagicBeacon notifications

MESSAGE=CMD/A, FROM=NAME/K, NORESULT=QUICK/S, UTF8/S

MESSAGE  - Message or command to be sent to MagicBeacon
FROM     - Notification type with or without the sending application
           in the applicationname.notificationname format
NORESULT - The command returns immediately and doesn't wait for user interaction
UTF8     - MESSAGE will be treated as a UTF-8 string

More detailed documentation can be found in the SYS:MorphOS/Locale/Help/english/MagicBeacon.guide file.

Examples:

Ram Disk:> SendBeacon "test notification" NORESULT
Ram Disk:> SendBeacon "test error" FROM="Error" NORESULT
Ram Disk:> SendBeacon "test error" FROM="MyScript.Error" NORESULT

Return codes from the command:

0 - Command exited normally
5 - User confirmed the notification
6 - User cancelled the notification (by a bubble button)
7 - Notification wasn't shown (settings won't allow unknown notifications)