T420 keyboard remapping

T400/410/420 and T500/510/520 series specific matters only
Post Reply
Message
Author
t420poklop
Posts: 10
Joined: Thu Dec 10, 2015 7:03 pm
Location: Prague, Czech Republic

T420 keyboard remapping

#1 Post by t420poklop » Sat Jan 09, 2016 2:17 pm

Hi
1) I would like to remap forward/back key (next to up arrow key) to shift between currently opened windows (like if you press alt+tab). Is there any easy way to do? (I have managed to remap ThinkVantage key via .reg file)
2) The microphone turn off/on button is completely useless for me. Is it possible to remap it the same way like the ThinkVatage button?
Thanks for advice
Dave.

rkawakami
Admin
Admin
Posts: 10052
Joined: Sun Jun 04, 2006 1:26 am
Location: San Jose, CA 95120 USA
Contact:

Re: T420 keyboard remapping

#2 Post by rkawakami » Sat Jan 09, 2016 4:43 pm

What you want can be done using AutoHotKey. I just tested it on an A31p running Windows XP. Couldn't find anything on remapping the microphone key in the AutoHotKey help file. I'm using an older version than what is available now but I assume the following key remap script in the autohotkey.ahk file will still work:

Code: Select all

Browser_Back::
Send, {Alt Down}{Tab}{Alt Up}
return
"Browser_Back" is the name given by AutoHotKey to the keyboard key which is normally used as a browser back function. Similarly, you could also define Browser_Forward:: to change that key as well. "Send," is the command to send out the keyboard key scan sequence which will follow. {Alt Down} is the action of holding down the Alt key, until {Alt Up} is transmitted. {Tab} is just the tab key. So, the sequence is: hold the Alt key down, hit tab, release the Alt key. "return" tells the script to terminate.

ref: https://autohotkey.com/
Ray Kawakami
X22 X24 X31 X41 X41T X60 X60s X61 X61s X200 X200s X300 X301 Z60m Z61t Z61p 560 560Z 600 600E 600X T21 T22 T23 T41 T60p T410 T420 T520 W500 W520 R50 A21p A22p A31 A31p
NOTE: All links to PC-Doctor software hosted by me are dead. Files removed 8/28/12 by manufacturer's demand.

t420poklop
Posts: 10
Joined: Thu Dec 10, 2015 7:03 pm
Location: Prague, Czech Republic

Re: T420 keyboard remapping

#3 Post by t420poklop » Sat Jan 09, 2016 9:49 pm

Thanks it works fine, however it is swithching between only two windows (just exactly like alt+tab do). But when I open more windows, it is still switching between those two windows. Any suggestions?

rkawakami
Admin
Admin
Posts: 10052
Joined: Sun Jun 04, 2006 1:26 am
Location: San Jose, CA 95120 USA
Contact:

Re: T420 keyboard remapping

#4 Post by rkawakami » Sun Jan 10, 2016 3:30 am

Ah, sorry I think I now know what you wanted. A single Alt-Tab will shift between the last two windows that had focus. Normally, when you want to tab through ALL open windows one-at-a-time, you would hold the Alt key down, press Tab once, see the CoolSwitch mini window pop up, then press the Tab key until the task icon you want is highlight, then release Alt. This can't be done with a single Alt-Tab. Instead, use the keyboard shortcut Alt-Esc. That forces the current window to the bottom of the Z-order list. Therefore, continued repetition of Alt-Esc will eventually cycle through all of the open windows. So, change the AutoHotKey script like this:

Code: Select all

Browser_Back::
Send, {Alt Down}{Esc}{Alt Up}
return
I.e, change "{Tab}" to "{Esc}". Re-load the script into AutoHotkey and it should work.

ref: https://autohotkey.com/board/topic/1738 ... s-hotkeys/
Ray Kawakami
X22 X24 X31 X41 X41T X60 X60s X61 X61s X200 X200s X300 X301 Z60m Z61t Z61p 560 560Z 600 600E 600X T21 T22 T23 T41 T60p T410 T420 T520 W500 W520 R50 A21p A22p A31 A31p
NOTE: All links to PC-Doctor software hosted by me are dead. Files removed 8/28/12 by manufacturer's demand.

t420poklop
Posts: 10
Joined: Thu Dec 10, 2015 7:03 pm
Location: Prague, Czech Republic

Re: T420 keyboard remapping

#5 Post by t420poklop » Sun Jan 10, 2016 7:38 am

Perfect! Thank you very much, this is exactly i wanted.
I also tried to remap Browser_forward button, but without success. The aim is to switch the windows like Browser_Back does, but in opposite direction.

3) And last problem; i use Adobe Photoshop Lightroom, but the scrolling via trackpoint + holding middle-click button does not work, otherwise the scrolling works fine in any other program.
I found a solution via .reg script, however nothing happens.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTPEnh]
"UseScrollCursor?"=dword:00000000

rkawakami
Admin
Admin
Posts: 10052
Joined: Sun Jun 04, 2006 1:26 am
Location: San Jose, CA 95120 USA
Contact:

Re: T420 keyboard remapping

#6 Post by rkawakami » Sun Jan 10, 2016 4:20 pm

I can help you with the first problem (programming Browser_Forward to the opposite sequence as Browser_Back) but not the second.

Here's what you need:

Code: Select all

Browser_Forward::
Send, {Alt Down}{Shift Down}{Esc}{Shift Up}{Alt Up}
return
The keyboard shortcut you need to use is Alt-Shift-Esc; "Activate the window at the bottom of the z-order." It's listed right below the Alt-Esc description in the link I provided earlier. Therefore, you need to add the {Shift Down} and {Shift Up} sequences.
Ray Kawakami
X22 X24 X31 X41 X41T X60 X60s X61 X61s X200 X200s X300 X301 Z60m Z61t Z61p 560 560Z 600 600E 600X T21 T22 T23 T41 T60p T410 T420 T520 W500 W520 R50 A21p A22p A31 A31p
NOTE: All links to PC-Doctor software hosted by me are dead. Files removed 8/28/12 by manufacturer's demand.

t420poklop
Posts: 10
Joined: Thu Dec 10, 2015 7:03 pm
Location: Prague, Czech Republic

Re: T420 keyboard remapping

#7 Post by t420poklop » Sun Jan 10, 2016 6:22 pm

Thanks a lot.
Work with this machine is becoming more and more effective :wink:

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad T400/410/420 and T500/510/520 Series”

Who is online

Users browsing this forum: No registered users and 5 guests