How to get the currently selected text in Keyboard maestro?

Original link: https://www.ixiqin.com/2022/10/11/the-rid_device_info_keyboard-maestro-how-to-realize-the-access-to-the-currently-selected-text/

In the process of using Keyboard maestro, you may need to implement specific operations on the selected text. At this time, you can choose to configure the following macros

Specific implementation ideas:

  1. Execute Ctrl + C to copy (put the selection on the clipboard)
  2. Execute Delete Execute delete (delete the selected content)
  3. Insert new text (and put the contents of the system clipboard as a variable in it).

I also saw another solution in the forum , if you are interested, you can try it

This article is reprinted from: https://www.ixiqin.com/2022/10/11/the-rid_device_info_keyboard-maestro-how-to-realize-the-access-to-the-currently-selected-text/
This site is for inclusion only, and the copyright belongs to the original author.