Skip to content

Instantly share code, notes, and snippets.

@eegeeZA
Last active January 2, 2024 12:20
Show Gist options
  • Save eegeeZA/3ba69af32ba6264bf78ffda4b88895f3 to your computer and use it in GitHub Desktop.
Save eegeeZA/3ba69af32ba6264bf78ffda4b88895f3 to your computer and use it in GitHub Desktop.
Remap original hotkeys from Winamp to media keys, disable the annoying CaPS LoCK button, allow the volume to be adjusted with the mouse wheel, and quick launch a calculator using Num Lock.
#Requires AutoHotkey v2.0
SetCapsLockState "AlwaysOff"
Media_Play_Pause::Media_Play_Pause
Media_Stop::Media_Stop
Media_Next::Media_Next
Media_Prev::Media_Prev
^!Home::Send "!{Media_Play_Pause}"
^!End::SendInput "{Media_Stop}"
^!PgDn::SendInput "{Media_Next}"
^!PgUp::SendInput "{Media_Prev}"
^+WheelUp::SoundSetVolume "+1"
^+WheelDown::SoundSetVolume -1
NumLock::
{
if FileExist("C:\Program Files (x86)\SpeedCrunch\speedcrunch.exe")
Run "C:\Program Files (x86)\SpeedCrunch\speedcrunch.exe"
else if FileExist("C:\Program Files (x86)\SpeQ Mathematics\SpeQ Mathematics.exe")
Run "C:\Program Files (x86)\SpeQ Mathematics\SpeQ Mathematics.exe"
else
Run "calc.exe"
}
@eegeeZA
Copy link
Author

eegeeZA commented Nov 26, 2020

Install AutoHotkey and run the script directly.

I like to right-click the script, compile to an EXE, and then drop the file in my start up folder.
(run shell:Startup to find it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment