mIRC Home    About    Download    Register    News    Help

Print Thread
Scripting Addition #28677 08/06/03 05:35 PM
Joined: Jun 2003
Posts: 1
P
pobk Offline OP
Mostly harmless
OP Offline
Mostly harmless
P
Joined: Jun 2003
Posts: 1
WOuld be good if we could use Python (www.python.org)

Re: Scripting Addition #28678 08/06/03 05:55 PM
Joined: Dec 2002
Posts: 843
P
Poppy Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 843
For?


Never compare yourself to others - they're more screwed up than you think.
Re: Scripting Addition #28679 09/06/03 03:43 AM
Joined: Feb 2003
Posts: 309
C
CloCkWeRX Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Feb 2003
Posts: 309
*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.


Re: Scripting Addition #28680 09/06/03 12:41 PM
Joined: Jun 2003
Posts: 2
D
Demolish Offline
Bowl of petunias
Offline
Bowl of petunias
D
Joined: Jun 2003
Posts: 2
I think this guy meant: Make mIRC support python scripting in addition to mIRC scripting... and that sounds good, too.

Re: Scripting Addition #28681 09/06/03 03:13 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Why does it sound good? A bulkier, slower, more resource hogging mIRC "sounds good"?

Re: Scripting Addition #28682 09/06/03 07:05 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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..


-KingTomato
Re: Scripting Addition #28683 09/06/03 09:55 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
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.

Re: Scripting Addition #28684 09/06/03 10:05 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Don't u kno, its always easy to pass the buck, shove off the responsibilty to someone else >:D


-KingTomato