Sunday, November 8, 2009

Media Remote - Use Keyboard To Control Any Media Player

It's Shahrez here; yup, again. Today's post is for lazy people like me,

I am kind of lazy...you see, I don't want to move my mouse all over the screen just to maximize my Media Player window in order to select next song or to raise the volume so due to my frustration over XP (Windows7 supports Jumplists... Far better!), I created this handy setup.

Basically it modifies CapsLock as a modifier (for starters: it makes CapsLock act as Ctrl, Alt or Shift Key) and then we can use A,S,D, Mouse Wheel Up and Mouse Wheel Down to Raise/Low volume or to select Next/Previous track.

If you are new to AutoHotKey [AHK] please give a whirl to your mouse and read my previous post.

1 - Create a new AHK Script file.
2- Edit it and copy/paste the following into it.

;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Start of Script

CapsLock&WheelUp::
send, {Volume_up}
return

CapsLock&WheelDown::
send, {Volume_down}
return

CapsLock&s::
send, {media_play_pause}
return

Caps/Lock&a::
send, {media_prev}
return

CapsLock&d::
send, {media_next}
return

;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||End of Script

3 - Save it, Run it and Enjoy.

Most of the script is self explanatory so will dive right into what this script is supposed to do.

So pressing a,s,d or rolling mouse wheel up or down while holding CapsLock pressed will result as following.

"CapsLock + WheelUp" ( Roll Mouse Wheel Up) will rise you system volume.
"CapsLock + WheelDown" (Roll Mouse Wheel Down) will lower the system volume.
"CapsLock + a" will play the previous track you were listening.
"CapsLock + d" will select the next song in your media player playlist.
"CaspLock + s" will play/pause the current track.


AHK's documentation is a great way to get started with AHK in no time read it and experiment. Who knows you may succeed in ejecting your DVD drive door just by pressing a key.

1 comment:

  1. http://tehreemtariq.wordpress.com/ بلاگ شائد آپ کو کچھ پسند آسکےدیکھئے اور تبصرہ کیجئے

    ReplyDelete