I m making a keylogger application. so want to capture capture all keystrokes
like
my code like this
case Keys.A: TextBox1.text=TextBox1.text+"A";
break;
but i want that when user press
Shift+2, Shift+A than it print @ and A respectively.
how can i determine that shift key is pressed or not?
Loading
Jaish MathewsPosted Jun 8, 2010, 12:34 AM
I am normally using Key_Down event like below to catch Shift key
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode.Equals(Keys.A) && e.Shift)
{
MessageBox.Show("Shift + A");
}
else if (e.KeyCode.Equals(Keys.A))
{
MessageBox.Show("A");
}
}
Amit KumarPosted Jun 7, 2010, 6:13 PM
Amit KumarPosted Jun 6, 2010, 3:20 AM
my main problem is to how to determine that Shift key pressed or not?
CrishPosted Jun 6, 2010, 1:36 AM
try below code