JSI Tip 7066. How can I send a PrtScn image to the printer with a single key press?

Jerold Schulman

August 17, 2003

1 Min Read
ITPro Today logo in a gray background | ITPro Today

After sending your Desktop image to the clipboard by pressing PrtScn, or sending a Window's image by pressing ALT+PrtScn, I can press a PrtClip icon in my Quick Launch bar to print the image.

If you would like a similar capability:

1. Create a PrtClipVBS.VBS file that uses SendKeys:

set WshShell = CreateObject("WScript.Shell")Wshshell.AppActivate "untitled - Paint"WScript.Sleep 100WshShell.SendKeys "^V"WshShell.SendKeys "^P"WshShell.SendKeys "{ENTER}"WshShell.SendKeys "%%Fx"WshShell.SendKeys "{TAB}"WshShell.SendKeys "{ENTER}"

2. Create a PrtClip.bat file to open Microsoft Paint and run the PrtClipVBS.VBS script:

@echo offstart mspaint.exestart /min cscript.exe //Nologo c:utilPrtClipVBS.vbs

3. Create a shortcut to the PrtClip.bat file and place it in your Quick Launch bar, or on your desktop.

NOTE: You can use Autoit freeware to do this with just one file.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like