mIRC Home    About    Download    Register    News    Help

Print Thread
#39953 05/08/03 11:53 PM
Joined: Dec 2002
Posts: 68
P
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2002
Posts: 68
Let's say mIRC.exe is selected .. is there anyway (with a script, of course), I can make whatever.exe be the selected program, so it's opened instead of mirc.exe? I assume I need a .dll for this..

Thanks.

#39954 06/08/03 12:11 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I probably didn't understand correctly but did you mean something like.
/run explorer /select,C:\mIRC\file?
Just a thought. smile

#39955 06/08/03 12:17 AM
Joined: Dec 2002
Posts: 68
P
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2002
Posts: 68
Sorry, wasn't thinking right. I meant making a certain program the active window.

#39956 06/08/03 02:18 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Yes you'd need a dll, but even a dll couldn't really do what you said. What if I have more than 1 of something.exe running? I frequently have 5-6 iexplore.exe's running, how does it know which one to show? You'd have to go based on the window title text, but even then, what if I have two IEs viewing the same website? You'd have to go based on process id, but there is no way to get the process id without having the same problems above unless you are the one who created it, ie with the /run command and there is no way to get the id from the run command. So basically, there is no real way to do what you are asking.

#39957 06/08/03 05:57 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
/run calc

Code:

alias calc.restore {
  .comopen WShell WScript.Shell 
  !.echo -q $com(WShell, AppActivate, 3, bstr, Calculator)
  .comclose WShell
}

/calc.restore


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard