Please try it for yourself with the code below.
Copy this +
and paste it, it will turn into %.
Is this a bug? is there a workaround so I can paste the "+" symbol?
Code: Select all
^h::
send, %clipboard%
return
Code: Select all
^h::
send, %clipboard%
return
Code: Select all
^h:: send, {Raw}%Clipboard%
Code: Select all
q:: ;test send clipboard
Clipboard := "abc +5 def"
SendInput, % Clipboard ;abc % def
SendInput, {Enter}
SendInput, % "{Text}" Clipboard ;abc +5 def
SendInput, {Enter}
SendInput, % "{Raw}" Clipboard ;abc +5 def
SendInput, {Enter}
SendInput, ^v ;abc +5 def
return
jeeswg wrote: ↑14 Nov 2018, 15:22- Send treats + as shift. ^ # ! for ctrl/win/alt. Also, { and } have a special meaning.
- Perhaps '+5' would give you '%'.
- Anyhow, to make each character be sent literally use {Text}.
- (There is also {Raw} in AHK v1, but not AHK v2.)Code: Select all
q:: ;test send clipboard Clipboard := "abc +5 def" SendInput, % Clipboard ;abc % def SendInput, {Enter} SendInput, % "{Text}" Clipboard ;abc +5 def SendInput, {Enter} SendInput, % "{Raw}" Clipboard ;abc +5 def SendInput, {Enter} SendInput, ^v ;abc +5 def return
Users browsing this forum: mapcarter, Marium0505, Rohwedder and 359 guests