If the PrtScn (Print Screen) button does not work when IntelliJ IDEA is focused, this is a common issue, especially when using third-party screenshot tools like Greenshot or Screenpresso. Here’s a summary of the causes and solutions:
Why the PrtScn Button Doesn't Work in IntelliJ
- Privilege Mismatch: If IntelliJ is running with administrator privileges and your screenshot tool is not, Windows User Account Control (UAC) will prevent the lower-privileged app from receiving the PrtScn key event. This is by design in Windows security[3].
- Key Capture by IntelliJ or Other Apps: Sometimes, IntelliJ or another application may intercept or block the PrtScn key, preventing it from reaching your screenshot tool[1][2].
- Windows Settings or Conflicts: Windows 10/11 may assign the PrtScn key to open the Snipping Tool or another app, which can override your screenshot tool[5][6][7].
Solutions
1. Match Privileges
- Run your screenshot tool (e.g., Greenshot, Screenpresso) as administrator if IntelliJ is running as administrator, or run both as a normal user. This ensures both apps are on the same privilege level and the key event can be captured[3].
2. Check Windows Keyboard Settings
- Go to Settings > Accessibility > Keyboard (or Ease of Access > Keyboard).
- Look for the option “Use the PrtScn button to open screen snipping” and try toggling it off or on, depending on your needs[6].
- This can restore the default PrtScn behavior or free it up for your screenshot tool[6][7].
3. Check for Keymap Conflicts in IntelliJ
- Open IntelliJ’s Settings > Keymap and search for “Print Screen” or “PrtScn.”
- If it’s assigned to any action, remove or reassign it to avoid conflicts[1].
4. Update or Reinstall Screenshot Tools
- Some users report that reinstalling or updating their screenshot tool, or running it as administrator, resolves the issue[1][7].
- For some tools, installing them “for all users” or in the Program Files directory helps[1].
5. Try Alternative Screenshot Shortcuts
- Use
Windows + Shift + S for the built-in Windows Snipping Tool as a workaround[6].
- On some laptops, you may need to use
Fn + PrtScn or Windows + PrtScn[6].
6. Restart or Reboot
- After making changes to privileges or settings, restart your computer to ensure changes take effect[7].
Summary Table
| Cause | Solution |
|---|
| Privilege mismatch (admin vs. user) | Run both IntelliJ and screenshot tool at same privilege level[3] |
| Windows setting overrides PrtScn | Adjust in Settings > Accessibility > Keyboard[6] |
| Keymap conflict in IntelliJ | Remove/reassign PrtScn in IntelliJ Keymap[1] |
| Screenshot tool not installed for all users | Reinstall tool as admin/in Program Files[1] |
| Third-party tool not capturing key | Update/reinstall tool, check for conflicts[7] |
| Hardware/driver issue | Update keyboard drivers, check hardware[5] |
Additional Tips
- If none of these solutions work, test the PrtScn key outside IntelliJ to rule out hardware issues.
- You can always use built-in Windows tools (
Snipping Tool, Snip & Sketch) as a fallback[5][6].
By following these steps, you should be able to restore the Print Screen functionality while using IntelliJ IDEA.