change text selection endpoint

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
afweohui
Posts: 1
Joined: 10 Apr 2024, 01:35

change text selection endpoint

10 Apr 2024, 01:38

in windows you can select text and then press arrow keys or move mouse to change the selection. however, the beginning of the selection cannot be changed. is there a way to swap the two endpoints using a hotkey?
Draken
Posts: 51
Joined: 08 Dec 2022, 01:19

Re: change text selection endpoint

15 Apr 2024, 07:16

Hello, I think it would be necessary to show a concrete application in practice, can it be done that the text is copied and then the number of the first and last character is entered, or if it is always the same set these values fixed.

Code: Select all

A_Clipboard := ""
ClipWait
text := A_Clipboard
first := InputBox()
last := InputBox()
MsgBox SubStr( text, first.value, last.value)

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: ManualColdPadlock, mcl, Tio_oddish and 59 guests