<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Ted,<br><br></div>if one is able to execute following commands from Scilab:<br>- GetActiveWindow<br>- GetFocus<br><br></div><div>What is the result?<br></div><div>- a window handle to the active window<br></div><div>- a handle to the window that has the keyboard focus<br><br></div><div>I am no hardcore programmer, but to my understanding still there was no screenshot taken.<br><br></div><div></div><div>So what still would be necessary:<br>Call win10 snipping tool from scilab in such a way that it performs the screenshot on the window that has the focus.<br><br></div><div>BR<br></div><div>Philipp<br></div><div><br></div><div><br><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 13. Aug. 2019 um 21:09 Uhr schrieb VTX1801 <<a href="mailto:sl1800@rochester.rr.com">sl1800@rochester.rr.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Samuel,<br>
Observations:<br>
The Windows 10 Snipping Tool has a window mode that accurately captures the<br>
selected window.<br>
<br>
Additionally, if you hold down the Alt key when you press the Print Screen<br>
key the window <br>
that has focus is captured.<br>
Therefore, there must be a Windows command to capture the window that has<br>
focus.<br>
This command might be available to execute from the gui2bitmap code.<br>
<br>
<br>
Found this information regarding the window command:<br>
<br>
WIN32 API<br>
GetActiveWindow will return the top-level window that is associated<br>
with the input focus. GetFocus will return the handle of the window<br>
that has the input focus.<br>
<br>
This article might help:<br>
<a href="http://www.microsoft.com/msj/0397/Win32/Win320397.aspx" rel="noreferrer" target="_blank">http://www.microsoft.com/msj/0397/Win32/Win320397.aspx</a><br>
<br>
Hope this helps.<br>
Best regards,<br>
Ted<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html" rel="noreferrer" target="_blank">http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html</a><br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>