Autohotkeyscripts

From notebook

(Difference between revisions)
Jump to: navigation, search
 
(2 intermediate revisions not shown)
Line 1: Line 1:
-
<poem>^,::
+
<code>
 +
^,::
 +
; for use with zotero
; blank the clipboard so clipwait will work correctly
; blank the clipboard so clipwait will work correctly
; with sending ^c
; with sending ^c
Line 10: Line 12:
Return
Return
 +
;formatless paste
$^+v:: ; CTRL+SHIFT+V
$^+v:: ; CTRL+SHIFT+V
ClipSaved := ClipboardAll ;save original clipboard contents
ClipSaved := ClipboardAll ;save original clipboard contents
Line 16: Line 19:
Clipboard := ClipSaved ;restore the original clipboard contents
Clipboard := ClipSaved ;restore the original clipboard contents
ClipSaved = ;clear the variable
ClipSaved = ;clear the variable
-
Return</poem>
+
Return
 +
</code>

Latest revision as of 22:48, 24 March 2017

^,::

for use with zotero
blank the clipboard so clipwait will work correctly
with sending ^c

clipboard := "" send ^c ClipWait, 1 StringReplace, clipboard, clipboard, `,,, All StringReplace, clipboard, clipboard, `&,, All StringReplace, clipboard, clipboard, et al.,, All Return

formatless paste

$^+v:: ; CTRL+SHIFT+V ClipSaved := ClipboardAll ;save original clipboard contents clipboard = %clipboard% ;remove formatting Send ^v ;send the Ctrl+V command Clipboard := ClipSaved ;restore the original clipboard contents ClipSaved = ;clear the variable Return

Personal tools