Solved

NUMLOCK - CAPSLOCK - SCROLLLOCK

Posted on 1998-12-20
6
291 Views
Last Modified: 2010-04-04
How can i turn on and off in my program and when user turn on numlock or capslock i will show it on status bar "CAP" - "NUM" like in office97

Thanks....
0
Comment
Question by:emiltor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:ItsMe
ID: 1352146
Look in "Available for 10% of their original value " "How do I set Numlock off ?"
You find the code for turning on/off num etc. You could find out if one of the keys
is pressed by using a timer.
0
 

Author Comment

by:emiltor
ID: 1352147
I need example code.......
i have a program with one statusbar when i click capslock or numlock i will set text to statusbar if the numlock is on the text should be "CAP" or for numlock "NUM" in the statusbar

thanks....
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 30 total points
ID: 1352148
for capslock  write:
keybd_event(VK_CAPITAL,0,0,0);
keybd_event(VK_CAPITAL,0,KEYEVENTF_KEYUP,0);
for numlock write:
keybd_event(VK_NUMLOCK,0,0,0);
keybd_event(VK_NUMLOCK,0,KEYEVENTF_KEYUP,0);
for scrolllock write:
keybd_event(VK_SCROLL,0,0,0);
keybd_event(VK_SCROLL,0,KEYEVENTF_KEYUP,0);
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:jecksom
ID: 1352149
Hi emiltor!

check http://www.fh-merseburg.de/~tietz/files/dt0596.txt , find 'numlock' word in
this document there is a complete source of key tracking/seting .

Best Regards,
 Jecksom.

0
 

Author Comment

by:emiltor
ID: 1352150
Great!!!!! thanks
0
 

Author Comment

by:emiltor
ID: 1352151
Ronit gets the point
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question