Results 1 to 3 of 3

Thread: Detect shift lock en num lock state

  1. #1

    Question

    Hallo,

    Weet er iemand een oplossing voor volgend probleem?

    Ik had graag in mijn programma informatie gegeven over
    het al dan niet ingedrukt zijn van de shift lock en num lock.(ref office)

    Ik kan wel gebruik maken van de VK_ toesten detectie, maar ik had graag de staat willen detecteren bij het starten van mijn programma.

    bedankt,

    Geert

  2. #2
    Old Navigator Matthijs's Avatar
    Join Date
    Mar 2001
    Location
    Ede, NL. Delphi: Delphi 7/2005 :). Matthijs schrijf je Matthijs
    Posts
    2,199
    Het zou met
    Code:
      if Odd(GetKeyState(vk_NumLock)) then ShowMessage('NumLock is aan!)
                                      else ShowMessage('NumLock is uit!');
      if Odd(GetKeyState(vk_Capital)) then ShowMessage('CapsLock is aan')
                                      else ShowMessage('CapsLock is uit');
    moeten kunnen!

    What's in a sig?

    Would my posting be less valuable if it didnot have a sig? (Vrij naar William S.)

    Let op de kleine lettertjes. For all postings: e&oe!
    This program performed an illegal function, the police are on their way

  3. #3

    Thumbs up


    Bedankt,

    dat was wat ik nodig had,

    Geert

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. snelle shift methode voor Int64
    By Anoniem in forum Algemeen
    Replies: 6
    Last Post: 01-May-04, 11:07
  2. SendMessage CTRL+ENTER naar Edit
    By AniMatrix in forum Algemeen
    Replies: 10
    Last Post: 12-Apr-04, 22:18
  3. Aansturing spel
    By Chiel in forum Algemeen
    Replies: 28
    Last Post: 19-Mar-03, 09:54
  4. bestand openen en dan.....
    By The Master in forum Algemeen
    Replies: 20
    Last Post: 31-Aug-02, 12:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •