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

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 100
WshShell.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 off
start mspaint.exe
start /min cscript.exe //Nologo c:\util\PrtClipVBS.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.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish