(轉貼) 如何重新定義Thinkvantage(AccessIBM)按鍵的功能? (NB) (ThinkPad) (OS) (Windows)

Abstract
ThinkVantage(AccessIBM)為ThinkPad特有的功能鍵,用來呼叫ThinkVantage軟體,但這些軟體都有熱鍵相對應,是否可以重新定義ThinkVantage鍵來啟動自己的應用程式呢?

Introduction
ThinkVantage(AccessIBM)有兩個功能:
1.剛開機時用來呼叫R&R。
2.進入Windows後用來呼叫ThinkVantage工具選單。

若沒用到這兩個功能,大大的ThinkVantage就浪費了,是否能自行定義呢?以下轉貼
http://forum.notebookreview.com/showthread.php?t=171644的方法,我個人是用ThinkVantage啟動我最常用的7Zip。

Solution
There is a way to make the ThinkVantage button open programs, open multiple programs, or hibernate after completing a clean install. Thanks to Bighaugs (who started the thread and was the original poster for the question) and Erik from thinkpads.com (who explained exactly what to do to run programs) and Hellbore and Cherude (who expanded on the idea to make the button control hibernate and possibly more). I’m only compiling the infomation they described in one place in case someone wants to try this and add functionality to the big blue button. I’ll try to explain Erik and Hellbore’s instructions here in case Mikeeeeee’s utility find doesn’t work or you want an alternative. You can see the original instructions posted HERE
One advantage of creating a batch file and registry key is that you are able to open multiple programs with the push of just one button. Also, If you have the 'Thinkpad Power Manager' software installed, you can use the batch file to power off the display and lock the workstation (same as Fn + F3). You can even create a batch file to make the laptop hibernate.
The blue button can be programmed to run any executable file as long as you have the ‘hotkey utility’ installed. It’s owned by the hotkey features located in the registry at: HKEY_LOCAL_MACHINE\SOFTWARE\IBM\TPHOTKEY. Follow the instructions below to set it up to open notepad – if you want to use the Thinkvantage button to open a software program or hibernate, skip down to the next set of instructions:
_____________________________________________________________________
Make The ThinkVantage Button Open Notepad
Notepad.exe is the easiest to set up to open because you don't need to create batch files. You are only creating registry key (8001) that doesn't exist anymore because you performed a clean install.
1. Open notepad (Start > Accessories > Notepad)
2. Paste the following text:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\IBM\TPHOTKEY\8001]
"File"="C:\\Windows\\notepad.exe"
3. Save the file anywhere and name it whatever you want, but change the file extension from “.txt” to “.reg”
4. Open the .reg file you just saved and…walla, use the big blue button to open the notepad program.
_____________________________________________________________________
Make The ThinkVantage Button Open Any Program
If you want to open any .exe program, you need to create a batch file in order to make it open smoothly without error. Follow these steps to create a batch file, then create a registry entry to make the ThinkVantage button point to that program:
1.Open notepad (Start > Accessories > Notepad)
2.Paste the following text (I used the path to IE, but you can replace this with any path you want):
@echo off
cd "C:\Program Files\Internet Explorer"
start iexplore
cls
3.Name the file as “runapp.bat”
4.Save the file in the following location: C:\
*Now you need to create the registry code to point to the above batch file*
5.Open notepad (Start > Accessories > Notepad)
6.Paste the following text that points to the batch file just created:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\IBM\TPHOTKEY\8001]
"File"="c:\\runapp.bat"
7.Save the file anywhere and name it whatever you want, but change the file extension from “.txt” to “.reg”
8.Open the .reg file you just saved and use the big blue button to open the.exe program you specified in step 2.
If you want to change the program that opens with the blue ThinkVantage button, you only need to edit the batch file and not the registry. Right click on the .bat file and select ‘edit’. Just follow the pattern by changing the path to the application you want next to ‘cd’ and make sure to add the name of the application after the word ‘start’
_____________________________________________________________________
Make The ThinkVantage Button Open Multiple Programs Simultaneously
You can make the ThinkVantage button open multiple programs at the same time. Follow the instructions above, except at step 2 use the following batch code (replacing the path for whatever programs you want to control):
@echo off
cd "C:\Program Files\Internet Explorer"
start iexplore
cd "C:\Program Files\Microsoft Office\OFFICE12"
start WINWORD
cls
You get the idea if you can follow the pattern and keep adding as many applications as you want. They will all open simultaneously.
_____________________________________________________________________
Make The thinkVantage Button Control Hibernate
(from post #27) If you want to make the ThinkVantage button put the laptop into hibernate mode, you need to create a batch file just like above. Follow these steps to create a batch file, then create a registry entry to make the ThinkVantage button point to that program:
1.Open notepad (Start > Accessories > Notepad)
2.Paste the following text:
@echo off
shutdown /h
3.Name the file as “hibernate.bat”
4.Save the file in the following location: C:\
*Now you need to create the registry code to point to the above batch file*
5.Open notepad (Start > Accessories > Notepad)
6.Paste the following text that points to the batch file just created:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\IBM\TPHOTKEY\8001]
"File"="c:\\hibernate.bat"
7.Save the file anywhere and name it whatever you want, but change the file extension from “.txt” to “.reg”
8.Open the .reg file you just saved and use the big blue button to open the.exe program you specified in step 2
Note: These instructions are only valid for Windows Vista. Windows XP does not have the shutdown hibernate command.
_____________________________________________________________________
Make The thinkVantage Button Control Shutdown and Turn Off
(from post #30) If you want to make the ThinkVantage button put the laptop into shut down and turn off, you need to create a batch file. Follow these steps to create a batch file, then create a registry entry to make the ThinkVantage button point to that program:
1.Open notepad (Start > Accessories > Notepad)
2.Paste the following text:
@echo off
shutdown /s /t 5
Obs: t 5 means 5 seconds, the laptop will start to shut down and turn off after 5 seconds you press the ThinkVantage button. You can increase/decrease this time as you wish.
3.Name the file as “off.bat”
4.Save the file in the following location: C:\
*Now you need to create the registry code to point to the above batch file*
5.Open notepad (Start > Accessories > Notepad)
6.Paste the following text that points to the batch file just created:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\IBM\TPHOTKEY\8001]
"File"="c:\\off.bat"
7.Save the file anywhere and name it whatever you want, but change the file extension from “.txt” to “.reg”
8.Open the .reg file you just saved and use the big blue button to open the.exe program you specified in step 2
Note: These instructions are only valid for Windows Vista. Windows XP does not have the shutdown hibernate command.
_____________________________________________________________________
If you have the 'Thinkpad Power Manager' software installed, you can also use the batch file to power off the display and lock the workstation (same as Fn + F3) by using the following code:
@echo off
cd "C:\Program Files\ThinkPad\Utilities"
start PWMOSDV
rundll32 user32.dll, LockWorkStation
cls
Keep in mind that the above only works for 32-bit Vista. If you are using 64-bit Vista OS, the path will be slightly different. For 64-bit OS, you should replace (cd "C:\Program Files\ThinkPad\Utilities") with (cd "C:\Program Files (x86)\ThinkPad\Utilities").
_____________________________________________________________________
If you want to edit the registry, you can go to Start and type “regedit” in the search field. Once there, expand the folders to find [HKEY_LOCAL_MACHINE\SOFTWARE\IBM\TPHOTKEY\8001]. Right click ‘file’ and select ‘Modify…’ From there, you can point the value data to any executable program (like Notepad) or batch file you want.
In other words, you can create a batch file to run an application and hibernate and keep them in the "C:\" location. Use the steps above to point to whatever you want the button to control by entering c:\\runapp.bat or c:\\hibernate.bat in the registry.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值