Page 1 of 1

AHK v2 delete the text without any reason

Posted: 25 May 2023, 23:52
by xMaxrayx
Hi, I made this simple script but AHK delete the text for no reason (after AHK move the text cursor)

Code: Select all

$^b::SendInput "{CtrlDown}{ShiftDown}{Left 1} {ShiftUp}{CtrlUp} "
I tired this but same problem

Code: Select all

^b::Send "{CtrlDown}{ShiftDown}{Left 1} {ShiftUp}{CtrlUp} "

Re: AHK v2 delete the text without any reason

Posted: 26 May 2023, 03:31
by xMaxrayx
ok this work with me idk why

Code: Select all

^b::Send("{shift Down}^{Left}{shift Up}") 

Re: AHK v2 delete the text without any reason

Posted: 26 May 2023, 05:18
by mikeyww
If needed, the :arrow: KeyHistory can show you what is happening with the keys.

Code: Select all

#Requires AutoHotkey v2.0
^b::Send '{Blind}+{Left}'

Re: AHK v2 delete the text without any reason

Posted: 29 May 2023, 06:25
by xMaxrayx
mikeyww wrote:
26 May 2023, 05:18
If needed, the :arrow: KeyHistory can show you what is happening with the keys.

Code: Select all

#Requires AutoHotkey v2.0
^b::Send '{Blind}+{Left}'
I see, thank you I never heard about {Blind} before

Re: AHK v2 delete the text without any reason

Posted: 29 May 2023, 07:05
by mikeyww

Re: AHK v2 delete the text without any reason

Posted: 10 Jun 2023, 13:48
by xMaxrayx
@thx again ^^



turn out some keys interface with code so you need the other mothed

Code: Select all


^b::
f2::
{
Send '{Blind}+{Left}'
}
here Ctrl+b will work correctly but F2 will fail so you need to use the other code

Code: Select all

f2:: Send("{shift Down}^{Left}{shift Up}")