mIRC Home    About    Download    Register    News    Help

Print Thread
M
mito
mito
M
I would like an option to prevent multiple instances of mIRC opening when I click on the shortcut again. I'd prefer it would open the current mirc. With the multiserver support having many mIRC's open isn't even required, right?

Joined: Dec 2002
Posts: 1,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
I sometimes run 3 or 4 different copies of mIRC for different things. They all run from separate directories, running their own scripts (or none at all). You wouldn't necessarily want a bot to be running from your chatting mIRC or the scripts that it runs might trigger in inappropriate places.

Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Perhaps this scripted solution will help you:
Code:
on *:start:{
  .ddeserver off
  if $isdde($ddename) { exit }
  else { .ddeserver on }
}

M
mito
mito
M
Sure, you can do that, but I asked for an OPTION, so we could both be happy. grin

M
mito
mito
M
Nope....


-
* /else: not connected to server
-
[14:30] * Connecting

Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Works here. you've probably pasted it into a single line, or some scripted events above interrupts it...

Try putting it in a new script file, and make sure it's structured exactly as it looks here.

M
mito
mito
M
Ok, well, that shutsdown extra mircs, but what I really want is it to activate(pop up) the current running mirc. crazy

Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Passing a showmirc -x command to the other mIRC via DDE will do the trick
Code:
on *:start:{
  .ddeserver off 
  if $isdde($ddename) {
    [color:brown]dde $ddename command "" /showmirc -x[/color]
    exit
  } 
  else { .ddeserver on }
}

M
mito
mito
M
Ok, a bit better, but basicly that does the same as the previous code when mIRC is minimized to the system tray. I'd like it to popup so I can see it... confused

Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
It worked here (win98se). try showmirc -r instead.

M
mito
mito
M
Ok, works now. I just had the ddeserver off... crazy

Thank you very much grin

Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Welcome smile


Link Copied to Clipboard