Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1000771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:33:57+00:00 2026-05-16T07:33:57+00:00

I just discovered that the caps lock and shift key (and probably some more

  • 0

I just discovered that the caps lock and shift key (and probably some more of the keys) affect all of the keyboards connected to the computer. (one of the hazards of testing a program that I coded, I only have two hands so it took me ages to realize a problem like this)
So separating the keystrokes is fine, but the shift/caps locks drives everything crazy (When one user shifts to capitalize, all users’ input at that moment are capitalized as well)

Can I capture Capslock and Shift keypress in FormKeyPress?
Anywhere else for that matter?
Can I save a Shift keypress? (so I can properly apply the ‘shift’ to the respective user input)

Any other suggestion to solve this problem is welcome as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:33:57+00:00Added an answer on May 16, 2026 at 7:33 am

    to check if shift ley is down try this:

    if GetKeyState(VK_SHIFT)<0 //tests if shiftkey is down
     then ShowMessage('shift key is down'');
    

    and to detect if caps lock is on try this:

    if Odd(GetKeyState(VK_CAPITAL)) //tests if caps lock is on
    then showmessage('caps lock is on');
    

    and if you want to check status of both shift and capslock :

          if Odd(GetKeyState(VK_CAPITAL)) then 
                if GetKeyState(VK_SHIFT)<0 then 
                showmessage('capslock is on and shift key is down too')
               else
              showmessage('capslock is on but shift key is NOT down');
    

    getkeystate is a windows api function you can read more about it here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just discovered that Except() will remove all elements in the second list from
I just discovered that %ws was common knowledge (to some), for formatting unicode strings,
I just discovered that some parts of the code I am working on incorrectly
I'm having some trouble. I just discovered that you can control vimeo with js,
To my amazement I just discovered that the C99 stdint.h is missing from MS
I've just discovered that Oracle lets you do the following: SELECT foo.a, (SELECT c
I have just discovered that if generating assemblies via Reflection.Emit, the .NET framework keeps
I only just recently discovered that Visual C++ 2008 (and perhaps earlier versions as
I just discovered, quite by accident, that this seems to work: Public Interface Ix
I have just discovered the nifty unhandled exception handler for cocoa-touch. Now that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.