[Scilab-users] How to print GUI window?

Samuel Gougeon sgougeon at free.fr
Tue Aug 6 16:47:29 CEST 2019


Le 06/08/2019 à 14:29, Samuel Gougeon a écrit :
> Le 06/08/2019 à 14:03, VTX1801 a écrit :
>> .../...
>> Can the gui2bitmap mode be set to capture the window that has focus?
>
> No it can't. It snapshots the window whose handle is provided, that is 
> not necessarily
> the one that has the java focus.
> AFAIK, there is no documented way to know which window has the java 
> focus.


This is true if one aims to run  gui2bitmap()  from the console.
Otherwise, there might be a solution to add a menu/item to the figure,
to run gui2bitmap for it (that then will have necessarily the focus),
even if it's not the active figure (in the plotting point of view).

I will make some tests.





More information about the users mailing list