How do you take a window screenshot? Running Xojo 2025 under MacOS
Tahoe. Actually, I want the entire display, not just a specific window.
Command-Shift-3 and search the file in the Documents folder (Cmmand-Shift-D or in a Finder’s Menu).
Please, the next time use Google:
Apple Tahoe: How do you take a screenshot ?
(this will gives you between others Apple Support.
THERE ARE MANY OTHER WAYS TO MAKE SCREEN SHOTS.
From a shell:
screencapture ~/Desktop/screenshot.png
Or if you want it on the clipboard:
screencapture -c
Or you can use plugins from MBS to do it all internally and get a picture object.
To take a picture of the whole screen:
- Press Command-Shift-3
To take a screenshot of a window:
- Press Command-Shift-4
- Press Spacebar
- Click on the window.
To take a picture of a window, without the fading surround:
- Press Command-Shift-4
- Press Spacebar
- Hold Command-Option and click on the window.
To take a picture of a sheet window:
- Press Command-Shift-4
- Press Space
- Hold Command key down
- Click the sheet window.
To take a picture of a menu.
- Click the menu to open it
- Do not put the mouse over the menu, unless you want one of the menus highligted.
- Press Command-Shift-4
- Press Spacebar
- Click on the window.
In each case the screenshot will appear on your desktop as a png file, after a short delay.
Light menus will come out with the wrong background colour.
You forget the “Place the copy in the Clipboard”.
Also Cmd-Shift-5 exists, but only on PowerBooks who have a display screen (instead of Fn Keys) above the keyboard top…
And, yes, my answer was incomplete (on purpose), and I gave a link to the complete answer, by Apple. (Apple inline documentation).
You didn’t answer the question. They asked for a window screenshot, you provided an entire screen.
Command-Shift-5 exists on all machines. It allows you to also take a video of the screen or a part of it.
I’m guessing the OP is asking how to do it programmatically, as answered by @Jared_Feder
Perhaps. I typically do it for documentation.