|
-
Aug 28th, 2007, 04:35 PM
#1
Thread Starter
Junior Member
[Visual C# 2005] trouble with auto typer
i have completed my auto typer but i would like to modify this code
Code:
private void timer1_Tick(object sender, EventArgs e)
{
SendKeys.Send(textBox2.Text);
SendKeys.Send("(Enter)");
}
so it just "hits" enter because currently it is typing the word enter and "hitting" enter, i would like to fix it so it only "hits" enter.
-
Aug 28th, 2007, 05:05 PM
#2
Fanatic Member
Re: [Visual C# 2005] trouble with auto typer
Trying sending the keycode value rather then a literal.
-
Aug 28th, 2007, 05:09 PM
#3
Thread Starter
Junior Member
Re: [Visual C# 2005] trouble with auto typer
thank you, could you give me the value of "enter" or tell me a link that gives all the values of each key.
-
Aug 28th, 2007, 05:09 PM
#4
Re: [Visual C# 2005] trouble with auto typer
Are you using sendkeys to send a key to your own application? Why?
-
Aug 28th, 2007, 05:15 PM
#5
Thread Starter
Junior Member
Re: [Visual C# 2005] trouble with auto typer
it is an auto typer here is the full code
Code:
private void timer1_Tick(object sender, EventArgs e)
{
SendKeys.Send(textBox2.Text);
SendKeys.Send("(Enter)");
}
private void button1_Click(object sender, EventArgs e)
{
timer1.Interval = timer1.Interval + Convert.ToInt32(textBox1.Text) * 1000;
timer1.Enabled = true;
}
private void button2_Click(object sender, EventArgs e)
{
timer1.Enabled = false;
}
it is complete except that when i run and hit button1 it is supposed to type in the text from textbox1 which it does but it also "enter" and it does "hit" enter but it types it as well. i would like to fix it so it stops typing in the text enter and only "hits" the button enter. this program is supposed to be used for example maybe you want to "spam" someone on msn or aim so you continue to type whatever you write every second or less.
-
Aug 28th, 2007, 05:16 PM
#6
Fanatic Member
Re: [Visual C# 2005] trouble with auto typer
http://www.asciitable.com/
I forget which number you are to use.
-
Aug 28th, 2007, 05:18 PM
#7
Thread Starter
Junior Member
Re: [Visual C# 2005] trouble with auto typer
 Originally Posted by BillBoeBaggins
thanks that is perfect
edit: am having trouble finding enter =/
Last edited by skate4lifee; Aug 28th, 2007 at 05:22 PM.
-
Aug 28th, 2007, 05:24 PM
#8
Fanatic Member
Re: [Visual C# 2005] trouble with auto typer
-
Aug 28th, 2007, 05:27 PM
#9
Thread Starter
Junior Member
Re: [Visual C# 2005] trouble with auto typer
its ok i found out what was wrong, i was doing
Code:
sendkeys.send("(enter)")
when i should have done
Code:
sendkeys.send("{ENTER}")
works fine now
-
Aug 28th, 2007, 08:23 PM
#10
Re: [Visual C# 2005] trouble with auto typer
MSDN SendKeys
Here is MSDN documentation
-
Aug 29th, 2007, 03:26 PM
#11
Re: [Visual C# 2005] trouble with auto typer
I'll have to ask again..
Are you sending this to your own application?
-
Sep 3rd, 2007, 07:37 PM
#12
Junior Member
Re: [Visual C# 2005] trouble with auto typer
Use the SendWait method instead of the Send, it works fine then.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|