SafelyRemove.com Forum
http://safelyremove.com/forum/

Hotkey support "Fn" key ?
http://safelyremove.com/forum/viewtopic.php?f=2&t=346
Page 1 of 1

Author:  shaofengwu [ Wed Dec 23, 2009 7:42 am ]
Post subject:  Hotkey support "Fn" key ?

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:)

Author:  CHeitkamp [ Wed Feb 24, 2010 6:12 pm ]
Post subject:  Re: Hotkey support "Fn" key ?

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:
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\IBM\TPHOTKEY\Class\01\09]
"File"="C:\\Program Files\\USB Safely Remove\\USBSafelyRemove.exe"
"Parameters"=""

Author:  shaofengwu [ Fri Feb 26, 2010 1:42 pm ]
Post subject:  Re: Hotkey support "Fn" key ?

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 :)

Author:  CHeitkamp [ Fri Feb 26, 2010 5:45 pm ]
Post subject:  Re: Hotkey support "Fn" key ?

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:
; Find USB Safely Remove windows
IfWinExist, USB Safely Remove
   ; Send Win+S
   SendInput #s


Attachments:
File comment: Compiled AutoHotkey script with source
ActivateUSR.rar [198.08 KiB]
Downloaded 499 times

Author:  shaofengwu [ Fri Feb 26, 2010 6:29 pm ]
Post subject:  Re: Hotkey support "Fn" key ?

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

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/