Home All Groups Group Topic Archive Search About

class for handling the key strike event

Author
28 Aug 2006 5:36 AM
a
Hi
For VB .NET, which class is responsible for the key strike event?
Thanks

Author
28 Aug 2006 5:59 AM
Cor Ligthert [MVP]
Can you give us some more information, if I Google for this I get all kind
of wars, if I look this up in Wikepedia I get as well the keys in Florida?
On MSDN I get a lot about key and some things about strike.

Cor



Show quoteHide quote
"a" <a@mail.com> schreef in bericht
news:OxHP3PmyGHA.4336@TK2MSFTNGP06.phx.gbl...
> Hi
> For VB .NET, which class is responsible for the key strike event?
> Thanks
>
>
>
Author
28 Aug 2006 6:11 AM
a
For example, when I hit the keyboard at the time I am typing this message,
the application knows which character I have hit. It is the event handling
procedure doing the job. I would like to use the event class for my
application.

Thanks

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> ¼¶¼g©ó¶l¥ó·s»D
:uGP1DcmyGHA.5***@TK2MSFTNGP05.phx.gbl...
> Can you give us some more information, if I Google for this I get all kind
> of wars, if I look this up in Wikepedia I get as well the keys in Florida?
> On MSDN I get a lot about key and some things about strike.
>
> Cor
>
>
>
> "a" <a@mail.com> schreef in bericht
> news:OxHP3PmyGHA.4336@TK2MSFTNGP06.phx.gbl...
> > Hi
> > For VB .NET, which class is responsible for the key strike event?
> > Thanks
> >
> >
> >
>
>
Author
28 Aug 2006 7:00 AM
Cor Ligthert [MVP]
a which application, your application can get the keydowns, and keys up
inside this application, however I have the idea that you want that as it is
in some spyware to registrate all keystrokes somebody does, am I right?

Cor

Show quoteHide quote
"a" <a@mail.com> schreef in bericht
news:Oc6pTjmyGHA.3440@TK2MSFTNGP06.phx.gbl...
> For example, when I hit the keyboard at the time I am typing this message,
> the application knows which character I have hit. It is the event handling
> procedure doing the job. I would like to use the event class for my
> application.
>
> Thanks
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> ¼¶¼g©ó¶l¥ó·s»D
> :uGP1DcmyGHA.5***@TK2MSFTNGP05.phx.gbl...
>> Can you give us some more information, if I Google for this I get all
>> kind
>> of wars, if I look this up in Wikepedia I get as well the keys in
>> Florida?
>> On MSDN I get a lot about key and some things about strike.
>>
>> Cor
>>
>>
>>
>> "a" <a@mail.com> schreef in bericht
>> news:OxHP3PmyGHA.4336@TK2MSFTNGP06.phx.gbl...
>> > Hi
>> > For VB .NET, which class is responsible for the key strike event?
>> > Thanks
>> >
>> >
>> >
>>
>>
>
>
>
Author
28 Aug 2006 7:31 AM
a
Hi
You are half right, I am creating password recovery tool for myself.
I dont trust the freeware outside.
In C++ for Win98, there is a class called GetAsyncKeyState.
What is it for VB .NET?

Thanks

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> ¼¶¼g©ó¶l¥ó·s»D
:OMT1t9myGHA.2***@TK2MSFTNGP05.phx.gbl...
> a which application, your application can get the keydowns, and keys up
> inside this application, however I have the idea that you want that as it
is
> in some spyware to registrate all keystrokes somebody does, am I right?
>
> Cor
>
> "a" <a@mail.com> schreef in bericht
> news:Oc6pTjmyGHA.3440@TK2MSFTNGP06.phx.gbl...
> > For example, when I hit the keyboard at the time I am typing this
message,
> > the application knows which character I have hit. It is the event
handling
> > procedure doing the job. I would like to use the event class for my
> > application.
> >
> > Thanks
> >
> > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> ¼¶¼g©ó¶l¥ó·s»D
> > :uGP1DcmyGHA.5***@TK2MSFTNGP05.phx.gbl...
> >> Can you give us some more information, if I Google for this I get all
> >> kind
> >> of wars, if I look this up in Wikepedia I get as well the keys in
> >> Florida?
> >> On MSDN I get a lot about key and some things about strike.
> >>
> >> Cor
> >>
> >>
> >>
> >> "a" <a@mail.com> schreef in bericht
> >> news:OxHP3PmyGHA.4336@TK2MSFTNGP06.phx.gbl...
> >> > Hi
> >> > For VB .NET, which class is responsible for the key strike event?
> >> > Thanks
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
> >
>
>
Author
28 Aug 2006 10:33 AM
Herfried K. Wagner [MVP]
"a" <a@mail.com> schrieb im Newsbeitrag
news:OxHP3PmyGHA.4336@TK2MSFTNGP06.phx.gbl...
> Hi
> For VB .NET, which class is responsible for the key strike event?

