Platforms to show: All Mac Windows Linux Cross-Platform

Back to WinNotificationMBS class.

WinNotificationMBS.SendMessage(byref result as Integer, MessageID as Integer, Value1 as Integer = 0, Value2 as Integer = 0, TimeOut as Integer = 10) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Notifications MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Sends a message to all applications listening for it.
Example
dim w as new WinNotificationMBS
dim Result as Integer

// send a message and wait for result
if w.SendMessage(Result, 1234567, 123, 456) then
// okay
else
// failed
end if

Sends a message with given message ID.
You can pass two integer parameters.
Returns true if event was sent or false if it failed.
This doesn't tell you whether it was received by someone, but your own application receives it, too.
Timeout is in milliseconds and counts per receiving window.
Result returns the result code from the message.

See also:

WinNotificationMBS.SendMessage(name as string, Value1 as Integer = 0, Value2 as Integer = 0, TimeOut as Integer = 10) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Notifications MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Sends a message to all applications listening for it.
Example
dim w as new WinNotificationMBS

if w.SendMessage(Result, "Hello", 123, 456) then
// okay
else
// failed
end if

You can pass two integer parameters.
Returns true if event was sent or false if it failed.
This doesn't tell you whether it was received by someone, but your own application receives it, too.
Timeout is in milliseconds and counts per receiving window.

See also:

WinNotificationMBS.SendMessageToWindow(WindowHandle as Integer, byref result as Integer, MessageID as Integer, Value1 as Integer = 0, Value2 as Integer = 0, TimeOut as Integer = 10) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Notifications MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Sends a message to all applications listening for it.

Like SendMessage, but with a target window.
You can pass two integer parameters.
Returns true if event was sent or false if it failed.
This doesn't tell you whether it was received by someone, but your own application receives it, too.
Timeout is in milliseconds and counts per receiving window.

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...