<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">It works now on my installation,
probably the way you designed it. In my case the graphic window
does not open after starting the script by F5 or exec(...). And
sometimes, when there <i>is</i> a window accidently, after LMC
into it, it responds properly to up, left, right and even down.
Thanks<br>
------------------------------------------------------------<br>
<br>
Am 13.08.2014 14:45, schrieb mottelet [via Scilab / Xcos - Mailing
Lists Archives]:<br>
</div>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' cite="mid:53EB5DB3.1040002@utc.fr" type="cite">Hello,<br>
<br>
I presume you are not using scilab 5.5.0, change the function as
follows :<br>
<br>
function key=waitforkeypress()<br>
global _keypress<br>
set(gcf(),'event_handler','handler');<br>
set(gcf(),'event_handler_enable','on')<br>
_keypress=0;<br>
while ~_keypress<br>
sleep(1)<br>
end<br>
set(gcf(),'event_handler_enable','off')<br>
key=_keypress;<br>
endfunction<br>
</blockquote>
<br>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mailinglists.scilab.org/Scilab-users-Recognition-of-cursor-key-as-input-tp4031013p4031036.html">Re: Recognition of cursor key as input</a><br/>
Sent from the <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">Scilab users - Mailing Lists Archives mailing list archive</a> at Nabble.com.<br/>