[Ma...] Posted July 30 Share Posted July 30 Good morning, I have to automatically start a script and I tried to use this import subprocess subprocess.call ('"C:\Program Files\Zeiss\INSPECT\2026\bin\ZEISS_INSPECT.exe" -eval "import Automatic_Control"') putting it on a bat file, but it doesn't work (it flash a winodow). Automatic control is a simple GUI with a simple "Ciao" write using tkinter. This script works launching it directly from Apps. Ideas? Thank you very much for your support! Link to comment Share on other sites More sharing options...
[Ma...] Posted July 30 Author Share Posted July 30 I found this https://zeiss.github.io/zeiss-inspect-app-api/2026/howtos/starting_options/starting_options.html and I changed the bat file with the correct way for 2026 Zeiss, using this import subprocess subprocess.call ("C:\Program Files\Zeiss\INSPECT\2026\bin\ZEISS_INSPECT.exe" -eval "gom.script.userscript.Automatic_Control()") but it doesn't wotk anymore. Link to comment Share on other sites More sharing options...
[Ma...] Posted July 30 Share Posted July 30 I am not sure if you can do that. But here is a help from web https://zeiss.github.io/zeiss-inspect-app-api/2026/howtos/starting_options/starting_options.html#starting-zeiss-inspect-python-scripts Link to comment Share on other sites More sharing options...
[Ma...] Posted July 30 Author Share Posted July 30 I found solution. The correct way is this: "C:\Program Files\Zeiss\INSPECT\2026\bin\ZEISS_INSPECT.exe" -eval "gom.script.userscript.Automatic_Control()" 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in