Can PgUp/down keys be mapped to internet buttons?

X1xx series specific matters only.
Post Reply
Message
Author
JaimitoBond
Sophomore Member
Posts: 165
Joined: Sat Apr 24, 2004 12:50 pm

Can PgUp/down keys be mapped to internet buttons?

#1 Post by JaimitoBond » Thu Jul 08, 2010 10:27 pm

I miss the dedicated internet page buttons on my T series. Anyone got any tricks to map the keyboard on x100e to have those functions?

hunterman223
Senior Member
Senior Member
Posts: 749
Joined: Thu May 13, 2010 4:27 pm

Re: Can PgUp/down keys be mapped to internet buttons?

#2 Post by hunterman223 » Fri Jul 09, 2010 12:56 am

I recall a program on my R40 called "Keyboard Customizer Utility". Does your X100e have that? What do you want the PgUp/Dn keys to do?
Hunter Thompson

ThinkPad T400: T9400, 8GB, LG WXGA+, Samsung 830 128GB + WD Scorpio Black 500GB, Intel 5300agn, Win7 Pro x64
Others: IBM ThinkPad R40, Sony VAIO NR Series, HP TouchPad running CM9, Jailbroken iPod Touch 4G

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

Re: Can PgUp/down keys be mapped to internet buttons?

#3 Post by rkawakami » Fri Jul 09, 2010 3:30 am

You could use something like AutoHotKey. This utility automates keystrokes and mouse clicks by using a straight-forward scripting language. For your example, you can remap the Page Up and Page Down keys to "Browser Back" and "Browser Forward" functions by this code sequence in the script file:

Code: Select all

PgUP::
Send, {ALT Down}{Left}{ALT Up}
return

PgDn::
Send, {ALT Down}{Right}{ALT Up}
return
This may be somewhat of a simplistic key replacement since you can easily use the ALT-Left Arrow and ALT-Right Arrow key sequences on your own. Also, if you remap the keys this way, then you won't be able to use the Page Up and Page Down functions in programs like Word or Notepad. However, with a little bit of programming you can have it both ways:

Code: Select all

SetTitleMatchMode 2

PgUp::
IfWinActive Firefox
{
  Send, {ALT Down}{Left}{ALT Up}
  return
}
else
{
  Send, {PgUp}
  return
}

PgDn::
IfWinActive Firefox
{
  Send, {ALT Down}{Right}{ALT Up}
  return
}
else
{
  Send, {PgDn}
  return
}
This example assumes you are running Firefox as your browser. If Firefox is the active window, then pressing the PgUp and PgDn keys will result in sending the ALT-Left and ALT-Right arrow keystrokes. If Firefox is not the active window, then AutoHotKey issues the normal Page Up and Down commands. The first line (SetTitleMatchMode 2) tells AutoHotKey to consider the title string in the IfWinActive test (i.e., Firefox) to be a match if it appears anywhere within the window's title. Since most browsers will display the name of the web page in the title bar before its own name, you'll need to set this mode.

ref: http://www.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.

JaimitoBond
Sophomore Member
Posts: 165
Joined: Sat Apr 24, 2004 12:50 pm

Re: Can PgUp/down keys be mapped to internet buttons?

#4 Post by JaimitoBond » Tue Aug 03, 2010 6:23 pm

I dont use the touch pad usually, so I just used ultranav app and programed the touch left and right mouse click buttons to forward and backwards for web browsing.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad X1xx Series”

Who is online

Users browsing this forum: No registered users and 3 guests