Re: [Scilab-users] cancelling a loop by key pressing

2019-06-07 Thread Stéphane Mottelet
To stop animation when window is closed, don't use event_handler with ibut=-1000. Here is a simpler solution: h = gcf(); while %t if is_handle_valid(h) xtitle(msprintf("k = %d",k)) else break end k=k+1; end S. Le 06/06/2019 à 21:29, P M a écrit : Dear all,

Re: [Scilab-users] cancelling a loop by key pressing

2019-06-07 Thread Dang Ngoc Chan, Christophe
Hello, > De : P M > Envoyé : jeudi 6 juin 2019 21:30 > > Question: > Is it possible to have a function within the loop to check if a specific key > is pressed? I don't know about a keystroke but you may use a mouse click. https://help.scilab.org/docs/6.0.2/en_US/xclick.html Regards --

[Scilab-users] cancelling a loop by key pressing

2019-06-06 Thread P M
Dear all, out of curiosity I made a small animation ... see code below. Note: The part of the sound section is from a example where I generate different tones within one sound file. Hence the intervalls To the topic: The animation runs in a while loop. It is possible to stop the loop, by