Shell Commands/SendBeacon

From MorphOS Library

Revision as of 11:17, 10 March 2022 by JPV (talk | contribs) (Created page with "'''SendBeacon''' - Creates MagicBeacon notifications MESSAGE=CMD/A, FROM=NAME/K, NORESULT=QUICK/S, UTF8/S <nowiki> MESSAGE - Message or command to be sent to MagicBeacon FR...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< 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)