Page 1 of 1

hotstring X (execute) option doesn't work for sending anything containing accents (Autohotkey_L)

Posted: 17 Aug 2018, 11:27
by 20170201225639
Version Number: 1.1.29.01

Problem: when I turn on the X (execute) option, usually I can put "Send ___" immediately after the hotstring with no linebreak & return and have this trigger the execution of a Send command rather than text replacement. However in the case where what is being sent contains the grave accent, nothing happens and I must revert to using three lines of code.

In other words, this

Code: Select all

#Hotstring * B0 ? X
::cs::Send ^``
doesn't work (doesn't send ctrl+accent). However if you change it to

Code: Select all

#Hotstring * B0 ? X
::cs::
Send ^``
return
it WILL work (although it defeats the purpose of turning on X option).

Thank you!

Re: hotstring X (execute) option doesn't work for sending anything containing accents (Autohotkey_L)

Posted: 17 Aug 2018, 12:36
by swagfag
dont have the time to dig into that rn.
use this workaround:

Code: Select all

#Hotstring * B0 ? X
::cs::Send ^{vkC0}

Re: hotstring X (execute) option doesn't work for sending anything containing accents (Autohotkey_L)

Posted: 17 Aug 2018, 17:47
by jeeswg
I thought I might mention this problem re. using `s in hotstrings in AHK v2.

Code: Select all

:*:abc::a`sb`sc`s ;not working correctly
:*:def::d`te`tf`t
:*:ghi::g h i `

;results:
;asbscs
;d	e	f
;g h i

Re: hotstring X (execute) option doesn't work for sending anything containing accents (Autohotkey_L)

Posted: 17 Aug 2018, 18:29
by guest3456
jeeswg wrote:I thought I might mention this problem re. using `s in hotstrings in AHK v2.

Code: Select all

:*:abc::a`sb`sc`s ;not working correctly
:*:def::d`te`tf`t
:*:ghi::g h i `

;results:
;asbscs
;d	e	f
;g h i
https://lexikos.github.io/v2/docs/misc/EscapeChar.htm

Re: hotstring X (execute) option doesn't work for sending anything containing accents (Autohotkey_L)

Posted: 11 Nov 2018, 02:01
by lexikos
v1.1.30.01 fixes escape sequences in one-line executable hotstrings.