mIRC Home    About    Download    Register    News    Help

Print Thread
loading a script from outside mirc #44689 29/08/03 12:21 AM
Joined: Aug 2003
Posts: 6
W
WhiteDog Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Aug 2003
Posts: 6
Is there a way to make mirc load a script from outside mirc?

COM, DDE, Command-Line...

I would like to make an installer fr a little script to make it easier for mIRC-beginners...

Re: loading a script from outside mirc #44690 29/08/03 12:23 AM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
If mIRC is currently running, it could be done through DDE. /help dde

Re: loading a script from outside mirc #44691 29/08/03 12:30 AM
Joined: Aug 2003
Posts: 6
W
WhiteDog Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Aug 2003
Posts: 6
that would indeed work smile But i just checked the installer i normally use and that doesn't support DDE. Only execue file (command line) and DLL Call. Would a DLL Call be possible in any way?...

Otherwise i'll have to build me a lil installer in VB to execute the DDE smile

Re: loading a script from outside mirc #44692 29/08/03 12:35 AM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well, if you write a DLL that handled DDE communications, then yes you could do that. Otherwise try searching google for a commandline .exe program that lets you send dde commands.

Re: loading a script from outside mirc #44693 29/08/03 04:33 PM
Joined: Dec 2002
Posts: 127
F
feud Offline
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 127
i don't know of any dll's that allow you to send dde commands (although i'm sure they're out there), but a while ago, someone posted something about using perl and dde together. i wrote a very small perl script that now can send dde messages to mirc. if you want the code, i can post it here when i'm on my home machine.


------
deep down, i'm really superficial.
Re: loading a script from outside mirc #44694 29/08/03 08:00 PM
Joined: Feb 2003
Posts: 2,803
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,803
And what software allows you to interprit perl?


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: loading a script from outside mirc #44695 29/08/03 11:07 PM
Joined: Dec 2002
Posts: 127
F
feud Offline
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 127


------
deep down, i'm really superficial.
Re: loading a script from outside mirc #44696 30/08/03 12:42 AM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
And he is going to bundle Active Perl, a HUGE program, along with his installer? That's not a good idea at all.

Re: loading a script from outside mirc #44697 30/08/03 04:37 AM
Joined: Mar 2003
Posts: 27
Q
Quietust Offline
Ameglian cow
Offline
Ameglian cow
Q
Joined: Mar 2003
Posts: 27
If mIRC is running and you can somehow get its HWND (window handle), you could use SendMessage.


* Quietust, QMT Productions
P.S. If you don't get this note, let me know and I'll write you another
Re: loading a script from outside mirc #44698 30/08/03 11:38 PM
Joined: Dec 2002
Posts: 127
F
feud Offline
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 127
doh. i didn't read the first post. ignore my last


------
deep down, i'm really superficial.
Re: loading a script from outside mirc #44699 03/09/03 04:11 AM
Joined: Feb 2003
Posts: 309
C
CloCkWeRX Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Feb 2003
Posts: 309
oooh oooh oohh your talking about something i made albiet indirectly.

DDEcommander comes with IDEmIRC -> mircscripts.org -> I use it to reload files via DDE