Skip to content

Instantly share code, notes, and snippets.

@mkldon
Last active January 3, 2020 22:37
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 mkldon/5768fca4f4755cf545dcc9e78e92a3f9 to your computer and use it in GitHub Desktop.
Save mkldon/5768fca4f4755cf545dcc9e78e92a3f9 to your computer and use it in GitHub Desktop.
Autohotkey - autosave with F5 every 10 minutes
#SingleInstance
#UseHook
Loop {
If (!LastF5)
{
LastF5 := 0
}
If ( (A_TickCount - LastF5) > 10 * 60 * 1000)
{
LastF5 := A_TickCount
SendInput {F5}
}
Sleep 1000
}
F5::
LastF5 := A_TickCount
SendInput {F5}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment