| View previous topic :: View next topic |
| Author |
Message |
mighty-f
Joined: 12 Sep 2005 Posts: 213
|
Posted: Sun Nov 05, 2006 11:14 pm Post subject: question about a certain keyboard key |
|
|
There is a key between ctrl key and windows key at the right side of the keyboard.
What is that key and it's sign for AHK?
Where can i get signs(codes) for various keys for ahk, in the help file? |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5376 Location: /b/
|
Posted: Sun Nov 05, 2006 11:17 pm Post subject: |
|
|
_________________
 |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sun Nov 05, 2006 11:39 pm Post subject: |
|
|
First, run this script.
| Code: | #persistent
#installkeybdhook |
It literally does nothing, so don't worry.
Once it's running, double-click on its tray icon (green with an h), and the AutoHotkey window will appear. From there, you can either select 'View->Key history and script info' from the menu or press Ctrl+K to get to the Key History Screen.
Once there, press the key you want to know about, and then press F5. You should see the key's name there, right above F5 in the "Key" column.
For keys that you know about, but want the exact name to use in AutoHotkey, use the lists Titan mentioned. It's faster and easier than using this method every time. |
|
| Back to top |
|
 |
moorpipe
Joined: 04 Oct 2006 Posts: 19
|
Posted: Tue Nov 21, 2006 10:08 am Post subject: |
|
|
I have a special key on my keyboard called F-Lock. It switches my function keys F1 to F12 from socalled standard to enhanced mode and vice versa (I think some laptops also have this special key). Unfortunately jonny's method doesn't show the keyboard code for this key. Is there a way to find out how I can use this F-lock key in my AHK scripts? FYI I want to double tap Fn to emulate F-lock + Fn + F-lock where n=1..12.
Thanks! |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Tue Nov 21, 2006 10:25 am Post subject: |
|
|
You are not the first one to ask... These keys are usually managed at low level (keyboard or its driver) and seem not to be reachable from the WinAPI, alas. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
moorpipe
Joined: 04 Oct 2006 Posts: 19
|
Posted: Tue Nov 21, 2006 11:39 am Post subject: |
|
|
Thanks, Philippe, should have searched harder I guess. Anyway, it's just a pity AHK cannot intercept those low level keys.  |
|
| Back to top |
|
 |
|