Accessing moi programmatically
All  1-6  7-11

Previous
Next
 From:  Michael Gibson
10176.7 In reply to 10176.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10176.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  immortalx
10176.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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10176.10 In reply to 10176.7 
Thanks Michael. I can move along from that...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  wayne hill (WAYNEHILL5202)
10176.11 
FYI: Watching this thread with interest.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-6  7-11