Hi
I found/setup a shortcut to run a command that does an unformated paste. It uses this code:
clipboard=%clipboard%
sleep 100
Send, ^{vk56} ;Ctrl V
There is one problem - if the text I'm trying to paste has space(s) at the beginning or end they get truncated before the paste is done. Does anybody know how I can avoid this truncation?
Thanks for you help
Unformated paste
Duh
Found the answer - add this as the first line:
AutoTrim, Off
Found the answer - add this as the first line:
AutoTrim, Off
This alternative also preserves the original clipboard content:
Code: Select all
temp:=ClipboardAll
Clipboard:=SubStr(Clipboard, 1, StrLen(Clipboard))
sleep 100
Send ^v
Clipboard:=temp