Skip to content

Instantly share code, notes, and snippets.

@nod5
Created September 9, 2017 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nod5/210ddbdb46c91eddf7e6c29bcf617801 to your computer and use it in GitHub Desktop.
Save nod5/210ddbdb46c91eddf7e6c29bcf617801 to your computer and use it in GitHub Desktop.
Autohotkey script. New SumatraPDF hotkey: ctrl+B to Google search selected text
;New SumatraPDF hotkey: ctrl+B to Google search selected text
#IfWinActive, ahk_exe SumatraPDF.exe
^b::
ControlGetFocus, contr, A
if contr ;skip if editbox has focus
return
clipboard =
send ^c
clipwait, 1
if clipboard
Run https://www.google.com/search?q=%clipboard%
return
#IfWinActive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment