Click here to Skip to main content
Licence 
First Posted 21 Mar 2000
Views 481,522
Bookmarked 93 times

Onscreen Keyboard

By | 21 Mar 2000 | Article
An onscreen keyboard for pen computing and touchscreens
  • Download source files - 143 Kb

    Sample Image - OnscreenKeyboard.gif

    I needed a simple onscreen keyboard to interface with a touch / pen based computer that I bought through an online auction. Although Microsoft supplies one with its Pen Extensions 2.0 it only works win Win95 and I wanted to use NT.

    All of the available onscreen keyboards I found were either too expensive, or they were only designed to operate with 3.1 and 9x so (of course) I decided to see if I could make one. Along the way I learned a little about how the keyboard is handled, and the thread keyboard maps.

    Included with this article is a working, but simple, onscreen keyboard. I submitted it mostly as an example of the methods:

    • AttachThreadInput
    • keybd_event
    • VkKeyScan
    • GetKeyState

    This program has one nasty limitation, and that is that it "flashes" since it does not prevent the changing of focus to itself when clicked, and then back to the target window when the keystroke is generated. If someone wants to tackle that one please feel free ;-)

  • License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    About the Author

    Randy More



    United States United States

    Member



    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    QuestionHealth Pinmemberkate19831:48 21 Feb '12  
    QuestionGood sample PinmemberBaoSaka5:45 27 Jun '11  
    GeneralMy vote of 5 PinmemberChandru08020:01 21 Jun '11  
    Generalcan't run the source code manually Pinmembernoordiana4:38 21 Oct '10  
    GeneralOn Screen Keyboard - Korean PinmemberMember 31486278:55 2 Mar '10  
    Questiononscreen keyboard Pinmembersaranshs5:53 24 Oct '09  
    QuestionChording-like Keyboard like Onscreen Keyboard Pinmembermike spano10:33 5 Mar '09  
    Generaldisabled keyboard Pinmemberphantoms3315:42 16 Oct '08  
    QuestionFor Vb.NET 2005 .. 2.0 Pinmemberferozasi4:53 25 Mar '08  
    GeneralTo stop flashing PinmemberVibes18:04 8 May '07  
    GeneralRe: To stop flashing Pinmembercxcui9:28 5 Jun '07  
    GeneralRe: To stop flashing PinmemberMember 364201617:53 30 Jun '09  
    Questionvirtual keyboard using java PinmemberMember #37203626:47 6 Mar '07  
    AnswerRe: virtual keyboard using java Pinmemberakash21472:41 13 Jul '10  
    QuestionDaniel Pinmemberotaku1922:56 1 Feb '07  
    QuestionI have a problem with the address bar Pinmemberarrodenas10:35 4 Nov '06  
    AnswerRe: I have a problem with the address bar Pinmemberstorein23:57 19 Dec '06  
    GeneralRe: I have a problem with the address bar Pinmemberarrodenas8:33 2 Jan '07  
    GeneralFixed the ESC key Pinmembercfo5ter12:31 5 Sep '06  
    GeneralRe: Fixed the ESC key Pinmemberstorein14:58 17 Dec '06  
    QuestionONSCREEN KEYBOARD Pinmemberraeesa3:47 4 Sep '06  
    GeneralRe: ONSCREEN KEYBOARD Pinmemberbrahmma7:55 9 May '07  
    The code seems pretty straight forward to me. What exactly is that you do not understand?
     
    "Hmmm, I wonder if this guy knows about the VCF?
    That's what all the cool programmers are using according to Jenna Jameson."
    - Jim Crafton.

    QuestionCan we change initial size? Pinmemberpeterpecker5:43 10 Mar '06  
    QuestionRe: Can we change initial size? Pinmembergidtitan10:06 21 Mar '07  
    Generala better Onscreen Virtual keyboard PinmemberIlanbm2:11 1 Mar '06  

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Mobile
    Web01 | 2.5.120529.1 | Last Updated 22 Mar 2000
    Article Copyright 2000 by Randy More
    Everything else Copyright © CodeProject, 1999-2012
    Terms of Use
    Layout: fixed | fluid