Code: Select all
; Test Example
SendInput, {Shift down}
SendInput, {Right 5}
SendInput, {Shift up}
I tried using $^+Z (which is supposed to stop a hotkey from sending itself) but it didn't make any difference.
I then tried putting {Blind} in front of the shift commands ({Blind} {Shift up} etc) but that didn't work either.
I also tried using Hotkey, Shift, On immediately after the hotkey. to temporarily disable the Shift key altogether, but text selection still didn't work,
I have probably not used these options correctly, so can anyone please tell me what I'm doing wrong?
Alternatively, is there another way to select a range of text other than by manually using the Shift and Arrow keys?
I'm already using ControlGet, OutVar, Selected to obtain text selections, but I don't know if there is an equivalent feature that can apply or set text selections. That would obviously solve the issue because shift would no longer need to be pressed as part of the text highlighting code.