While Windows offers a lot of ways to capture a screenshot without using third party tools, it might be useful to capture a screenshot from the command line or with a special shortcut. In Windows 10, it is possible to create a special shortcut, which will use the built-in ability of the operating system to capture screenshots. In this article we will see how to create that shortcut and how to use it from your batch files.
As you might be knowing, you can capture a screenshot in Windows 10 by pressing Win + Print Screen keys simultaneously. Your screen will be dimmed for half a second, then it will return to normal brightness and the screenshot will be placed into the This PC\Pictures\Screenshots folder.
The Autohotkey script is as follows:
#NoTrayIcon Send #{PrintScreen}
It will press Win + Print Screen keys automatically, so a screenshot will be captured every time you run it!
To compile the executable file manually, you need to install Autohotkey from here and save the above lines to a text file with the *.ahk extension. Alternatively, you can download the already compiled screenshot.exe file from here:
You can use this in some batch file, pin it to the taskbar or the Start screen. You can also create a shortcut to the screenshot.exe file and assign an additional global hotkey with a single keystroke to take a screenshot.
This trick works in Windows 10, Windows 8 and Windows 8.1.
Support us
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
How to assign screenshot function to any key? where is the screenshot exe folder so i can assign a key function to it
Download the file
Create a shortcut to the file and put it in the start menu
Now, assign a global hotkey to the shortcut you created as described here: Assign global hotkeys to launch any app in Windows 10