11-16-2008, 10:53 AM
This function is similar to mes but the caller does not wait until the box is closed. Also, format-string cannot be used directly, so you have to use str format function if you need formatted text.
Function MsgBoxAsync
-----------
To hide previous OSD, use osdid argument. It must be some unique string. Next time you call the function it will show the text in the same OSD window, if it still exists.
Function MsgBoxAsync
;\
function ~text [$caption] [$style] [flags] ;;flags: 1 sync
if(flags&1)
,mes text caption style
else
,mac "MsgBoxAsync" "" text caption style 1
-----------
To hide previous OSD, use osdid argument. It must be some unique string. Next time you call the function it will show the text in the same OSD window, if it still exists.