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 /is/ a window accidently,  after 
LMC into it, it responds properly to up, left, right and even down. Thanks
------------------------------------------------------------

Am 13.08.2014 14:45, schrieb mottelet [via Scilab / Xcos - Mailing Lists 
Archives]:
> Hello,
>
> I presume you are not using scilab 5.5.0, change the function as follows :
>
> function key=waitforkeypress()
>     global _keypress
>     set(gcf(),'event_handler','handler');
>     set(gcf(),'event_handler_enable','on')
>     _keypress=0;
>     while ~_keypress
>         sleep(1)
>     end
>     set(gcf(),'event_handler_enable','off')
>     key=_keypress;
> endfunction





--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-Recognition-of-cursor-key-as-input-tp4031013p4031036.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to