According to the help file, using /background with the -x switch, should remove the background from the specified window.
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?
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.
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.
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.
drawsave %win $+($chan,$network $+ .bmp)
background $chan $+($chan,$network $+ .bmp)
.remove $+($chan,$network $+ .bmp)