|
Joined: Jan 2003
Posts: 46
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 46 |
Hello,
Please could someone help me so I can setup Mirc 6.03 to connect to multiple servers, then open different channels on different servers automatically, as soon as I open it. I have searched all through this fourm and read the FAQ (and got quite confused!)
I run MIRC 6.03 on Windows 2000 SP3, Celeron 1GHz, 512MB. Router connects me to my cable modem internet connection.
I need to know how to setup this up or script it. I need to:
Connect to efnet.demon.co.uk then open #a with a key #b & #c. Some channels I use open via invite. So I use "perform on connect" to /msg bot !invite (for example) and it invites me to the channel (this works fine). Then I want to connect to another server, obviously keeping Efnet connection open and then connect to irc.example.org and join #d.
I have tried using "perform on connect" to join the channels, but this opens #a #b #c on other servers aswell and not just efnet like I need it to. I have got it setup so that it connects to efnet on startup and then join various channels, but it I would like this scripted so it opens them in the same order etc.
I'm sure this possible, just not sure of how to script it and where to put the script.
Grateful of any help.
Thanks
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
on *:START:{ server -m efnet.demon.co.uk -j #a,#b,#c channelApassword server -m irc.example.org -j #d }
Putting that in your remotes should work.
As for your perform problem, if you click the "Add" button on the perform page you can select a network and add commands to be performed only on that network.
|
|
|
|
Joined: Jan 2003
Posts: 46
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 46 |
Ah great  I will try that. Just wondering what does the "-m" do/mean? Also if the key for channel #a is apples then would the command be?: server -m efnet.demon.co.uk -j #a,#b,#c channelAapples Shall I keep what is in my remotes or shall I just put it after/before whats already there?
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
The command would be: server efnet.demon.co.uk -j #a,#b,#c apples
-m means in a new server window, so you can remove the -m for the first command, but leave it in for the second (didn't notice I'd left it in).
I'd suggest going to file -> new in your remotes then putting it in (so it's in a new file).
|
|
|
|
Joined: Jan 2003
Posts: 46
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 46 |
I see. Although I would think that: server efnet.demon.co.uk -j #a,#b,#c apples would open #c with the key of apples? Surely it would be: server efnet.demon.co.uk -j #a apples,#b,#c? With the remote section, can I have various different file scripts and it runs them all at startup? Thanks alot for the help
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
Although I would think that:
server efnet.demon.co.uk -j #a,#b,#c apples would open #c with the key of apples? Surely it would be:
server efnet.demon.co.uk -j #a apples,#b,#c? I thought that at first, I tested it both ways but only the way I posted worked. With the remote section, can I have various different file scripts and it runs them all at startup? Yes.
|
|
|
|
Joined: Jan 2003
Posts: 46
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 46 |
Great.  So if #a and #b have key's then do I just put them after each other? Ok is it also possible to run an external script from remote? Such as a batch file?
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
The chans to join are followed by the keys, both in comma delimited fashion. Empty fields for no keys... If you wanted to join #a,#b,#c and both channels #a and #c have keys but not #b -j #a,#b,#c keyforA,,keyforC Now say chans #a and #b need keys -j #a,#b,#c keyforA,keyforB and only #c -j #a,#b,#c ,,keyforC
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
Ok is it also possible to run an external script from remote? Such as a batch file? /run c:\wherever\whatever.bat
|
|
|
|
Joined: Jan 2003
Posts: 46
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 46 |
I see. Great, thanks for the help Nimue & Collective. I've been setting up my startup.mrc, can I put things on different lines like the -j for different channels, otherwise some lines are going to get very long! The line for running the batch and other lines with commands that start with / can be on new lines I guess? Now I've got my startup.mrc, do I have to load it or something? Or will it start it automatically and run it when I open MIRC just like that?
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
If you have been editing it in remotes it will already be loaded.
Commands can be spread over more than 1 line by using $& (type /help $& to read up on it). If you don't use $& the next line will be interpreted as a new command.
|
|
|
|
Joined: Jan 2003
Posts: 46
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 46 |
Great. Thanks.
The script is all done now and is working fine, except for the running on the batch files, I have 2 in "perform on connect" (see below) and only the first one runs, is this a bug?
/run C:\Batch\Run.bat /run C:\Batch\Mirc.bat
Last edited by DJSi; 16/01/03 11:23 AM.
|
|
|
|
|