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,
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
--
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