Solved

Blinking Num LED

Posted on 1998-12-18
7
389 Views
Last Modified: 2010-04-04
Hi! I want to make the Num Led blinking. How do I switch
Num on/off ?

Regards
ItsMe
0
Comment
Question by:ItsMe
  • 3
  • 2
  • 2
7 Comments
 
LVL 3

Expert Comment

by:williams2
ID: 1351754
What Num LED?
0
 

Author Comment

by:ItsMe
ID: 1351755
The lamp on the keyboard which is turned on/off when you press the "Num" key.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1351756
Hi ItsMe,

try these :

procedure TMyForm.Button1Click(Sender: TObject);
  Var
    KeyState  :  TKeyboardState;
  begin
    GetKeyboardState(KeyState);
    if (KeyState[VK_NUMLOCK] = 0) then
      KeyState[VK_NUMLOCK] := 1
    else
      KeyState[VK_NUMLOCK] := 0;
    SetKeyboardState(KeyState);
  end;

Regards, Zif.

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 3

Expert Comment

by:williams2
ID: 1351757
I guess that should answer your question :-)
0
 

Author Comment

by:ItsMe
ID: 1351758
That doesn't work but I've found out that it works when I send a Keyboard Event Message.

0
 

Author Comment

by:ItsMe
ID: 1351759
Uuups, I wanted to accept it. :-) Please send a comment as answer so that I can accept it.
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 10 total points
ID: 1351760
ok.
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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

14 Experts available now in Live!

Get 1:1 Help Now