|
-
Sep 28th, 2006, 09:37 AM
#6
Re: ASCII Command
If the remote is a wedge (the driver simulates a keyboard), just write a short piece of code to see which keys produce what codes:
VB Code:
Private Sub Form_Activate()
Me.KeyPreview = True
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Debug.Print KeyCode & " in KeyDown"
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
Debug.Print KeyAscii & " in KeyPress"
End Sub
Run the program, press keys and watch the Immediate window.
If the remorte isn't a wedge, you'll have to get the specs on the remote to see how to read the button presses, then do pretty much the same thing - debug.print the inputs you get.
BTW, arrow keys, Pg (up and down) keys, etc. (non-printing keys) don't trigger the KeyPress event since they don't produce ASCII codes, they trigger the KeyDown event and produce keycodes.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|