get the selected text in any active window Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
mikeyww
Posts: 27366
Joined: 09 Sep 2014, 18:38

Re: get the selected text in any active window

Post by mikeyww » 12 Jan 2022, 08:16

ClipWait is probably the right answer. You can save & restore the previous clipboard contents as needed.

surfactant
Posts: 99
Joined: 28 Jun 2019, 01:07

Re: get the selected text in any active window

Post by surfactant » 12 Jan 2022, 10:32

mikeyww wrote:
12 Jan 2022, 08:16
ClipWait is probably the right answer. You can save & restore the previous clipboard contents as needed.
Hi @mikeyww Thank you for your further comments!

Yes, I used ClipWait after each statemtn Send ^c, but still a little worried about the result.

About "save & restore the previous clipboard contents", simply restoring the variable "clipboard" as a simple string could recover all the previous complex contents in the clipboard, such as files, imgages, rich format text...?

User avatar
mikeyww
Posts: 27366
Joined: 09 Sep 2014, 18:38

Re: get the selected text in any active window

Post by mikeyww » 12 Jan 2022, 11:10

Instead of worrying, you can see if ClipWait works. The docs show how to restore clipboard.

surfactant
Posts: 99
Joined: 28 Jun 2019, 01:07

Re: get the selected text in any active window

Post by surfactant » 12 Jan 2022, 11:22

mikeyww wrote:
12 Jan 2022, 11:10
Instead of worrying, you can see if ClipWait works. The docs show how to restore clipboard.
@mikeyww Thank you!

Post Reply

Return to “Ask for Help (v1)”