Re: Querying presence of a keyboard




"Peter Bromberg [C# MVP]" <pbromberg@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in message news:B2B836FC-D350-46B9-88EF-46BCF0DFA042@xxxxxxxxxxxxxxxx
Forgive me for sounding simplistic, but if there is no keyboard / mouse
attached to a machine running your program then how do you propose to get
user input?
The "sounds" like the classic joke,

"Keyboard not found. Press F1 to continue."

Knowing there is no keyboard... might help prevent such paradoxes. A
timeout could be substituted.


-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com



"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





.



Relevant Pages

  • Re: Docx converter doesnt work on xp64/Word2003
    ... Bring that same file to another machine running xp32 and Off2003, ... > here and other boards (e.g. re-install converter, re-install office, ... > forced to use the mouse more than keyboard. ... > deep) using the keyboard (alt-this, alt-that, arrow keys, etc...). ...
    (microsoft.public.word.application.errors)
  • Re: Keyboard Shutdown Key
    ... modify to "Do Nothing". ... solution would be to use a keyboard that does not ... have a shutdown key. ... good for a machine running a critical application! ...
    (microsoft.public.win2000.general)
  • Re: codecvt.cc:39: error: ISO C++ forbids declaration of `_RWSTD_NAMESPACE_BEGIN with no type
    ... There is problem between his chair and his keyboard. ... You may want to peruse the message and thread:http://groups.google.com/group/comp.sys.hp.hpux/msg/a6e95852929b5818 ... In order to understand recursion you must first understand recursion. ... codecvt.cc (which is a Rogue Wave file) ...
    (comp.sys.hp.hpux)
  • Re: Querying presence of a keyboard
    ... "Claire" wrote: ... Is there any way to query whether or not a keyboard is attached to a pc ... My software will be running on XP/Vista systems in an environment where ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: codecvt.cc:39: error: ISO C++ forbids declaration of `_RWSTD_NAMESPACE_BEGIN with no type
    ... You need to find the appropriate forum for them. ... There is problem between his chair and his keyboard. ... You may want to peruse the message and thread: ... In order to understand recursion you must first understand recursion. ...
    (comp.sys.hp.hpux)