Hide the UI and take a screenshot with one key press

In World of Warcraft there is a screen shot feature that is assigned to the print screen key by default.
When I take screenshots, I like to hide the user interface by pressing alt + z and then pressing the print screen key to take a screenshot.
The problem with this is that by the time I've pressed alt + z and then pressed the print screen key, the thing I wanted to take a screenshot of is often different or not there any more.
What do I need to do to get the same effect as pressing alt + z and then the print screen key with one key press? Can this be done with a macro, or is there something in there already that does it? I've looked through the options, but I can't find anything, maybe I missed it.
Best Answer
Use Autohotkey, you can rebind the print screen button (or any other button) to first send alt+z and then send printscreen.
Something like this should work:
PrintScreen::
Send, {Alt}z
sleep, 100
Send, {PrintScreen}
sleep, 100
Send, {Alt}z
If you are good at using AHK you could also make it so that the alt+z would only be sent if the focus is set to a World of Warcraft window. I recommend asking on either Stack Overflow or the Autohotkey forums for help on adding that functionality.
Pictures about "Hide the UI and take a screenshot with one key press"



How do I hide UI for screenshots?
Press the Windows + Print Screen keys to save an image of your whole screen. You'll know that you have taken a screenshot when you see your screen flash. This method will automatically copy an image of your entire screen to the clipboard and save your screenshot to your computer.What buttons do I push to take a screenshot?
Press \u201cWindows + Shift + S\u201d. Your screen will appear grayed out and your mouse cursor will change. Click and drag on your screen to select the part of your screen you want to capture. A screenshot of the screen region you selected will be copied to your clipboard.How do I take a screenshot of just one area?
Just like in real life, it's helpful to snap a quick picture to supplement your walks down memory lane. Taking screenshots in WoW is fairly simple. Just press the Print Screen button on a PC or Command+Shift+3 on a Mac, and the photo gets dropped in your game files.How to take a screenshot on a PC or Laptop any Windows
More answers regarding hide the UI and take a screenshot with one key press
Answer 2
My alt+z goes to nvidia options. However, you can press esc. Go to your keybinds, look for it and set it to whatever button(s) you would like. I did ctrl+u (u - since I'm hiding my UI).
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Charles Parker, Charles Parker, Charles Parker, Charles Parker