mIRC Home    About    Download    Register    News    Help

Print Thread
#67028 08/01/04 01:17 AM
M
MuscleCar
MuscleCar
M
how could i make a script that when i start up mirc it start connecting to the irc ( auto ) how can i make it so it only connects once ( like if i start up another mirc )

#67029 08/01/04 11:30 AM
Joined: Dec 2002
Posts: 397
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
on *:start: {
if (%started == 1) { halt }
else { .server <your server> | set %started 1 }
}
on *:disconnect: { set %started 0 }

that what u looking for?

#67030 12/01/04 02:47 AM
F
fxmakers
fxmakers
F
You'll need a DDE connection to check if more mIRCs are running.

mIRC Options > Other > button DDE > Enable DDE server checked, and give it a name.
or command line: /ddeserver on mIRC
You just have to check if $dde(mIRC, connected) returns a value.

Hope this wll help smile


Link Copied to Clipboard