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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing keys in vb.met

Status
Not open for further replies.

aliinal

Technical User
Jun 26, 2001
104
TR
Hi,

I want to capture a special key combination even if my application has no focus.
This is exactly for a screen capture utility. Icon sits in system tray and onclick it captures screen and saves it according to the settings given.
This works fine bu if user wants to capture screen for example with start menu open, after clicking the icon in system tray, menu looses focus and disappears.
So i need a routine to capture a key combination. Is this possible in vb.net?

Any other advice instead of my techinque (capturing key press) will be good too.

thanks
 
There are many apps out there designed to do this.

But if you want to write it yourself, here is an idea:

Allow the user to press [Print Scrn] -- which sends your screen to the clipboard. Then, launch your application. All your app has to do is get the screen from the clipboard.

Come to think of it, this is the basic idea behind many of those commercially available screen capture utilities.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top