Hotkey support "Fn" key ?

Post Reply
shaofengwu
Posts: 3
Joined: Dec 23rd, 2009, 7:31 am

Hotkey support "Fn" key ?

Post by shaofengwu »

I'm a USB Safely Remove user and use this great tool on PC.
I still use EasyEject on my Thinkpad notebook because I'm familiar to use Fn + F9 as hotkey to eject USB devices. Is it possible to add "Fn" key as hotkey in USB Safely Remove and then I can replace easyeject:)
CHeitkamp
Posts: 4
Joined: Jun 16th, 2009, 9:41 pm

Re: Hotkey support "Fn" key ?

Post by CHeitkamp »

You can edit the programs started by the IBM/Lenovo hotkey driver/program (this is still needed).
Those actions can be in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\IBM\TPHOTKEY.

The registry key for Fn+F9 is HKEY_LOCAL_MACHINE\SOFTWARE\IBM\TPHOTKEY\Class\01\09
To start a program, you need two possibly new string values:
File: The program you want to start
Parameter: The commandline parameters for your program

Possibliy you need to reboot, to activate the changes.


Here a sample USR_FNF9.reg:

Code: Select all

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\IBM\TPHOTKEY\Class\01\09]
"File"="C:\\Program Files\\USB Safely Remove\\USBSafelyRemove.exe"
"Parameters"=""
shaofengwu
Posts: 3
Joined: Dec 23rd, 2009, 7:31 am

Re: Hotkey support "Fn" key ?

Post by shaofengwu »

CHeitkamp,

Thanks your help. I know adding registry key can make Fn + F9 to execute USB Safely Remove. But it will show USR main window not like the smaller window when you use global hotkey. I would like the latter more :roll:. However, Thanks :)
CHeitkamp
Posts: 4
Joined: Jun 16th, 2009, 9:41 pm

Re: Hotkey support "Fn" key ?

Post by CHeitkamp »

shaofengwu wrote:But it will show USR main window not like the smaller window when you use global hotkey.
You are right. I asked for this as a feature request some time ago... Sadly it was never answered - instead this thread was deleted :(

I attached a little AutoHotkey script, which sends Win+S to USR to activate the USR dialog. I included a precompiled version, too.
You can change and compile the script by yourself, if you use another hotkey...

Here the source:

Code: Select all

; Find USB Safely Remove windows
IfWinExist, USB Safely Remove
	; Send Win+S
	SendInput #s
Attachments
ActivateUSR.rar
Compiled AutoHotkey script with source
(198.08 KiB) Downloaded 1335 times
shaofengwu
Posts: 3
Joined: Dec 23rd, 2009, 7:31 am

Re: Hotkey support "Fn" key ?

Post by shaofengwu »

It seems many persons like this feature and maybe USR team should start to support it :)
Thanks CHeitkamp, I'll take a try.
Post Reply