Skip to content
General IRCX

Close Channel Window

A TG007 community discussion started by general.

Discussion 14 posts
Page 1 of 1
Open
Topic #8909 · 14 published posts · 3,513 views

On admin:TEXT:!join*:#:/Join $chr(37) $+ $chr(35) $+ $2-
On admin:TEXT:!part*:#:/part $chr(37) $+ $chr(35) $+ $2-

 

these above are simple codes to join a room on server just by typing a command......

but the thing irritating me is...

 

on

!join

script joins room ....n obviously it will open new channel window...

and on

!part

though it left room....but it do not close channel window ...only nick left on command and channel windows is remain opened.....

 

so i want to do both task on !part... which are, script shuld left room and channel window shuld also be closed..

if it can be done via command...or i have to close channel window manually?

/close $2-

Although channel windows should automatically close, because /part curtails the notice to mIRC to close that window ..

Yes.....it shuld close channel window on part......

but it aint closing on both /part $s- and /close $2-

i think there is anyother technical fault lolzzzz........

anyhow its ok....not much important to have this commad......

There is an option in mIRC to "keep channel open". Check in (alt+O) mIRC Options > IRC. Make sure it is unchecked. If you still have issues, for channel windows I like to use /window -c $chan.

Option u tell is already unchecked ...but still it keeps channel windows open .........

it makes me more irritated when everything is ok ....y it does not close channel windowwwwwwww

 

eeeeeeeeeeeeeewwwwwwwwwwwwww :notworking:

try...

 

On admin:TEXT:!part*:#: {
  part $chr(37) $+ $chr(35) $+ $2-
  window -c $chr(37) $+ $chr(35) $+ $2-
}

Thanx gatekeeper for reply..

but i already have tried this one......

same result.........

but i notice onething ......window do not close when nick left..but it close after few minuts......lolzzzz

 

Out of curiosity, how many scripts do you have loaded?

how many scripts do you have loaded?

by loaded scripts if u mean number of files loaded in script ...

then these are 43 or 47 i guess.....

or if u mean different type of scripts ..then i have no other script......

the script im being used, was very light almost 1.9 mb of its size when i downloaded it...

but now after adding too many featurs..like dialog boxes...macroz..mp3 playes...vedio player...games ...now it has increased its size more than 6 mb........but i dont think this is becoz its heavier in size...everyother feature and file perfectly working ..........

Edited Sep 9, 2007 7:39 PM by general

Im gonna go out on a limb here and suggest that code in one of your 47 files is stopping the channel window from closing properly.

 

Like a halt on a part event or something.

also, you should remove any other occurances of the command. So that there is only one !part command for admin levels. If you have multiple part commands, that will definently stuff things up.

There's no reason why it should be staying open, but your code is a bit yuck. The way you've written it will trigger the script if somebody types !joins or !parts. I'd use something like this instead:

 

on admin:text:!join ?*:#: join % $+ #$2
on admin:text:!part ?*:#: part % $+ #$2

Edited Sep 10, 2007 9:49 AM by hixxy

hummmm

i checked all files throughly ..i have no such codes but only this one ....

on ^*:PART:#: {
  if ($nick == $me ) halt {
  msg $active $read(text\partmsgg.txt) }
}

but i dont think so ...this can be the reason to halt window after leaving the room...

wat do u say?

It v ery well could be, did you disable it and see? Let me address a few things I see with this code here.

 

on ^*:PART:#: {
  if ($nick == $me ) halt {
  msg $active $read(text\partmsgg.txt) }
}

 

First of all, the ^ prefix means this event will trigger before any other part event in your mirc.

 

Second, your syntax is wrong. I tend to look at code like sentences.

 

if (this happens) || (this matches) { do this }

elseif (this matches) { do this }

 

 

you say:

 

if ($nick == $me) { halt } { msg $active $read(text.txt) }

 

I think what you want is:

 

{

if ($nick == $me) halt

msg $active $read(file.txt)

}

 

Now, msg only works in a channel. You are assuming $active is a channel? Maybe $chan(1)? Or is echo good enough for you?

But really, I would write it like this.

 

on ^!*:part:#:/echo $active $read(file.txt)


-or-

on ^!*:part:#:{
if ($chan(1)) msg $ifmatch $read(file.txt)
}

 

Check out the mirc help file for "Prefixes" it will tell you that ! is the same as if ($nick == $me) halt

Edited Sep 11, 2007 7:04 PM by Travis