Code: Select all
; copy text to the clipboard, modify it, paste it back
^+k:: ; ctrl-shift-k
ClipSave:=ClipboardAll ; store current clipboard
Send ^c ; copy selected text
clipboard:="<i>" clipboard "</i>" ; wrap it in html-tags
Send ^v ; paste
Clipboard:=ClipSave ; restore old clipboard content
ClipSave:="" ; clear variable
Return
Code: Select all
; copy text to the clipboard, modify it, paste it back
^+k:: ; ctrl-shift-k
ClipSave:=ClipboardAll ; store current clipboard
Send ^c ; copy selected text
clipboard:="<i>" . clipboard . "</i>" ; wrap it in html-tags **Needs "." to concatenate!?
Send ^v ; paste
Clipboard:=ClipSave ; restore old clipboard content
ClipSave:="" ; clear variable
Return