Here's my code:
Code: Select all
^!+x::
KeyWait, Ctrl
KeyWait, u
Send, {Ctrl Down}c{Ctrl Up}
ClipWait, 1
if (ErrorLevel)
return
IfWinExist, ahk_class MozillaWindowClass
{ Run, % "http://www.google.com/search?hl=en&q=" Clipboard
} Else
Run, % "http://www.google.com/search?hl=en&q=" Clipboard
Return
I'm having a similar issue with the code I use to search Merriam Webster:
Code: Select all
^!+m::
KeyWait, Ctrl
KeyWait, u
Send, {Ctrl Down}c{Ctrl Up}
ClipWait, 1
if (ErrorLevel)
return
IfWinExist, ahk_class MozillaWindowClass
{ Run, % "https://www.merriam-webster.com/dictionary/" . CLIPBOARD . ""
} Else
Run, % "https://www.merriam-webster.com/dictionary/" . CLIPBOARD . ""
Return