![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Dec 2005
Posts: 2
Rep Power: 0
![]() |
Capturing Key commands, then executing command
I want to set a function key to execute a command from the cmd in windows XP. I saw an article similar to this at MSDN but I don't think that this is what I need.
http://support.microsoft.com/default...1&PA=1&SD=HSCH I like the way it is headed, basically detect when a function key is pressed and then perform an action. Can this be done? |
|
|
|
|
|
#2 |
|
Expert Programmer
|
A function key (F1 - F16) has a scan code just like any other, this article is just on capturing presses when an application window has focus. If you want to catch them on a more global level (i.e. when your application does not have focus), you can use DirectInput, windows hotkeys or lower-level keyboard hooks, the latter also allowing you to capture the "action buttons" on media keyboards.
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Dec 2005
Posts: 2
Rep Power: 0
![]() |
Thanks for your response. I have just started looking into VB. I am a systems admin with a little web development(php scripting) experience. I find I need to do things that i cannot do with the native admin consoles and would like to learn how to make my own.
Can you recommend a good book on starting Vb that has subjects like this in it? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|