[Scilab-users] Recognition of cursor key as input

Stéphane Mottelet stephane.mottelet at utc.fr
Wed Aug 13 16:13:07 CEST 2014


Le 13/08/2014 15:53, Jens a écrit :
> 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
really strange... I think that you mean that the windows, if already 
open (or minimized, or docked), does not show up ?

> or exec(...). And sometimes, when there /is/ a window accidently,
There should not be any "accident"... Your Scilab installation 
/seems///to be broken, as I had never heard of such a chaotic behaviour./

/S./
/
> 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: Re: Recognition of cursor key as input 
> <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 
> <http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html> 
> at Nabble.com.
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140813/5a2e5202/attachment.htm>


More information about the users mailing list