for example, past my signature into a word document without using word macros
I tried to save and load a captured area to a file and then load it. However, now every time I do a partial screen capture it overwrites the prior clip file, even without autohotkey running.
I'd love something simple. Basically insert c:\signature.jpg at cursor
suggestions?
Thanks,
Hal
Here's the code I had from another users suggestion:
Code: Select all
;USE THIS TO SAVE A CLIPBOARD IMAGE TO A FILE TO USE FOR PASTING WITH 2ND SCRIPT FOLLOWING THIS
;FIRST COPY AN IMAGE TO CLIPBOARD USING SNIPING TOOL ETC
#!'::
; win alt'
#Persistent
OnClipboardChange:
if(A_EventInfo=2) ; if the Clipboard contains images
{
;FileDelete, C:\image saved.clip
ToolTip image saved
FileAppend, %ClipboardAll%, d:\dropbox\_SIGNATURE FILES\CLIPautohotkey\MailSignOff.clip ; save image
Sleep 1000
ToolTip
}
return
;USE THIS TO LOAD & PASTE MailSignOFF TO CLIPBOARD
;THIS ONE IS E-MAIL SIGNOFF
#+/::
; win-shft/
;ClipSaved := ClipboardAll
;Clipboard =
FileRead, Clipboard, *c d:\dropbox\_SIGNATURE FILES\CLIPautohotkey\MailSignoff.clip
ClipWait, 2
Send ^v
;clipboard := ClipSaved
return