mIRC Home    About    Download    Register    News    Help

Print Thread
The /background command #194640 08/02/08 06:56 PM
Joined: Oct 2007
Posts: 51
T
Trashlord_ Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Oct 2007
Posts: 51
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?

Re: The /background command [Re: Trashlord_] #194642 08/02/08 07:33 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: The /background command [Re: argv0] #194659 09/02/08 07:55 AM
Joined: Oct 2007
Posts: 51
T
Trashlord_ Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Oct 2007
Posts: 51
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.

Last edited by Trashlord_; 09/02/08 07:58 AM.
Re: The /background command [Re: Trashlord_] #194881 13/02/08 05:20 PM
Joined: May 2003
Posts: 41
D
Damsulegna Offline
Ameglian cow
Offline
Ameglian cow
D
Joined: May 2003
Posts: 41
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)



If At First You Don't Succeed, Ask Someone For Help......