Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display Text in a Box
#5
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
Code:
Copy      Help
;\
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)