Skip to content

Instantly share code, notes, and snippets.

@Mystler
Last active March 9, 2020 13: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 Mystler/fcbdc90a5b97556637c46e518a6cabe4 to your computer and use it in GitHub Desktop.
Save Mystler/fcbdc90a5b97556637c46e518a6cabe4 to your computer and use it in GitHub Desktop.
My AutoHotkey Setup
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
NumpadEnd::Numpad1
NumpadDown::Numpad2
NumpadPgDn::Numpad3
NumpadLeft::Numpad4
NumpadClear::Numpad5
NumpadRight::Numpad6
NumpadHome::Numpad7
NumpadUp::Numpad8
NumpadPgUp::Numpad9
NumpadIns::Numpad0
NumpadDel::NumpadDot
; Elite dangerous re-focus game window
1joy3::
IfWinExist, Elite - Dangerous (CLIENT)
WinActivate ; use the window found above
return
~Media_Play_Pause::
if WinExist("ahk_exe Leawo Blu-ray Player.exe")
{
WinGet, active_id, ID, A
WinActivate, Leawo Blu-ray Player
Send {Space}
WinActivate, ahk_id %active_id%
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment