mIRC Homepage
Posted By: JingleBells Autoload - 28/03/05 01:11 AM
Is there a way to load a script through a command line method?

I have created an IRC addon. I am using an install creator to create the directories, etc. I was thinking of having the installation program run something like run mirc.exe and at the same time load the script (/load -rs whatever.mrc).

I was thinking such as in DOS when you do command line if you could do like:

mirc.exe /load -rs whatever.mrc
Posted By: MTec89 Re: Autoload - 28/03/05 03:11 AM
you can write to the INI file assumeing that mirc isnt running
Posted By: JingleBells Re: Autoload - 28/03/05 03:23 AM
The file, I noticed is the mirc.ini file, under the [rfiles] group. The trick will be to tell the installation program to write to an empty line of the [rfiles] group.
Posted By: StirCrazy Re: Autoload - 11/04/05 10:50 AM
well if its someone using your irc script you can add support to it but if is an addon you are planing to post on a public website you would prob have to have DDE control

but in the case its for a script for say updates etc you can do this
Code:
on 1:start: { $cmdline }

crude but it will do what your asking then but id recommend some if parsing if this is the case
Quote:

from mirc.hlp file
$cmdline
Returns the command line that was passed to mIRC when it was first run.
Posted By: Aenox Re: Autoload - 16/04/05 02:33 PM
You could always create the process then send key input to it.
© mIRC Discussion Forums