Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I do a lot of screen print capturing, and I have just figured out how to use AutoHotKey to paste screen prints into MsPaint automatically.

How to paste Print Screen on MS Paint automatically when press "PrtSc" button ?

However, one small problem I have is that ... if I grabbed a screen with Alt-Prt Scr that is only 50x50 pixels, then there would be extra white margin around it, because MSPaint starts out with a larger canvas by default. How can I make it ALWAYS start with 1x1 instead?

share|improve this question
To customize: locate the AutoHotKey icon, right- or left-click it and look for options. – Fantomas Nov 28 '10 at 16:00
up vote 3 down vote accepted

Modify the script slightly to auto-crop the image.

; print screen pastes into MS-Paint
Run Mspaint
WinActivate, Untitled - Paint
WinWaitActive, Untitled - Paint
   Send ^v
   Send ^+x

(so now it pastes the image, and then crops it)

share|improve this answer
Unfortunatelly this does not work with newest Paint (one that has the ribbon). I am not sure what the command for auto-crop is. – Fantomas Nov 24 '10 at 19:20
I think these edits will work. I tested it on my Windows 7 64-bit box, and it works. (I also added a line to activate the MSPaint, as when I tried alt-prtscrn I had to manually activate it for some reason) – mpeterson Nov 24 '10 at 19:42
Looks good now, thanks! – Fantomas Nov 24 '10 at 20:17
How do I make sure that AutoHotkey starts up automatically every time the computer boots? – Fantomas Dec 3 '10 at 17:17
I would just drop a shortcut of AutoHotKey into the Startup folder, which is Method Two on this site. – mpeterson Dec 4 '10 at 14:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.