Running Python from Intuiface

player

#1

Hi,

I am trying to run some Python from Intuiface and run into a few problems:

  • I want to run the Python script when intuiface starts running, so I made an trigger on the first Scene being entered and use *launch application* to run the script. Problem is that when I move to an other scene and go back to the startscene, another instance of the Python script is being runned. I now solved it with a splashscreen, but is there a trigger on application load possible?
  • Is it possible to send variables (from a text input for example) to a Python script ?
  • When the Python script runs it opens a command line window over intuiface. Can you force intuiface to be on top or run the application minimized?

#2

I want to run the Python script when intuiface starts running, so I made an trigger on the first Scene being entered and use launch application to run the script. Problem is that when I move to an other scene and go back to the startscene, another instance of the Python script is being runned. I now solved it with a splashscreen, but is there a trigger on application load possible? - You need to create a trigger on the scene itself, What you would need to do for this is click on your scene in the Scene Structure the add a trigger such as timer has elapsed 0.1 seconds then it will run it automatically when you open the XP again.

Is it possible to send variables (from a text input for example) to a Python script ? - Not sure this can be done check with support staff.

When the Python script runs it opens a command line window over intuiface. Can you force intuiface to be on top or run the application minimized?- There is a program you would need to get its called “always on top” and press Ctrl+Space then that issue is resolved. or use Autohotkey and make the script run at startup to force the program to stay on top.

Hope this helps

Louie


#3

Hello
You have to choose invisible mode on python :wink:
try pythonw.exe to execute your script.