mIRC Homepage
Posted By: Trashlord_ The /background command - 08/02/08 06:56 PM
According to the help file, using /background with the -x switch, should remove the background from the specified window.

Code:
on *:JOIN:#:{
  if ($nick == $me) {
    background -x $chan
    var %win = $+(@,$chan)
    window -hp %win
    drawtext -o %win 11 Tahoma 30 3 5 $chan
    drawsave %win $+($chan,.bmp)
    background $chan $+($chan,.bmp)
    .remove $+($chan,.bmp)
  }
}


In this case, it doesn't, why?
Posted By: argv0 Re: The /background command - 08/02/08 07:33 PM
How do you know it doesn't? You're immediately overwriting the channels background with another one, so you shouldn't know if the first one was removed...

/background #channel some_image_file.jpg

/background -x #channel

works for me from the editbox.
Posted By: Trashlord_ Re: The /background command - 09/02/08 07:55 AM
I know it doesn't because I joined #Help.mIRC, and the background was created fine.

then, on another server, I joined #help.mIRC, and the uppercase H was behind the lowercase one, despite the /background -x command.

P.S - it does work from editbox, I tested it even before I posted here, but I can't figure out why it doesn't work from the event.

EDIT:

I am now using /background -n $chan <image>, and to remove, I'm also using the -n switch along with x, ie, -xn, seems to work fine now.
Posted By: Damsulegna Re: The /background command - 13/02/08 05:20 PM
Originally Posted By: Trashlord_
I know it doesn't because I joined #Help.mIRC, and the background was created fine.

then, on another server, I joined #help.mIRC, and the uppercase H was behind the lowercase one, despite the /background -x command.


Perhaps use this coding to enable network specific BMP.
Code:
    drawsave %win $+($chan,$network $+ .bmp)
    background $chan $+($chan,$network $+ .bmp)
    .remove $+($chan,$network $+ .bmp)

© mIRC Discussion Forums