Article View: borland.public.cppbuilder.nativeapi
Article #4916Re: Turn NumLock On
From: Remy Lebeau (TeamB)
Date: Sun, 13 Nov 2005 08:06
Date: Sun, 13 Nov 2005 08:06
14 lines
1342 bytes
1342 bytes
"Pedram" <irbus@remove-me-bonbon.net> wrote in message news:4376f1d0@newsgroups.borland.com... > I want my software to check the NumLock > if its ON, ok no problem but if not, turn it ON !! > Please help me to do it, thanks all friends :-) Look at GetKeyState() anf GetAsyncKeyState() for checking the current state, and SendInput or keybd_event() for changing the state (keybd_event cannot toggle the state of the NUM_LOCK key on Win9x/Me). Gambit
Technical Details
Message-ID:
<4376f3d6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4376f1d0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2272dbc04c7e50db X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4376f1d0@newsgroups.borland.com> Subject: Re: Turn NumLock On Date: Sun, 13 Nov 2005 00:06:18 -0800 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 206.107.212.239 Message-ID: <4376f3d6@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1131869142 206.107.212.239 (13 Nov 2005 00:05:42 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail