• Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 382 from 2003/2/24
    From: Berlin
    One can also use SendRexxCommand() to show a bubble with MagicBeacon
    Code:

    Function p_MOSToast(text$, t)
    Local str$
    str$ = "BUBBLE \""..text$.."\""
    If HaveItem(t, "x") Then str$ = str$.." X "..t.x
    If HaveItem(t, "Y") Then str$ = str$.." Y "..t.y
    If HaveItem(t, "Font") Then str$ = str$.." Font \""..t.font.."\""
    If HaveItem(t, "Skin") Then str$ = str$.." Skin \""..t.skin.."\""
    If HaveItem(t, "Image") Then str$ = str$.." Image "..t.image
    If HaveItem(t, "Color") Then str$ = str$.." Color "..t.color
    If HaveItem(t, "Mouse") Then str$ = str$.." MOUSE"
    If HaveItem(t, "Center") Then str$ = str$.." CENTER"
    If HaveItem(t, "Duration") Then str$ = str$.." Duration "..t.duration
    SendRexxCommand("MAGICBEACON", str$)
    EndFunction

    p_MOSToast("Hello", {mouse=true, font = "Lux/26", Skin="Woo0t", image="Connected"})


    But SendRexxCommand() seems to have a problem with quotes in the command!?
    Although I use a backslash quote to surround the text with quotes, it only works if you don't use spaces in your text!
  • »08.03.19 - 17:30
    Profile Visit Website