SoggyDog
Joined: 02 May 2006 Posts: 214 Location: Greeley, CO
|
Posted: Thu Jun 05, 2008 10:18 pm Post subject: Printing Selected Text |
|
|
I had a need today for printing text from an application that, believe it or not, does not have the ability to print;
I'm sure similar scripts are out there, but thought I'd post it, just in case it fills a need for someone else.
| Code: | ; Print selected text to default printer
^!p::
SplashTextOn, 133, 23, Input Blocked...,Printing Selection
BlockInput, On
OldClip := Clipboard
Clipboard =
Send, {Ctrl Down}c{Ctrl Up}
FileDelete, %A_ScriptDir%\Clip2Print.txt
FileAppend, %Clipboard%, %A_ScriptDir%\Clip2Print.txt
Sleep, 3000
Run, Notepad.exe /P %A_ScriptDir%\Clip2Print.txt
Sleep, 3000
FileDelete, %A_ScriptDir%\Clip2Print.txt
Clipboard := OldClip
BlockInput, Off
SplashTextOff
Return
|
_________________
SoggyDog
Download AutoHotKey Wallpaper
Does 'Fuzzy Logic' tickle? |
|