Here's a snippet of a script of mine attempting to put extra Unicode awesomeness at my fingertips.
::\iff::
SendUnicode("⇔")
return
; many rules later...
SendUnicode(char){
ClipSaved := ClipboardAll ;;;
;apparently this is the only way AHK can handle Unicode.
Transform, Clipboard, Unicode, %char%
SendInput ^v
Clipboard := ClipSaved ;;;
return
}
Unfortunately, I had to comment out the lines marked with ;;;
because they gave inconsistent results in preserving clipboard contents. The most frequent issue I experienced, specifically, is the pasting of the existing clipboard contents instead of char
.
Any ideas on why the above fails and remedies I could take to fix the issue?