Open superradish opened 1 year ago
currently it's beyond jmc, the app just relies on windows scripting engine, for some odd reason python (Active Python) does not work properly inside windows scripting host and no one cares.
I agree that Python is great for MUD automation, and it works with JMC via Active Script. Try to do the following:
pip install pywin32
, or if PATH
not properly set, something like C:\Python27\python.exe C:\Python27\Scripts\pip.exe install pywin32
.python Lib\site-packages\win32comext\axscript\client\pyscript.py
.(taken from here)
Workflow is very similar to JS, e.g.:
def OnIncoming():
global jmc
prefix = '#event '
if jmc.Event.startswith(prefix):
data = jmc.Event[len(prefix):]
jmc.ShowMe('System event captured: {}'.format(data))
jmc.Event = None
jmc.RegisterHandler('Incoming', 'OnIncoming()')
this should be put in. makes sense to me. bit over my head but i'll give it a try