Important alert: (current site time 7/16/2013 1:06:56 AM EDT)
 

winzip icon

A Graphical Vurtual Keyboard Using DirectX

Email
Submitted on: 1/23/2000
By: Marc Newlin 
Level: Intermediate
User Rating: By 15 Users
Compatibility: VB 5.0, VB 6.0
Views: 47437
 
     UPDATED!! Virtual Keyboard. Looks Like A Normal Keyboard. When You Press A Key On Your Normal Keyboard, The Corresponding Key On The Virtual Keyboard Lights Up!! Every Key Is Independent (Left Shift Is Different From Right Shift Etc..) Only 23 Line Of Code!!!!!! Senses Every Key, Even The Pause Key If You Press It Fast Enough. Must Have DX7VB.DLL (Downloadable In The Tutorials Section.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

1/23/2000 3:29:23 PMThe Quick Brown Fox Jumps Over The Lazy Dog

Awsome Code!!!
(If this comment was disrespectful, please report it.)

 
1/23/2000 6:09:44 PMDerek Hall

I just noticed your post on my submission where you said you like it and that you were going to create this program, So who's copying who.... I did the timer free version. Why use a timer when there is no need. Why check all 105 keys every 10ms?
(If this comment was disrespectful, please report it.)

 
1/23/2000 6:14:32 PMMarc Newlin

That comment about the layout being aroud for years is COMPLETE BS. I created that a few months ago and find it rather comical that attempt to degrade my programming capabilities by accusing my of plagerism. And I use the timer so that i can use DirectX to sense the left and right shifts and alts as different keys. There is no other way to do that without doing a keyboard hook.
(If this comment was disrespectful, please report it.)

 
3/6/2000 4:19:45 PMQuentin

I think that this code pretty good, keep up the good work
(If this comment was disrespectful, please report it.)

 
4/17/2000 2:26:55 AMFrancisco

Really, I dont Talk (Write) English very well, but this program Is Good(Very Good), Happynes for you..
(If this comment was disrespectful, please report it.)

 
5/9/2000 9:24:00 PM\/îÞè® Tè¢.

Where exactly can I download direct X 7?
(If this comment was disrespectful, please report it.)

 
8/3/2000 6:47:15 AMArch_koven

The Direct X drivers -> http://www.microsoft.com/downloads/release.asp?ReleaseID=16819The SDK = 122 MB! -> http://msdn.microsoft.com/downloads/default.asp?url=/code/sample.asp?url=/msdn-files/027 /000/229/msdncompositedoc.xml
(If this comment was disrespectful, please report it.)

 
8/3/2000 6:49:30 AMArch_koven

The Direct X drivers:
http://www.microsoft.com/downloads/relea
se.asp?ReleaseID=16819 The SDK = 122 MB!:
http://msdn.microsoft.com/downloads/defa
ult.asp?url=/code/sample.asp?url=/msdn-f
iles/027/000/229/msdncompositedoc.xml

(If this comment was disrespectful, please report it.)

 
8/3/2000 6:50:33 AMArch_koven

Sorry, but this *peep* doesn't work
(If this comment was disrespectful, please report it.)

 
9/9/2000 3:32:37 AMJason Monroe

Very interesting code indeed... However one small problem on my system, the "s" key does not properly highlight.


(If this comment was disrespectful, please report it.)

 
10/14/2000 5:45:13 AMFeras

I'm not a DirectX programmer though I can't evaluation this project, But for me it looks very good.
It seams a bit slow and flicker that's because you'r changeing the color of all the keys, If we change the CheckKey prosedure like the folowing it will be faster and more sensetive:

Private Sub CheckKey(keynum As Long)
If directistate.KEY(keynum) <> 0 Then
KEY(keynum).BackColor =
(If this comment was disrespectful, please report it.)

 
10/14/2000 5:46:01 AMFeras

I'm not a DirectX programmer though I can't evaluation this project, But for me it looks very good.
It seams a bit slow and flicker that's because you'r changeing the color of all the keys, If we change the CheckKey prosedure like the folowing it will be faster and more sensetive:

Private Sub CheckKey(keynum As Long)
If directistate.KEY(keynum) <> 0 Then
KEY(keynum).BackColor = &HFFFF&
ElseIf KEY(keynum).BackColor = &HFFFF& Then
KEY(keynum).BackColor = &H8000000A
End If
End Sub

about the "s" kay that is because the "31" number is missed from the text file.
(If this comment was disrespectful, please report it.)

 
10/20/2001 6:12:11 AMkahhaw

Wow! Only 23 lines of codes.
Looks like I can learn DX7 in double quick time.
Unfortunately, an error occurred while opening the
(If this comment was disrespectful, please report it.)

 
10/20/2001 6:19:38 AMkahhaw85

Oh! I get it now.
I should add vkb.frm to project1.prj myself.
Sorry Marc.
(If this comment was disrespectful, please report it.)

 
11/19/2001 3:51:07 AMKain

Does everyone on this site freakin whine about plagerism? this is planet source code, people learn from you, i mean god in making a compiler they must test every function there is and different routines of using them, your plagerising microsoft then? honestly, if you dont want people to use yoru code dont paste it, besides, if you see a program and use that knowledge to make something, this is not copying, thats how you learn, no one magically learns a programming language without docs, or any help files whatsoever
(If this comment was disrespectful, please report it.)

 
4/24/2002 4:15:10 AMM e g a

Amen.
(If this comment was disrespectful, please report it.)

 
4/25/2002 4:48:51 AMPio

well i downloaded both of your (Marc and Derek) projects and i would have to say Marc's worked for me the best ...

I play to use what i learned from your code to complete my SSP - SubSpace Player program i have been working on for 2 Months or so. Thank you for posting this example.

- Pio
(If this comment was disrespectful, please report it.)

 
8/18/2002 2:43:45 AMGREAT CODE!!!

Why don't you have all the letter keys in lower case and when you hold down the shift or when you press caps lock they turn into Uppercase.
Good code, five planets from me.
(If this comment was disrespectful, please report it.)

 
4/11/2003 4:08:38 PM

good program!

(If this comment was disrespectful, please report it.)

 
8/28/2003 7:57:02 AM

That's a cool one! But the "S"-key doesn't work :D
(If this comment was disrespectful, please report it.)

 
5/31/2005 8:07:49 AM

Good coding quick and easy. The s key doesnt work as a few have commented but if you check the list.txt file you will find that 30 is in twice the dx key for s is 31 so change one to 31.
(If this comment was disrespectful, please report it.)

 
10/30/2005 5:29:22 AMThank you.

it is a Good
(If this comment was disrespectful, please report it.)

 
12/25/2007 3:30:48 AMAndrew Robert Cook

if you loaded the numbers into an array first then used a for next loop it would be faster, other than that, great code
(If this comment was disrespectful, please report it.)

 
2/12/2011 4:41:24 AMmadroureh

Also open the list.txt & add a line with number 87 before the 88 in order to make the F11 work.
Thanks for your code

(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.