What does "key strike" mean?

You may want to check out the form's/control's 'KeyPress', 'KeyDown', and
'KeyUp' events and the form's 'KeyPreview' property.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
28 Aug 2006 7:20 PM
a
Hi
I want it from the system resources.
Like, if I install my application as the service.
I want to keep track of all the Keydown, no matter which application, Word,
IE or Excel is active.
Just like the GetAsyncKeyState for C++ in Win 9X.
Thanks

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at>
???????:%23ALLL1oyGHA.4***@TK2MSFTNGP04.phx.gbl...
Show quoteHide quote
> "a" <a@mail.com> schrieb im Newsbeitrag
> news:OxHP3PmyGHA.4336@TK2MSFTNGP06.phx.gbl...
> > Hi
> > For VB .NET, which class is responsible for the key strike event?
>
> What does "key strike" mean?
>
> You may want to check out the form's/control's 'KeyPress', 'KeyDown', and
> 'KeyUp' events and the form's 'KeyPreview' property.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
Author
28 Aug 2006 10:55 PM
Herfried K. Wagner [MVP]
"a" <a@mail.com> schrieb:
> I want it from the system resources.
> Like, if I install my application as the service.
> I want to keep track of all the Keydown, no matter which application,
> Word,
> IE or Excel is active.
> Just like the GetAsyncKeyState for C++ in Win 9X.

You can still use 'GetAsyncKeyState':

<URL:http://dotnet.mvps.org/dotnet/faqs/?id=getkeystate&lang=en>

Alternatively you'll may want to install a system-wide Win32 keyboard hook.
However, note that it's maybe better to implement the hooking code in C for
determined runtime behavior.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
29 Aug 2006 12:19 AM
a
Hi
How come my .NET reference book doesnt mention this feature? Should I look
for books called something like Win32 programming for WinXP?
Thanks

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at>
???????:u3reTUvyGHA.4***@TK2MSFTNGP06.phx.gbl...
Show quoteHide quote
> "a" <a@mail.com> schrieb:
> > I want it from the system resources.
> > Like, if I install my application as the service.
> > I want to keep track of all the Keydown, no matter which application,
> > Word,
> > IE or Excel is active.
> > Just like the GetAsyncKeyState for C++ in Win 9X.
>
> You can still use 'GetAsyncKeyState':
>
> <URL:http://dotnet.mvps.org/dotnet/faqs/?id=getkeystate&lang=en>
>
> Alternatively you'll may want to install a system-wide Win32 keyboard
hook.
> However, note that it's maybe better to implement the hooking code in C
for
> determined runtime behavior.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
>
Author
29 Aug 2006 12:16 PM
Herfried K. Wagner [MVP]
"a" <a@mail.com> schrieb:
> How come my .NET reference book doesnt mention this feature? Should I look
> for books called something like Win32 programming for WinXP?

Look for keywords like "Win32", "platform invoke", "p/invoke" or similar in
the books' descriptions.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
1 Sep 2006 3:59 PM
Mini-Tools Timm
"a" wrote:

> Hi
> I want it from the system resources.
> Like, if I install my application as the service.
> I want to keep track of all the Keydown, no matter which application, Word,
> IE or Excel is active.
> Just like the GetAsyncKeyState for C++ in Win 9X.

You need to install a WH_KEYBOARD_LL hook to monitor key events across all
applications.  There are no native .NET functions that will do this for you. 
You will need to use pinvoke to access the appropriate Win32 and User32
functions.

We offer a component that will do this for you:

http://www.mini-tools.com/goto/input

--
Timm Martin
Mini-Tools
..NET Components and Windows Software
http://www.mini-tools.com