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?

link|improve this question

74% accept rate
To customize: locate the AutoHotKey icon, right- or left-click it and look for options. – Fantomas Nov 28 '10 at 16:00
feedback

1 Answer

up vote 2 down vote accepted

Modify the script slightly to auto-crop the image.

; print screen pastes into MS-Paint
~Printscreen::
!~Printscreen::
Run Mspaint
WinActivate, Untitled - Paint
WinWaitActive, Untitled - Paint
{
   Send ^v
   Send ^+x
}

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

link|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
1  
I would just drop a shortcut of AutoHotKey into the Startup folder, which is Method Two on this site. sevenforums.com/tutorials/1401-startup-programs-change.html – mpeterson Dec 4 '10 at 14:50
feedback

Your Answer

 
or
required, but never shown

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