<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 02/08/2019 à 21:12, P M a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CACf7ODu6BT0raePPC3Ay0EdweQuRsmNgUgLXM856D8hgsEYi6A@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>...to start with: I guess you try the
gui2bitmap toolbox....<br>
</div>
<br>
</div>
To answer your questions:<br>
</div>
You need to download & install IrfanView on your
Laptop.<br>
</div>
<div>Make sure that the IrfanView install path in your
code is exactly as it is on your machine.<br>
</div>
<div>Besides of this: You may already have IrfanView
installed, but it may be on a different path...so
Scilab would no find the folder.<br>
</div>
<br>
</div>
<div>I do not know how Scilab would automatically
install IrfanView.<br>
</div>
<div><br>
</div>
Yes, everybody who use the code would have to have
IrfanView installed.<br>
</div>
Also the path variable would have to be the same, if you
do not want to change code for each of your clients.<br>
</div>
</div>
</div>
</div>
</blockquote>
<p>The following can be used to get the path to the Irfanview
executable,<br>
even if Irfanview is not associated to any image extension:</p>
<pre style="font-family:Monospaced;font-style:normal;font-size:12.0;"><span style="color:rgb(160,32,240);">try</span>
<span style="color:rgb(0,0,0);">subkey</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">SOFTWARE\IrfanView\shell\open\command</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">iview_path</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">winqueryreg</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">HKEY_LOCAL_MACHINE</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">,</span> <span style="color:rgb(0,0,0);">subkey</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(160,32,240);">catch</span>
<span style="color:rgb(0,0,0);">msg</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">_</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">%s: IrfanView software not found.\n</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(50,185,185);">error</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">msprintf</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">msg</span><span style="color:rgb(0,0,0);">,</span> <span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">This application</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(160,32,240);">end
</span></pre>
If "clients" means "Customers", then, Ted, you should have a look to
the Irfanview license before processing.<br>
<p>Regards<br>
Samuel</p>
<p><br>
</p>
</body>
</html>