AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

question about a certain keyboard key

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
mighty-f



Joined: 12 Sep 2005
Posts: 213

PostPosted: Sun Nov 05, 2006 11:14 pm    Post subject: question about a certain keyboard key Reply with quote

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
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Sun Nov 05, 2006 11:17 pm    Post subject: Reply with quote


_________________

Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sun Nov 05, 2006 11:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
moorpipe



Joined: 04 Oct 2006
Posts: 19

PostPosted: Tue Nov 21, 2006 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Tue Nov 21, 2006 10:25 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
moorpipe



Joined: 04 Oct 2006
Posts: 19

PostPosted: Tue Nov 21, 2006 11:39 am    Post subject: Reply with quote

Thanks, Philippe, should have searched harder I guess. Anyway, it's just a pity AHK cannot intercept those low level keys. Crying or Very sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group