Hello,
I got this code from here
https://forum.xojo.com/27115-screenshot
dim mshell as new Shell
mshell.Execute “screencapture -iW -o -c”
This is done interactively… the user has to click each time.
Can this be done non-interactively, (automatically, since the window would have already been selected)?
I have not seen that on the manpage.
Thanks.
Lennox
Thanks Michel, but I cannot find the combination for a non-interactive, window capture.
Any suggestions?
This is the closest but a mouse-click is required for every capture…
dim mshell as new Shell
mshell.Execute “screencapture -iW -o -c”
Thanks again.
Lennox
Thanks Tony,
That is the code I am trying to use but in Mac a physical a mouse-click is required for every capture
Is there a way to do a mouse-clic or Enter key programatically?
Thanks again.
Lennox
Sigh. Just use a shell with for instance
screencapture test.png
I do that in one of my apps to get the screen.