[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 https://qualityforum.zeiss.com/topic/27134-starting-a-script-from-a-batch-file/ 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 https://qualityforum.zeiss.com/topic/27134-starting-a-script-from-a-batch-file/#findComment-153686 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 https://qualityforum.zeiss.com/topic/27134-starting-a-script-from-a-batch-file/#findComment-153688 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()" 2 1 Link to comment https://qualityforum.zeiss.com/topic/27134-starting-a-script-from-a-batch-file/#findComment-153690 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