<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hm, I still didn't succeed.<br>
<br>
When I throw an error message in a lua script with:<br>
<i>error("Cancel",2)</i><br>
then this a user dialog always pops up in RGP Lua/Windows:<br>
<img src="cid:part1.ALR21jmK.tNJ1E0eN@angermueller.com" alt=""><br>
<br>
Is there a way to not show this dialog in RGP Lua?<br>
(Tested in Fin27.2/Windows 10/RGP Lua 0.65)<br>
<br>
This happens without<i> finenv.ExecuteLuaScriptItem</i> , it's just
the <i>error(...) </i>that leads to the popup.<i><br>
</i><br>
The same code in JW Lua doesn't give a dialog that pops up.<br>
<br>
Or does anyone have an example code of how to end a lua script so
that it passes a "not successful" to <i>finenv.ExecuteLuaScriptItem
</i>without showing any error messages.<br>
<br>
Jan<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Am 20.12.2022 um 01:27 schrieb Robert
Patterson:<br>
</div>
<blockquote type="cite"
cite="mid:CAACnces8A6stgn2-wwomYCxEVRjaMB_kLhyAfmTxy9istKE=4A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">As far as I can tell, ExecuteLuaScriptItem is
working as <a
href="https://www.finalelua.com/docs/rgp-lua/finenv-properties#executeluascriptitem-function"
moz-do-not-send="true">documented</a>. It is not the same
behavior as a command line tool. As for the 'error' function, it
will close the Lua state of the called script, but that would
appear to be what you want anyway. Otherwise you can return a
string that will be returned in the second return value of
ExecuteLuaScriptItem.<br>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Jan Angermüller
Orchideenstieg 13
22297 Hamburg
Tel. 040 - 28 94 84 82
Mobil 0173 - 99 33 904
<a class="moz-txt-link-abbreviated" href="http://www.elbsound.studio">www.elbsound.studio</a></pre>
</body>
</html>