Solved

Blinking Num LED

Posted on 1998-12-18
7
388 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

11 Experts available now in Live!

Get 1:1 Help Now