Solved

Multiple Keyboards

Posted on 2004-10-12
13
415 Views
Last Modified: 2010-04-23
I am planning to write an application involving a rewired keyboard plugged in to a laptop, to enable a large number of dedicated function keys, simplifying the user interface.

Is there anyway to differentiate between input from the inbuilt keyboard and the rewired external one?  

Or as a secondary solution, is there anyway to temporarily disable the internal keyboard when I go into the phase of the program which I'm designing the external keyboard for?
0
Comment
Question by:zac_twidale
  • 4
  • 3
  • 2
  • +2
13 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 12294556
0
 

Author Comment

by:zac_twidale
ID: 12295505
Still trying to make sense of the first link, (a lot of unfamiliar stuff in there).  But the second link goes nowhere.
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12295879
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 48

Expert Comment

by:Mikal613
ID: 12297279
thanks ;) /
0
 
LVL 27

Expert Comment

by:planocz
ID: 12299675
One way is to intercept the keypress's with this sample....

   Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean
        Const WM_KEYDOWN As Integer = &H100
        Const WM_SYSKEYDOWN As Integer = &H104
        Dim e As System.EventArgs

        If ((msg.Msg = WM_KEYDOWN) Or (msg.Msg = WM_SYSKEYDOWN)) Then
            Select Case (keyData)
                'The Number Key Pads, 10 key and regular 0-9 keys
            Case Keys.NumPad0, Keys.D0
                    'Do something
                Case Keys.NumPad1, Keys.D1
                    'Do something
                Case Keys.NumPad2, Keys.D2
                     'Do something
            End Select
        End If
        Return MyBase.ProcessCmdKey(msg, keyData)
    End Function
0
 

Author Comment

by:zac_twidale
ID: 12303605
I'll go through the suggested solutions in detail, but they seem to address various means of intercepting keyboard input (which I can do).  They don't look at how to differentiate between which keyboard the input came from.

And those that look at disabling the keyboard don't seem to address how to disable one keyboard, but not the other.
0
 
LVL 18

Assisted Solution

by:armoghan
armoghan earned 200 total points
ID: 12304919
0
 
LVL 27

Expert Comment

by:planocz
ID: 12307025
you said "rewired external one". I think the best route to go would be to leave the key board as a standard key board
and just intercept the input keys  with the code I gave you.
0
 
LVL 27

Expert Comment

by:planocz
ID: 12615860
Hi zac_twidale,

Have you worked thru this problem?
0
 

Author Comment

by:zac_twidale
ID: 12620733
Nope, not yet.  armoghan's link helps a little, and I have got hold of the DDK, but am still a long way from making sense of it.
0
 
LVL 6

Accepted Solution

by:
The_Biochemist earned 300 total points
ID: 12776072
Slight sidetrack from your question...

Have you ever heard of a concept keyboard? A4 or A3 sized devices with upto 256 programmable touch sensitive pads. They are generally used for students with learning difficulties but are also used for many other solutions and are quite cheap too.

I had to create a user friendly professional video editing suite and found that concpet keyboards are perfect for adding extra keyboard type functionality to an application.

http://assistive.traxsys.com/staticproduct.asp?strAreaNo=2001_4&intElement=328

just a thought
0
 

Author Comment

by:zac_twidale
ID: 12779220
Sounds like a pretty good lead.  Thanks for that
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question