I searched for an answer, but I know one of you can probably just answer this off the top of your heads. Can I use, say, Python and VBScript in one plugin? An example would be where a function like Accelerators aren't available with Python. How do I do this? Do I just make a second section for the second language in the same XML file?
More than one scripting language in one plugin?
Posted by Somegirl on Fri 15 Apr 2005 07:18 AM — 5 posts, 22,204 views.
Okay, accelerators work with Python. Umm, I guess my question is now, do all functions work with Python? I've been running into a lot that don't show the Python syntax in the help files.
Plugins can only be one language (of course you can have plugins in different languages on a per plugin basis, but that's not what youre asking, nor is what you were originally asking for needed, as you've found out).
Accellerators are a mushclient thing, and therefore language independant (except for syntax for that specific language).
Yes, all the mushclient functions will work with python, a lot of them dont have examples, simply because python is a recent addition. However you can get a feel (with the ones that do) as to how you would send things, the commands are still the same (the function will still accept N arguments of X, Y, and Z types).
Accellerators are a mushclient thing, and therefore language independant (except for syntax for that specific language).
Yes, all the mushclient functions will work with python, a lot of them dont have examples, simply because python is a recent addition. However you can get a feel (with the ones that do) as to how you would send things, the commands are still the same (the function will still accept N arguments of X, Y, and Z types).
Psh, but you're making me think about it! ::whine::
Nick needs to let me, Ked, or someone else work on those help files since he's so engrossed in Lua.
Nick needs to let me, Ked, or someone else work on those help files since he's so engrossed in Lua.
I simply didn't do Python examples for everything, but the functions are all implemented using COM (excepting Lua) so if there is a function that works in VBscript (or JScript) it will definitely also work in Python.
No, you cannot have more than one script language in a single plugin, however if you want to use multiple languages you could make different plugins and use CallPlugin to call modules in another plugin.
No, you cannot have more than one script language in a single plugin, however if you want to use multiple languages you could make different plugins and use CallPlugin to call modules in another plugin.