English
Forum

NumLock-Button Show

 
If the NumLock-Button pressed , means the Ziffernblock active is had I gladly a Message. How can the on the Einfachsten employ ? - thanks in the ahead
 
05/07/06  
 




Rolf
Koch
Hi Horst
CompileMarkSeparation
Def GetKeyboardState(1) ! "USER32.DLL","GetKeyboardState"
declare state#

PROC NUMSTATE

    getmessage
    declare retstate&
    dim state#,256
    GetKeyboardstate(state#)

    if byte(state#,144) = 1

        retstate&=1

    else

        retstate&=0

    endif

    dispose state#
    return retstate&

ENDPROC

cls

while 1

    waitinput
    Numstate
    print &(0)

wend

 
05/07/06  
 



Hello Rolf

thanks !
 
05/07/06  
 




Rolf
Koch
Sicha immmaaa still
 
05/07/06  
 



now becomes but moreover genervt ! How can I over Programmtext of/ one Button a commands unterjubeln ? - in this special drop should The NumLock-Button by the Program - activate - pressed go. is the at all possible and if, think I, does it only over a Message - but which ????
thanks for each Denkanstoss
 
05/09/06  
 



-- trouble recognized - trouble gebannt - Have it self rausgefunden (one must only on the right place in the Profanhilfe search)

for any The it too interested here the Kurzcode:

$H windows.ph
CLS
~keybd_event(144, 0, 0, 0) Numlock
~keybd_event(144, 0, ~KEYEVENTF_KEYUP, 0)
NumLock becomes activate - light
WAITINPUT
~keybd_event(144, 0, 0, 1) Numlock
~keybd_event(144, 0, ~KEYEVENTF_KEYUP, 1)
Numlock becomes again deaktiviert
WAITINPUT
END

 
05/09/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

895 Views

Untitledvor 0 min.
ByteAttack08/30/15
Ernst03/02/15
Marcus Mayer09/12/11

Themeninformationen

this Topic has 2 subscriber:

unbekannt (4x)
Rolf Koch (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie