MoI discussion forum
MoI discussion forum

Full Version: Accessing moi programmatically

Show messages: All  1-6  7-11

From: Michael Gibson
19 Feb 2021   [#7] In reply to [#1]
Hi Burr, or another thing that could work would be to set up a shortcut key in MoI, say Alt+R and for the shortcut key give it a full path to a .js script file including the file extension, like: c:\scripts\myfile.js

Then from the other app you can write out that .js file and then send the MoI main window an Alt+R keyboard message to trigger it.

You could use something like AutoHotkey to trigger the keyboard message to MoI if your other program doesn't have a convenient way to trigger keystroke messages to a window.

- Michael
From: bemfarmer
19 Feb 2021   [#8]
I'm still rooting for python:-)
But know very little about any of this.

Python subprocess.call, and pass an argument to MoI ???:
https://www.digitalocean.com/community/tutorials/how-to-use-subprocess-to-run-external-programs-in-python-3

also this link is trying to open notepad...:
https://stackoverflow.com/questions/204017/how-do-i-execute-a-program-from-python-os-system-fails-due-to-spaces-in-path

- Brian
From: immortalx
19 Feb 2021   [#9]
I've never seen Dave's app before and so I searched a bit and realized that it indeed was a standalone app!
So, sorry everyone for the confusion. My assumption was based on what Max did with NodeEditor, which seems to work the way I described.
From: BurrMan
20 Feb 2021   [#10] In reply to [#7]
Thanks Michael. I can move along from that...
From: wayne hill (WAYNEHILL5202)
20 Feb 2021   [#11]
FYI: Watching this thread with interest.

Show messages: All  1-6  7-11