mIRC Homepage
Posted By: pobk Scripting Addition - 08/06/03 05:35 PM
WOuld be good if we could use Python (www.python.org)
Posted By: Poppy Re: Scripting Addition - 08/06/03 05:55 PM
For?
Posted By: CloCkWeRX Re: Scripting Addition - 09/06/03 03:43 AM
*ahem* I think I might jump up and down on this to quickly smoosh this idea before the rest of them get their claws in.

mIRC script is an organically grown scripting language, which isn't suddenly going to convert to python nor any other language. Niether is it very likely that its going to suddenyl suppport a python to mirc script converter.

From the FAQ
Question: How large is the source code for mIRC?
Answer: The source code, as of v6.x, is spread across 220 files, is around 125,000 lines of code, and is 3.5Mb in size.

The massive effort in REWRITING the scripting interpreters is the biggest argument against this.

WITH all this being said - there probably are irc clients that support python as a scripting langauge.
If you can make a COM object with Python, thats also another method. If Python hooks into Windows Scripting Host (as many other languages do...) then you can create COM scriptlets/objects in python and work with them from mIRC.

Posted By: Demolish Re: Scripting Addition - 09/06/03 12:41 PM
I think this guy meant: Make mIRC support python scripting in addition to mIRC scripting... and that sounds good, too.
Posted By: codemastr Re: Scripting Addition - 09/06/03 03:13 PM
Why does it sound good? A bulkier, slower, more resource hogging mIRC "sounds good"?
Posted By: KingTomato Re: Scripting Addition - 09/06/03 07:05 PM
I myself aren't farmiliar with python, but if u can make dll's in C and Delphi, isn't it possible in python? Iono..
Posted By: codemastr Re: Scripting Addition - 09/06/03 09:55 PM
I'm not too familiar with Python myself, but I don't believe you can (just like you can't in Perl), Python is an interpretted language, not a parsed language. But to anyone who says "add language X for scripting" let me say that due to mIRC's support of dlls, this is already possible. Won't be super fast, but it's possible.

ON *:JOIN:*:{
.dll mirc_perl.dll DoJoin $chan $nick $address
}

For example something like that, then mirc_perl.dll receives that info, and triggers a function specified by the user to handle joins. It's already possible, it's just people would rather that Khaled spend days/months recoding it rather than instead spending days/months doing it themselves.
Posted By: KingTomato Re: Scripting Addition - 09/06/03 10:05 PM
Don't u kno, its always easy to pass the buck, shove off the responsibilty to someone else >:D
© mIRC Discussion Forums