Events in Console aplication.

  • Thread starter Thread starter PaulT
  • Start date Start date
P

PaulT

Hi,
how can I create and use keypressed (keydown, keyup) events in VB.NET
console aplication?
I tried to write DLL in C++ using hooks but it does not work (hook
procedures do not start) - it may be crazy at all - C++ is very strange for
me. :-)

Thanks
PaulT
 
To be able to get events (windows way) you need to have a window that can
receive messages. Console apps don't have a window that can receive/process
messages so you can't do it.

The only option is to try hooks. Check the link below:

http://groups.google.com/[email protected]

hope this helps

Fitim Skenderi
 
Back
Top