Page 1 of 1

Hotkey support "Fn" key ?

Posted: Dec 23rd, 2009, 7:42 am
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:)

Re: Hotkey support "Fn" key ?

Posted: Feb 24th, 2010, 6:12 pm
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"=""

Re: Hotkey support "Fn" key ?

Posted: Feb 26th, 2010, 1:42 pm
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 :)

Re: Hotkey support "Fn" key ?

Posted: Feb 26th, 2010, 5:45 pm
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

Re: Hotkey support "Fn" key ?

Posted: Feb 26th, 2010, 6:29 pm
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.