Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keyboard detection

Status
Not open for further replies.

milosd

Programmer
Mar 2, 2000
9
SI
Can anybody tell me how to detect if caps lock,num luck and scroll lock are active and how to do it in c++.<br><br> Thanks
 
milosd,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;It depends on what OS you are using. In DOS the functions are<i> _bios_keybrd</i> or <i>bioskey</i>. For Windows the function is <i>keybd_event</i>. <br><br>&nbsp;&nbsp;&nbsp;&nbsp;If you are interested in one of the DOS functions, post a request on this thread and I'll post some more information. If you are looking for the Windows function, your best bet is to go to <A HREF=" TARGET="_new"> and look at their FAQ (I think it is #77). They are fairly involved so I won't put the info here unless you request it.<br><br> <p>James P. Cottingham<br><a href=mailto:main@ivcusa.com>main@ivcusa.com</a><br><a href= Veneer Co., Inc.</a><br>All opinions are mine alone and do not necessarily reflect those of my employer.
 
I can provide programs for DOS . To check all the keyboard entries<br>If you need , let me know,<br><br>Thanx<br>Siddhartha Singh<br><A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A><br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top