How to Search for Selected Text in DuckDuckGo or Google?

Hey there, long time user, first time poster…

My macro not working.
Goal: Select some text then search that selected information on Google, DuckDuckGo or whatever:

Here's what the script is setup as currently:

SearchSelection_with_DuckDuckGo-CmdCtrlG copy

Triggered by any of the following:

The Hot Key ⌃⇧S is pressed

Will execute the following actions:

Search the Web Title: Startpage Search past year
Paste here
Pause for 1 Second
Notify on failure.

Other ideas?
I'll take my answer off the air… :wink:

1 Like

this is what I use for DDG search with selected text:

DDG with selection Macro (v9.0.6)

DDG with selection.kmmacros (3.1 KB)


Hey @cappelli,

Here's probably the most basic method of doing that with Keyboard Maestro.

Depending upon what web browser you use there are other options as well.


Search Google with the Text Selected in the Front Application.kmmacros (4.6 KB)

1 Like

Internet Search Macro covers this topic. Using its info I made two macros that I think do what you’re looking for — one for Google and one for DuckDuckGo.

Also I’ll attach a couple other useful macros on this subject that may be of help.

(FYI, MacOS has what you’re looking for built into it too. I will put details in a comment section of the macros.)

Search DuckDuckGo w: Selected Text.kmmacros (3.9 KB)

Search Google w: Selected Text.kmmacros (3.9 KB)

Search The Web - DDG.kmmacros (1.6 KB)

Search The Web - Google.kmmacros (1.6 KB)

1 Like