Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Keylogger

Reply
 
Old 07-17-2009   #1 (permalink)
Mike Berger


 
 

Keylogger

Hello together,

I need help for my little project.

I will monitoring the keyboard.
When a user press 3 times in a row a "0" then msgbox "..."

And it will be good, when the programm is not in the task list.

Thank you

Mike

My System SpecsSystem Spec
Old 07-17-2009   #2 (permalink)
mr_unreliable


 
 

Re: Keylogger

Mike Berger wrote:
Quote:

> I will monitoring the keyboard.
> When a user press 3 times in a row a "0" then msgbox "..."
>
hi Mike,

There are (at least) two ways to approach this, and
neither one is very appropriate for scripting. You
would be better advised to try some other language
with a system api call capability.

If you are looking to detect keystrokes when YOUR OWN
app is active, then you could "subclass" your window,
and check for wm_char messages. Note that subclassing
means setting up a wndproc and filtering certain system
messages, before passing them along to the system for
processing.

If you are looking to detect keystrokes in a more
general case (i.e., "system-wide", or keystrokes entered
when ANY app is active), then you need to use "hooking".
Hooking is even more tricky than invoking the usual api
calls. If you are serious about this, you can find
various utilities to help -- for example, there is
"DSKEYBRD" (by Juergen Thuemmler, a.k.a. Delphin Software),
a dll which will allow you to intercept keystrokes. You
can find that here (about half-way down the page):

http://allapi.mentalis.org/vbexample...?category=MISC

You may find this easy to use from VB or VBA, or any other
language with the ability to call api's. However, to use
it from script, you will have to build an "infrastructure",
something that will take a while (but _is_ possible).

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
the answers will be applicable to the questions)
My System SpecsSystem Spec
Old 07-17-2009   #3 (permalink)
Auric__


 
 

Re: Keylogger

On Fri, 17 Jul 2009 19:25:05 GMT, Mike Berger wrote:
Quote:

> I need help for my little project.
>
> I will monitoring the keyboard.
> When a user press 3 times in a row a "0" then msgbox "..."
>
> And it will be good, when the programm is not in the task list.
Google is your friend... but I have doubts about this working in VBscript.

--
My eyes just refuse to see clearly, they are a lazy lot.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
keylogger Vista General
vista/ keylogger 5 and keylogger pro Vista security
do I have a keylogger or not? Vista General
do I have a keylogger or not? Vista security
Keylogger Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46