I don't know the answer to the question, but I would not think it was
necessary to know the answer to accomplish what you are required to do.
If you have some code XYZ that needs to be executed at some time by a user
action, then presumably the code is executed from some event handler, such as
a button click or keyboard shortcut. It sounds like you will need to make
sure that there is some form of handler for setups where neither of these
could occur, perhaps from a voice activation event? Your mouse and keyboard
handlers just won't be called in this configuration.
"Claire" wrote:
Hi,
Is there any way to query whether or not a keyboard is attached to a pc
please?
My software will be running on XP/Vista systems in an environment where
there may or may not be a keyboard/mouse attached to the system.
thank you