Solved

NUMLOCK - CAPSLOCK - SCROLLLOCK

Posted on 1998-12-20
6
282 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now