<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Add Commands in the menu to call specific PY script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f57337c3c2/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f57337c3c2/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/f57337c3c2/</id><updated>2020-02-27T14:58:05.829000Z</updated><subtitle>Recent posts to Add Commands in the menu to call specific PY script</subtitle><entry><title>Add Commands in the menu to call specific PY script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f57337c3c2/?limit=25#3e23" rel="alternate"/><published>2020-02-27T14:58:05.829000Z</published><updated>2020-02-27T14:58:05.829000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com1bbc6eebec26e4402f7ca0fe1d63c1ea86e32b8d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi rsprich.&lt;/p&gt;
&lt;p&gt;CODESYS V3.5 SP9 was released last week.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add Commands in the menu to call specific PY script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f57337c3c2/?limit=25#60a9" rel="alternate"/><published>2020-02-27T14:58:05.251000Z</published><updated>2020-02-27T14:58:05.251000Z</updated><author><name>rsprich</name><uri>https://forge.codesys.com/u/rsprich/</uri></author><id>https://forge.codesys.comdf6b7fab90bbbad63b0199302af5e7f77630074f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your answer. So, waiting for the SP9...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add Commands in the menu to call specific PY script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f57337c3c2/?limit=25#a929" rel="alternate"/><published>2020-02-27T14:58:03.606000Z</published><updated>2020-02-27T14:58:03.606000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com51d079d1e7699e6f010e5a5b2c6f7210086e2d3a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi rsprich.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;rsprich hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
the command "Execute Script file..." open a dialog box for choosing the PY file.&lt;br/&gt;
Is there a way to give a parameter to select a specific script file ?&lt;br/&gt;
So, i will able to add commands in a dedicated menu (each calling a different script).&lt;br/&gt;
Regards.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The command has one parameter for the path of the python script but you can't use "Customize..." to create your own entries with it. BUT in the upcoming release of CODESYS V3.5 SP9 we added a new feature which might suites your needs: &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
The CODESYS base directory can contain a sub directory "ScriptDir" which will be searched for python scripts with the file extension ".py". The found python scripts can be executes through the new popup menu "Scripts" below the existing menu "Scripting".&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You can use it by adding the new commands "A" ... "Z" and "..." from the ScriptEngine Commands to a new popup menu or any other place you want.&lt;br/&gt;
BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add Commands in the menu to call specific PY script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f57337c3c2/?limit=25#c0b2" rel="alternate"/><published>2020-02-27T14:58:03.036000Z</published><updated>2020-02-27T14:58:03.036000Z</updated><author><name>rsprich</name><uri>https://forge.codesys.com/u/rsprich/</uri></author><id>https://forge.codesys.com828ec56b9c5afe4c9f032e6ffcbf7999e13ab89e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;the command "Execute Script file..." open a dialog box for choosing the PY file.&lt;/p&gt;
&lt;p&gt;Is there a way to give a parameter to select a specific script file ?&lt;/p&gt;
&lt;p&gt;So, i will able to add commands in a dedicated menu (each calling a different script).&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>