... the code should work under win7 if you have the *scicv*-module
installed via atoms.
Note that you have to "activate" scicv to use its functionshence the:
scicv_Init();
at the beginning of the code.
I wrote the code at win10, but I doubt that this has an influence.
Good luck,
Philipp
A
Hello Philipp,
Thank you for your program, it looks like it would do exactly what I
wanted. However (as I should have stressed before) I work under win7. In
this environment, the only image processing toolbox is IPCV in which
several functions are lacking, namely
scicv_Init(); matplot();
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,
Correction: the function name is misleading,
the xclick() function also takes keystroke into account.
Regards
> -Message d'origine-
> De : users [mailto:users-boun...@lists.scilab.org] De la part de Dang Ngoc
> Chan, Christophe
> Envoyé : vendredi 7 juin 2019 09:06
> À : Users mailing lis
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
--
Christo