Skip to content

Instantly share code, notes, and snippets.

@jpfinley
Created February 12, 2009 02:41
Show Gist options
  • Save jpfinley/62457 to your computer and use it in GitHub Desktop.
Save jpfinley/62457 to your computer and use it in GitHub Desktop.
Keypress detection script for Windows automation program AutoHotKey. Designed to control the Floppy Stereo's WinAmp functions.
; <COMPILER: v1.0.35.10>
Numpad9::
IfWinExist, Player Window
{
WinActivate
MouseClick, left, 50, 140
}
Return
Numpad8::
IfWinExist, Player Window
{
WinActivate
MouseClick, left, 78, 140
}
Return
Numpad0::
IfWinExist, Player Window
{
WinActivate
MouseClick, left, 137, 140
}
Return
Numpad5::
IfWinExist, Player Window
{
WinActivate
MouseClick, left, 20, 140
}
Return
Numpad6::
IfWinExist, Player Window
{
WinActivate
MouseClick, left, 108, 140
}
Return
m::
IfWinExist, Player Window
{
WinActivate
MouseClick, left, 170, 146
}
Return
e::
IfWinExist, Player Window
{
WinActivate
MouseClick, left, 323, 65
}
Return
h::
IfWinExist, Player Window
{
WinActivate
MouseClick, left, 320, 85
}
Return
Numpad3::
IfWinExist, Player Window
{
WinActivate
MouseClick, left, 340, 8
}
else
{
Run, %ProgramFiles%\Winamp\Winamp.exe
WinWait, Player Window
WinActivate
}
Return
Numpad2::
Run, a:\Shortcut to playlist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment