Skip to content

Instantly share code, notes, and snippets.

@andytwoods
Created January 11, 2022 13:29
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 andytwoods/b0a9e295bab7f457351e704783085374 to your computer and use it in GitHub Desktop.
Save andytwoods/b0a9e295bab7f457351e704783085374 to your computer and use it in GitHub Desktop.
F2::
; Save current window
WinActivate,ahk_class Chrome_WidgetWin_1
; ---------------------------------------
; Refresh Chrome
Process, Exist, chrome.exe
If(ErrorLevel) {
WinActivate, ahk_pid %ErrorLevel%
Send {F5}
}
; ---------------------------------------
; Return to original window
WinActivate ahk_id %original%
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment