Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just bought a new keyboard today, and to my surprise it doesn't include "Next/Previous track" keys, although it has other media keys. It also has useless keys like "Home" which brings up the web browser. Or well, it's not actually the "Home" key, it's a special key on the keyboard with a house on it - no idea what it's called. Anyway, so I'd like to remap the "House" key to "Next track".

I've tried three different remapping programs now and none of them seem to be working. I think the real problem is that it's a special key, so it's not included in any keyboard remapping applications.

The keyboard is a Logitech, can't seem to find the exact model though.

Any tips?

share|improve this question
    
Have you tried in the SetPoint software? (Also the exact model should be written on a label on the bottom.) –  Shinrai Dec 21 '10 at 21:38
    
I'll give that a shot, thanks. I found the model now, well hidden under the keyboard, hehe. I'll update after i've tried it. –  thedude Dec 21 '10 at 21:40
    
I just installed it, and it doesn't show any settings at all for the keyboard. I've got a logitech mouse aswell, and it only shows settings for that. :/ –  thedude Dec 21 '10 at 21:52
1  
Under what operating system? –  Gilles Dec 21 '10 at 22:49
1  
@thedude: You should put a tag for your OS (either specific like windows-7 or generic like windows), not just because the OS is vital information to answer your question, but also because some people filter on tags so you're missing out on potential answerers. –  Gilles Dec 22 '10 at 18:47

1 Answer 1

up vote 1 down vote accepted
  1. Download and install AutoHotkey_L, let it associate with .ahk files
  2. Grab the script called "Keyboard Hook - 90L" from Scriptlet to find Scancode of a Key and save it somewhere, e.g. My Documents/keys.ahk
  3. Navigate to the file you saved and double click it
  4. Move the mouse over the "Keyboard Hook" window and press the button you want to map, e.g. Home key
  5. Note the value in the Scan column (e.g. SC132)
  6. Create your own .ahk script
  7. Add the .ahk script to your Startup folder

Your script should contain e.g.

SC132::Send {Media_Next}

Or, you could map Windows+Left to previous track and Windows+Right to next track with this AutoHotkey script:

#Left::Send {Media_Prev}
#Right::Send {Media_Next}

Or this way works even if the window is hidden or minimized:

#Left::SendMessage, 0x319, 0, 0xC0000, , iTunes  
#Right::SendMessage, 0x319, 0, 0xB0000, , iTunes

but you have to Google to find out the values like 0xC0000.

Some other useful shortcuts:

#Up::Send {Volume_Up}
;#Up::SoundSetWaveVolume, +20
#Down::Send {Volume_Down}
;#Down::SoundSetWaveVolume, -20

;#NumpadIns::Send {Media_Play_Pause}
;#Numpad0::Send {Media_Play_Pause}
#Ins::SendMessage, 0x319, 0, 0xE0000, , iTunes
#Del::Send {Volume_Mute}
#NumpadIns::SendMessage, 0x319, 0, 0xE0000, , iTunes
#Numpad0::SendMessage, 0x319, 0, 0xE0000, , iTunes

; works on Vista without IntelliType
#NumpadDot::Send {Volume_Mute}
#NumpadDel::Send {Volume_Mute}
; works on Vista with IntelliType when AutoHotKey.exe is in Windows XP mode
;#NumpadDot::SoundSet, +1, , mute
;#NumpadDel::SoundSet, +1, , mute

See the AutoHotkey docs for more details.

share|improve this answer
    
That was what i had in mind when i first wanted to remap the key, thanks. The "keyboard-hook" script doesn't give me the correct code though. All the "special keys" on the keyboard shows as "SC000". Any idea on how to find out the actual code of it? –  thedude Dec 21 '10 at 23:25
    
It might actually help to remove all Logitech software. Of course, if you're using a Logitech mouse, you might lose any special functionality. –  Mikel Dec 21 '10 at 23:51
    
I don't have any logitech software installed at all, except the drivers that is. Any other ideas? Logitech should release a program for all keyboards so you can change settings and remap the keys more easily, this is a pain in the ass - it doesn't even seem to work. –  thedude Dec 22 '10 at 13:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.