[Scilab-users] Recognition of cursor key as input
Jens
j.s.strom at hslmg.de
Wed Aug 13 15:53:27 CEST 2014
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140813/d699cf02/attachment.htm>
More information about the users
mailing list