::test:: send multiline text will send "test" instead of the first item *when run in the script*

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
partof
Posts: 110
Joined: 16 Jan 2016, 08:38

::test:: send multiline text will send "test" instead of the first item *when run in the script*

17 Dec 2018, 15:07

It seems there is a bug with the ::test::

Just try this but inside the script (where this code is written). (I'm using the VScode editor)

Code: Select all

::test:: 
send,
(
line1
line2
line3
)

return
It sends:

Code: Select all

testline2
line3
User avatar
sinkfaze
Posts: 616
Joined: 01 Oct 2013, 08:01

Re: ::test:: send multiline text will send "test" instead of the first item *when run in the script*

17 Dec 2018, 15:38

I have moved this topic to Ask for Help until a bug can be verified. I have tested your hotstring in a few different programs and it works fine, so it appears to me like this is a problem with how the end program receives the data and not how AHK sends it. We'll revisit whether this should in Bug Reports once we get more information.
garry
Posts: 3772
Joined: 22 Dec 2013, 12:50

Re: ::test:: send multiline text will send "test" instead of the first item *when run in the script*

17 Dec 2018, 16:11

try different examples with send / controlsend ...

Code: Select all

; start script , open notepad , write > test   and use enter
;- case-1
::test:: 
e1=
(Ltrim join`r`n
Line1 aa
Line2 bb
Line3 cc

)
clipboard=%e1%
clipwait,5
Send,^v
clipboard=
return
esc::exitapp

;- case-2
/*
::test:: 
e1=
(Ltrim join`r`n
Line1 aa
Line2 bb
Line3 cc

)
Send, {Text}%e1%
return
esc::exitapp
*/
Last edited by garry on 19 Dec 2018, 03:02, edited 1 time in total.
garry
Posts: 3772
Joined: 22 Dec 2013, 12:50

Re: ::test:: send multiline text will send "test" instead of the first item *when run in the script*

19 Dec 2018, 03:02

tried with notepad
-1st example : changed to > clipwait,5
-2nd example : was OK

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 138 guests