com >> how to control two or more keys stroke at a time in VB

by QW5zYXJfTWVobW9vZA » Tue, 15 Nov 2005 04:39:03 GMT

I assign different keys for different progress bars to increase or decrease
the values. when I press two or more keys at a time then the values of
progress bar would be change for those keys which were pressed but it give
value change only for one key.Plz Suggest software control solution


com >> how to control two or more keys stroke at a time in VB

by Ken Halter » Tue, 15 Nov 2005 05:31:01 GMT






When you detect a key you're interested in, you can use the Windows API to
see which other keys are pressed... here's a sample.

Display State of All Keys
http://www.vbsight.com/Code.htm #KeyStates

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..





Similar Threads

1. VB Script - two keyboard keys at the same time in a script

2. vb.net how to send key strokes to another app

I have to enter a lot of test data via an application. 

I was wondering if I could automate it by setting up anopther app, as I don't have the code to the app myself. 


3. Two Keys pressed at the same time

4. Calling VBA Function with Key Stroke

I've tried searching the forum for this but I can't think of any keywords 
that seem to bring up what I'm looking for, so I'll start a new post.

I'm wondering if there is a way to run a VBA function with a keystroke. For 
instance, I'd like to be able to press Control+Shift+T or something and have 
some code execute. Is this possible?

5. Sending key strokes to a process - VB.Net

6. Send key stroke command from one pc to another on the network

Hi

don't know if this is the best forum or if my request is possible...hope 
someone out there can suggest a pointer for me.

I want to to be able to send a keyboard keystroke (specifically the 
"spacebar") from one PC on our network to another programatically.

My scenario is this

PC "A" is executing an application that displays a series of Powerpoint 
presentations from a nominated directory. This PC is not accessible to users. 
The application to run the presentations was devloped in VB.net 2003.

PC "B" excutes an application that allows users to see the list of 
presentations that are being displayed on "A" along with various functions 
that allow the user to add, edit and move the presentations that are used by 
"A".

The problem : occasionally, a presentation on "A" freezes and does not 
advance to the next slide, despite the fact that all presentations have 
automatic transitions. In that situation the only way to "kick start" "A" is 
to get to the PC and either click the mouse or hit the space bar.

I'd like to be able to include a button in the app on "B" that, when 
pressed, would in effect send the keyboard "space bar" command to "A" and 
thus effect the "kick start"

Am I asking too much? Presently this is done via a VNC session that requires 
Tech Support call out especially outside of office hours and I'm looking for 
a simpler solution.

Appreciate any help or pointers

Regards

Michael Bond

7. Capturing Enter key stroke - VB.Net

8. Send Key Strokes

Can anyone point me in the direction of a resource to help me send 
keystokes please?

I pretty proficient in VBA but VB Script is something new for me.  I 
need to get rid of an alert message (the application your about to open 
may contain malicious code etc.) without the need for the user to hit 
the open button.  I'm opening an Access D/B (containing macros)from a 
hyperlink on a intranet page and don't want the user to see the message.

TIA