mIRC Home    About    Download    Register    News    Help

Print Thread
Introductory manual to mIRC scripting #267165 12/04/20 04:25 AM
Joined: Aug 2019
Posts: 16
afterdeck Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Aug 2019
Posts: 16
Apologies for an overly broad subject title...

There is a lot of information scattered across the web regarding the mIRC in general and scripting in particular.
Some of it is likely to be terribly outdated. Is there a good "mIRC 101", apart from its manual, focused on scripting specifically?

I am using various interpreted languages daily (mostly Python though) and find mIRC approach a little confusing.

To elaborate on "confusing" part:
  • Does mIRC reload scripts "live"? If no, how can I make it to do so? Manual section on `/load` function does not mention this.
  • Am I supposed to put a new script under "..\AppData\Roaming\mIRC\scripts\" and it will be used automatically or there is another file where the script shall be included?
  • Is there a "main" script repository? GitHub anyone?..
  • What is the purpose of `users.ini`? Manual mentions it as "users file" and that is it.
  • etc, etc...

Re: Introductory manual to mIRC scripting [Re: afterdeck] #267166 12/04/20 05:16 AM
Joined: Jul 2014
Posts: 34
S
SykO Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Jul 2014
Posts: 34
Hello there,

I would recommend checking this out: https://en.wikichip.org/wiki/mirc/introduction
The wiki is the most up-to-date place, where many people contribute to adding documentation and examples.

Q: Does mIRC reload scripts "live"? If no, how can I make it to do so? Manual section on `/load` function does not mention this.
Yes, if you modify your scripts within the native script editor all those changes will be "live". There is also mSLDev (kind of out-dated, but great), which has syntax highlighting and more which also allows you to have the scripts "live". If you use an editor like VSCode, there is an extension under construction mSL VSCode Extension (GitHub Repo). This last option does not have a "live" option yet, but you can create your auto re-loader with a timer and checking timestamp changes. mIRC also detects changes and asks if you would like to reload said file. All files must be loaded manually, but you can code something to do so for you.

Q: Am I supposed to put a new script under "..\AppData\Roaming\mIRC\scripts\" and it will be used automatically or there is another file where the script shall be included?
You can put your scripts any where, but the default path is the one you mentioned. You can load your scripts using: /load -rs "path\to\script.mrc". As previously mentioned all scripts must be loaded manually.

Q: Is there a "main" script repository? GitHub anyone?..
No, there is no "main" script repository. There are few sites that host script repositories, such as https://mircscripts.net/ (currently down tho). We do have a GitHub mIRC group called mIRC Scripters (new members welcome). There are few GitHub repositories with various scripts out there which you can find with a search.

Q: What is the purpose of `users.ini`? Manual mentions it as "users file" and that is it.
The file stores access levels, which are used to limit/control access on certain events. You can read more about it on https://en.wikichip.org/wiki/mirc/access_levels

Last edited by SykO; 12/04/20 05:19 AM. Reason: added links
Re: Introductory manual to mIRC scripting [Re: SykO] #267167 12/04/20 05:23 AM
Joined: Aug 2019
Posts: 16
afterdeck Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Aug 2019
Posts: 16
Originally Posted by SykO
Hello there,

I would recommend checking this out: https://en.wikichip.org/wiki/mirc/introduction
The wiki is the most up-to-date place, where many people contribute to adding documentation and examples.

Q: Does mIRC reload scripts "live"? If no, how can I make it to do so? Manual section on `/load` function does not mention this.
Yes, if you modify your scripts within the native script editor all those changes will be "live". There is also mSLDev (kind of out-dated, but great), which has syntax highlighting and more which also allows you to have the scripts "live". If you use an editor like VSCode, there is an extension under construction mSL VSCode Extension (GitHub Repo). This last option does not have a "live" option yet, but you can create your auto re-loader with a timer and checking timestamp changes. mIRC also detects changes and asks if you would like to reload said file. All files must be loaded manually, but you can code something to do so for you.

Q: Am I supposed to put a new script under "..\AppData\Roaming\mIRC\scripts\" and it will be used automatically or there is another file where the script shall be included?
You can put your scripts any where, but the default path is the one you mentioned. You can load your scripts using: /load -rs "path\to\script.mrc". As previously mentioned all scripts must be loaded manually.

Q: Is there a "main" script repository? GitHub anyone?..
No, there is no "main" script repository. There are few sites that host script repositories, such as https://mircscripts.net/ (currently down tho). We do have a GitHub mIRC group called mIRC Scripters (new members welcome). There are few GitHub repositories with various scripts out there which you can find with a search.

Q: What is the purpose of `users.ini`? Manual mentions it as "users file" and that is it.
The file stores access levels, which are used to limit/control access on certain events. You can read more about it on https://en.wikichip.org/wiki/mirc/access_levels


Hey, thanks for taking your time to compile such an elaborate reply! I will check the link in more detail later tomorrow.
On the side-note, some seem to return less-than-relevant content, e.g. http://www.ircn.org/download.html

/me shall look closer at those repositories...

Re: Introductory manual to mIRC scripting [Re: afterdeck] #267170 12/04/20 10:56 AM
Joined: Feb 2015
Posts: 94
kap Offline
Babel fish
Offline
Babel fish
Joined: Feb 2015
Posts: 94
I mainly learn by reading other scripts, so these resources you may want to check out as well:

Pacman and Chess by Ouims
https://gitlab.com/Ouims

With the addition of 'mIRC Script' as a language on github this link is helpful:
https://github.com/search?l=mIRC+Script&q=mirc&type=Repositories

SReject's script don't show up in the above link:
https://github.com/sreject

Saturn's mirc pages
http://xise.nl/mirc/

reactorscript
https://www.reactorscript.com/

dscript by Dazuz
https://mega.nz/#!MwFyyKKT!yI_o7d2dYif0ItDllgZ_h-ym-y1gyMy1yYMmDjkOgCs

gamers.IRC
http://gamersirc.net/

edit:
roboirc's script archive:
http://www.mediafire.com/folder/dv3qkekas15lv/roboirc.mooo.com_mIRC_Scripts

Last edited by kap; 12/04/20 11:08 AM.

GNU Terry Pratchett