Reading KeyPress from 2nd USB Keyboard -
Greetings all.
I've had a chance to read through a lot of great information; you guys are doing a great service for the community.
I'm running Windows XP (SP2) with VB 6. I have 2 USB keyboards (Logitech keyboard as my primary keyboard and a Cypress keyboard as a secondary, I have all the device descriptor information). What I'd like to do is dedicate the second keyboard to perform as a rather large macro pad.
What I'm looking to do is, via calls in VB, isolate the input from just the second keyboard (I imagine I can open the USB port to that keyboard by using its unique ID?) and grab the KeyPress events from it.
If anyone has a good link (or two) on how to open the USB port and read the keyboard data from it (the most complicated input would probably be ALT-<something> or CTRL-<something>) I would greatly appreciate it. A tutorial would be even better, but I think I can figure out most code if I can get my hands on it.
If I'm not quite making sense, feel free to tell me such and I'll try and clear it up a bit.
Thanks in advance, and thanks again for being here! =)
Reading KeyPress from 2nd USB Keyboard -
Greetings all.
I've had a chance to read through a lot of great information; you guys are doing a great service for the community.
I'm running Windows XP (SP2) with VB 6. I have 2 USB keyboards (Logitech keyboard as my primary keyboard and a Cypress keyboard as a secondary, I hav
on screen keyboard -
Hello.
I am trying to make an on-screen keyboard.
The idea is:
The user has the keyboard on screen.
When a key on the screen keyboard is pressed - the appropriate key press is sent to the control in focus as if it came from the real keyboard.
This MUST happen without the focus ch
keypress is not behaving -
I have a form which has 3 VSFlexgrid controls . I need to capture the keypress event of the form to run some methods. I have the form's key preview set to true.
My problem is , each key is captured twice in the keypress event . In short , when u press a key the keypress runs twice.
KeyPress for Keyboard Right click (RESOLVED) -
Hello I am trying to Trap for the right click option on the keyboard to be pressed but I don't know the KeyCode number to watch for. Does anyone have a sub sample for if the right click option on the keyboard is selected then it will perform a simple function even just a messagebox or
Keycode values -
Hi,
I'm trying to make a keylogger using the api GetAsyncKeyState in a timer control. I need a way to tell what symbol or character should appear on a keypress. I can make it work for keys like 1,2,a, etc... But not for ones that need shift to be pressed. The way i'm doing this no
key hold seems easy, but isn't -
Hi
I having problems implimenting a key hold event. Basically what I want to do is distinguish between pressing a keyboard key and holding a keyboard key. Example press X to fire, hold X to exit (bad UI but illustrates the point!)
At the moment I have a control that is looking
Hi there can someone Tell me how can i capture keyboard KeyPress... -
my problem is that i looking for A function who can tell me which
key was presses on which form.
I not looking for text1_KeyPress metod I'm lookink for a general keyPress.
for EX: when the User Press RightArrow Key then Data On Specipic Form will Move Next
thank
form1_keypress() -
hi, everyone here
with my startup form in my project, all codes in the form's keypress(or up, down) event are executed. but once i have any other control(s) on the form, nothing happens when i press my keyboard. i added getfocus, setfocus stuffs just 2 make sure the form is having the
Does VB has "In" statment -
Instead of writing all the matches like this....
If Keypress = 13 or Keypress = 32 or Keypress = 66 or Keypress =... Then
Is there a way to simplify the above... for example, does VB support this:
If Keypress IN (13, 32, 66... etc) Then
I check the MSDN, looks like there i
Need a Virtual Keyboard, how difficult is this -
I’m working on a KIOSK (Touch Screen) application and need a virtual keyboard for the user to enter their own comments in response to some events.
What would be the easiest way to do this? Is there any .net components available, do I need to code all the Keyboard keypress events?
simplify key press -
hi:
I have this code for walk throught my textboxs..
Like you see I have 5 textbox...
The question is...In the instruction handles we can group the textboxs?Who?
Code:
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
Not Resolved -> KeyDown or KeyPress Not always working -
I have a MSHFlexGrid, but the KeyPress or KeyDown methods don't always work.
E.G. You can see that the grid has focus. But when you press the Insert Key, on the keyboard, it doesn't always trigger the KeyDown Event, it does most of the time but not always. Same if the grid has focu
[2005] Hook Keyboard for one Application -
What im trying to do is hook the keyboard in order to determine what keys are being pressed, and then raising the specified function with the keypress.
However, currently im using a low level keyboard hook. This hooks the system globally, every application.
What i want to do is jus
KeyBoard Press -
I know how can i take a key from my keyboard
with keypress property ....
How can i set a key to pressed without press any key of my keyboard.
Like how can i press key "Enter" or key "Tab" from my aplication.
Thanks...
Treeview Keypress Bug -
I have setup a Treeview, and have given the form the KeyPreview = True flag.
I want to intercept presses of ( and ) on the keyboard, in order to change the treeview accordingly.
For some strange reason KeyPress doesnt seem to be fired on the pressing of shift + a number, unless t
keylogger -
Right now, I'm working on a keyboard tracker and it is always top most and hidden. The problem now is to make the textbox in this program always active (in tracing the keyboard inputs) even when other programs are the active program (i.e. firefox.exe). Is there a way to do that?
cur
kEYPRESS -
Hi all,
I writing a program for my daughter, to help her along in advance spelling, while making it enjoyable.
I have a form which shows the word for x amount of seconds, then a second form appears with a timer asking for the word to be spelled.
(Here is where I'm stuck)
I'
<resolved> Keypress -
Hello ppl
Can anyone suggest a way to extend the function of keypress beyond specific contols?
If not possible can it be done with something else beside keypress?
What I mean is this: I need to make a little application that I can run in the backround on a PC and record or limit a
Where can I buy a US keyboard in the UK -
It's a simple question. It's a stupid situation. I'm in the UK. I do not like the UK keyboard. I am accustomed to the US keyboard. I want to use the US keyboard. I don't want reasons as to why I should use the UK keyboard.
(I'm aware of using Regional settings, but I want th
Datagrid Keyboard Events -
Took me a while to figure out how to lay out a grid. A lot different than the Datagrid control in VB6, but has some nice features. However, the keyboard events for the datagrid don't appear to be firing. I put breakpoints in both the Keydown and Keypress events, and the event procedure
Keypress -
Hello
How can i make it so that when a key on the keyboard is pressed a form will show?
How do I capture a keypress -
I want to see when a keyboard key or a mouse key is pressed for the whole system.
Is there anyway it's possible?
Using The Keyboard As An Input Trouble - Please Help -
While I am not a complete and total newbie at programming, i am having some issues in VB 2005. I want to use the keyboard as the input (pressing escape to bring up the menu and things like that) but i can not seem to figure out how to do that in 2005. I am trying to use the KeyPress
how to clear the Keyboard Buffer thro' VB -
Hi wizkids,
I want to clear the keyboard buffer, once the enter key is pressed, so as to avoid simultaneous Enter Key hits in a fraction of time.
I've my code in KeyPress event, which is continuously fired as many times as I've pressed the Enter key. In this case, the Enter key even
Fill in keyboard info into MSFlexGrid -
Dear VB users,
I am trying to fill a MSFlexGrid cel with my keyboard.
The only thing I can do is to fill this cel with the "KeyPress event"
Is there a more easier way to fill a cell directly from the keyboad?
Is there a special property to do this??
Nice regards
<resolved> Extend the function of keypress -
Hello ppl
Can anyone suggest a way to extend the function of keypress beyond specific contols?
If not possible can it be done with something else beside keypress?
What I mean is this: I need to make a little application that I can run in the backround on a PC and record or limit
CTRL + C keypress on a Datagrid -
Hi,
I wish to capture the keypress event for a datagrid. I have added the handlers for the Keypress and Keydown for the textbox of each column. Problem is that the modular keys (Control, shift and ATL) are handled by the keydown and the 'C' key is handled by the keypress. How can i ge
The Delete Key -
Got a treeview on a form. Want to be able to Delete a node when the user presses the Delete Key. Have put some code in the KeyPress event of the Treeview. I am trapping the user pressing the Delete key using the VB constant vbKeyDelete.
This works fine for the Delete key in the numb
Keyup & KeyPress Bug (lets see the experts) -
Question 1 - VB 6.0 : BUG
If I use the KeyUP or KeyPress functions in VB for a Textbox
eg.
Private Sub password_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then
Msgbox ("Enter press")
End If
End Sub
When the message box appears, If I should
disable Keyboard input -
a PC has 2 input devices (Keyboard and Barcode Reader).
I just want to use Barcode Reader in the VB program.
Can we disable Keyboard input only in the VB program?
I have tried to set KeyAscii=0 in KeyPress event.
It can disable the Keyboard input
It also disable the Barcode R
Trap all keyboard events in application -
How do I trap all events of a key being pressed in my form, no matter which control has the focus? I have tried KeyUp, KeyPress etc. with KeyPreview on and off but the events never seem to fire. I have several PictureBox and several WebBrowser controls on the form, dunno if that affect
Keyboard Input Disables Problem -
We have an application written in Visual Basic 5 that runs great on Windows 95 and Windows 98. The problem is that now we want to change to Windows 2000 and after a short time of my users entering data keyboard input becomes disabled. This seems to happen when the NUM LOCK key is dow
Disabling keyboard -
Hi,
Can anybody suggest how to disable the whole keyboard? I don't want the client to give any input from keyboard. But, I want to use mouse. I want to make keyboard like its disconnected physically from CPU. Can anybody help me..
Thanking You.
[2005] How to Capture enter key in keypress -
i wanna caputre the enter key when pressed in the text box using the Keypress only.
I am able to work it out using the keydown or keyup func. but i m not able to do it using keypress.
Plz Help
Universal keyboard shortcuts -
I have a parent form that can call five other child forms at the press of buttons. I'm trying to find a way that I might be able to use keyboard shorcuts to activate these buttons, but have the shortcuts be usable on any form. For example, if I opened the F1 form, if I hit F2, the F1 f
fake keyboard -
My PC wont boot without a keyboard being attached (its an OLD PC!), one of those with a large round keyboard plug.
I don't want to have a keyboard attached to it so is there any way to make the machine think its got one when it hasn't?
I'm prepared to cut up / modify the keyboard
Slow keyboard wedge -
I am converting an appication from DOS to VB under Windows. However, the keyboard wedge (reading magstripes or barcodes) seems to respond much slower when running a Windows app instead of a DOS app. Any ideas?
Thanks in advance!
Keypress/Keydown/Keyup Events -
Hi again, I know this is probably very trivial, but I just can't figure it out! How do you hook keyboard events?? I am trying to hook a keydown, keyup sequence (similar to the way I am already using mousedown and mouseup), but it just doesn't catch keypresses? I set up a keydown eve
MDI, Menus - Impossible! -
I've got an MDI app in which I don't want any standard 'pull down' menus (File, Edit, etc)
I'm using toolbars for everything (don't ask).
I cannot use keyboard shortcuts to access the buttons or button functions on my toolbars(or can I?)
There's no "KeyPress" for MDI
Record and Playback User Macros (keyboard only) -
Want to allow users to record repeditive actions?
Here is an example to record and playback keyboard actions by the user, this could allow an office worker to have several standard form templates easily, for all areas of your application.
All they need do is start recording and t