Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trapping keys in VB Application

Status
Not open for further replies.

ishwarjindal

Programmer
Nov 10, 2002
9
IN
I want to trap the key the moment it is pressed from Keyboard into my VB Application. It doesn't matter whether VB application has focus or not. e.g. if ms-word is active window and my VB application is not active even then what ever user presses for ms-word, should be first made available to my application.
 
There has been a lot of discussion on this topic here in tek-tips.. try making a search

All the best All the Best
Praveen Menon
pcmin@rediffmail.com
 
Unfortunately, some good threads on the subject have been removed.

Do a search on GetAsyncKeyState (works on all systems, capturing keystrokes and mouse clicks, but simulated keystrokes, such as with the SendKeys function, will not be captured) , and if you are only concerned with doing this on an NT system, them check out strongm's suggestion under thread118564 [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 

>them check out strongm's suggestion under thread118564

Sorry, forgot the forum ID:

...then check out strongm's suggestion under thread222-118564 [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
>Unfortunately, some good threads on the subject have been removed

Quite so. Slightly reduces the value of these forums if complete threads get arbitarily removed. I appreciate that there is a necessity to remove red-flagged items, but it would be better if it was just the red-flagged stuff that went, rather than the entire thread.
 
strongm:

This usually happens when the question was wrong from the start (school work question), or the user has been banded from TT, and the account has been removed.

I brought this point up with Dave Murphy at TT already. (if serveral answers had been given already or a discussion is already underway).
He stated that the point I had made was good.
If something changes, or can be changed, may be another issue. It is a code change that may have to be added somewhere to the pile of existing chores which I assume are probably overloading the staff already.

Maybe if they got more donations, (especially from companies - or individuals - who are really profiting, or making a profit I should say, from a forum like this when their workers come here looking for answers), then more would be able to get accomplished.

Same problem exists when a forum is removed because of lack of activity.
Last one which disappointed me was the VB Professionals forum. Alot of good info there is now gone...and any references made to it, whether in another TT forum, a FAQ, or even another internet site.

[/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
>...or the user has been banded from TT...

The one who started the thread I meant [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top