Skip to content

Instantly share code, notes, and snippets.

@asif-mistry
Last active October 28, 2018 11:16
Show Gist options
  • Save asif-mistry/c25b486bdebf681c0bc403ecbe6a6e83 to your computer and use it in GitHub Desktop.
Save asif-mistry/c25b486bdebf681c0bc403ecbe6a6e83 to your computer and use it in GitHub Desktop.
Auto Hotkey
ScrollLock::
{
Send, ^c
Sleep 50
Run, https://www.google.co.in/search?f=%clipboard%
Return
}
#Persistent
WinGetActiveTitle, TitleLast
SetTimer, CheckActive, 50
return
CheckActive:
WinGetActiveTitle, Title
GetKeyState, Clicking, LButton, P
If (Clicking = "U") and (TitleLast != Title)
WinActivate, %TitleLast%
else if (TitleLast != Title)
TitleLast := Title
return
SetTimer Click, 1000
F8::Toggle := !Toggle
Click:
If (!Toggle)
Return
Send, a
;SendInput, {Enter}
return
#c::Send, ^c ; Win+C, Shift+Win+C, Ctrl+Win+C, etc. will all trigger this hotkey.
#v::Send, ^v ; paste
#x::Send, ^x ; cut
#a::Send, ^a
#t::Send, ^t
#s::Send, ^s
#f::Send, English subtitles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment