<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to auto-answer dialog using system.prompt_answers</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/778ff9a181/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/778ff9a181/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/778ff9a181/</id><updated>2024-01-26T06:40:10.103000Z</updated><subtitle>Recent posts to auto-answer dialog using system.prompt_answers</subtitle><entry><title>auto-answer dialog using system.prompt_answers</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/778ff9a181/?limit=25#4d21" rel="alternate"/><published>2024-01-26T06:40:10.103000Z</published><updated>2024-01-26T06:40:10.103000Z</updated><author><name>kevin123</name><uri>https://forge.codesys.com/u/kevin123/</uri></author><id>https://forge.codesys.com4d849736505c7e6d1c68728e35be566dfeb86c97</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to do "update device" in a project which was saved in a different version of CODESYS using ScriptEngine,&lt;br/&gt;
a dialog with 'Yes' and 'No' button popped up showing that&lt;br/&gt;
"Do you want to upgrade the storage format for this project?&lt;br/&gt;
-if you click 'Yes', storage format will be upgraded...&lt;br/&gt;
-if you click 'No', storage format will not be changed..."&lt;/p&gt;
&lt;p&gt;I have to click the 'Yes' button automatically by scriptEngine.&lt;br/&gt;
I know from others topics here in forum, that some dialogs can be auto-answered using system.prompt_answers. And I also get the messagekey of this dialog:&lt;br/&gt;
Key: "&amp;lt;&amp;lt; No Key&amp;gt;&amp;gt;" Message: "Do you want to upgrade the storage format for this project? - If you click 'Yes',...&lt;/p&gt;
&lt;p&gt;i have tried using the system.prompt_answers command below, but the dialog was not auto-answered.&lt;/p&gt;
&lt;p&gt;system.prompt_answers&lt;span&gt;["&amp;lt;&amp;lt; No Key&amp;gt;&amp;gt;"]&lt;/span&gt; = PromptResult.Yes&lt;/p&gt;
&lt;p&gt;Does someone know how to auto-answer the dialog using system.prompt_answers command with messagekey"&amp;lt;&amp;lt; No key&amp;gt;&amp;gt;"? or any suggestions to solve this issue, Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>