mIRC Home    About    Download    Register    News    Help

Topic Options
#264778 - 11/01/19 03:19 PM Need help with script
zixyx Offline
Self-satisified door

Registered: 11/01/19
Posts: 3
Hello, I have a script (not my) for automatic connection to server channels from text file... but they all of them are opening on maximized windows and I want to have them opening in minimized mode, The same options is in >tools>add favorites and there is option minimize on join but this option is only for specific channels, I searched in settings if there is some way to open channels only in minimized mode but couldn't find nothing frown


Edited by zixyx (11/01/19 03:20 PM)

Top
#264781 - 11/01/19 07:08 PM Re: Need help with script [Re: zixyx]
maroon Offline
Hoopy frood

Registered: 12/01/04
Posts: 1036
If your script uses the /join command or the /server command's -j switch, /join offers the -n switch and /server's -j can be replaced with -jn.

type: /help /join
or
/help /server

Top
#264782 - 11/01/19 07:15 PM Re: Need help with script [Re: zixyx]
Tiago Offline
Babel fish

Registered: 05/07/14
Posts: 97
Originally Posted By: zixyx
Hello, I have a script (not my) for automatic connection to server channels from text file... but they all of them are opening on maximized windows and I want to have them opening in minimized mode, The same options is in >tools>add favorites and there is option minimize on join but this option is only for specific channels, I searched in settings if there is some way to open channels only in minimized mode but couldn't find nothing frown

Code:
/join [-inxmd] <#channel>

This is a standard IRC command for joining a channel.
Quote:
The -i switch makes you join the channel to which you were last invited.

The -n and -x switches set the minimize/maximize state for new channel windows.

The -m and -d switches set the mdi/desktop state for new channel windows.

I hope I have been able to help wink
_________________________
TECO
PTnet (Portugal)

Top
#264783 - 11/01/19 08:23 PM Re: Need help with script [Re: Tiago]
zixyx Offline
Self-satisified door

Registered: 11/01/19
Posts: 3
The script doesnt have /join command, it starts with
ON *:CONNECT: {
IF ($server == serveraddress)
VAR %x = 1
WHILE ($read(autojoin.txt, t,%x) != $null) {
VAR %chan $chr(35) $+ $read(autojoin.txt, t, %x)
.TIMER -m 1 $calc(%x * 333) JOIN %chan
INC %x
}

Top
#264784 - 11/01/19 09:23 PM Re: Need help with script [Re: zixyx]
maroon Offline
Hoopy frood

Registered: 12/01/04
Posts: 1036
of course it has it. Your script is doing it 3 times per second. You can insert the -n between JOIN %chan

If your network has multiple servers, you might want to change ($server == serveraddress) and replace it with ($network == networkstring)

Top
#264785 - 11/01/19 11:05 PM Re: Need help with script [Re: maroon]
zixyx Offline
Self-satisified door

Registered: 11/01/19
Posts: 3
Thanks, it works smile

I think it is only one server, "serveraddress"-> is address for irc server...

Top