Carl Reynolds wrote:
> 
> Hmmm, doesn't work for me.  From the help,
> 
> >SetKeyboardState
> >
> ><snip>
> >
> >Remarks
> >
> >Because the SetKeyboardState function alters the input state of the calling
> thread and not the global input state of the system, an application cannot
> use SetKeyboardState to set the NUM LOCK, CAPS LOCK, or SCROLL LOCK
> indicator lights on the keyboard.
> 
> Seems fairly definitive.  What have I missed?

All I can say is that it works here (under 98 and NT).  This code is in
use in a live program that several people use to check their email.  If
there is new mail the lights flash.

-- 
Glen Boyd               <[EMAIL PROTECTED]>
Programmer              Napier City Council
Private Bag 6010, Napier, NEW ZEALAND
Phone: +64-6-8357579    Fax: +64-6-8357574
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to