hello,
i am totally new in this programming world and also new on this forum.
i want to make a autotalker(i know cheating is stuppid, but i get tired from typing the same things over and over.)
but the problem is:
when i have 2 textboxes 1 for declaring the time(how much times u wanna use) and the other 1 for the text.
now i am using this code but whats wrong with it?:
[/COLOR][/SIZE]
can someone tell me whats wrong? and why my windows application stuck when i insert this code?
(and about the loopts i didn't know what loop or how loops work so i chosed this one)
p.s: also didn't know where to post this.(and how to make a stop button so when i click it the form still on but wont send the text?)
thnx for looking
greetz xxjaapxx
i am totally new in this programming world and also new on this forum.
i want to make a autotalker(i know cheating is stuppid, but i get tired from typing the same things over and over.)
but the problem is:
when i have 2 textboxes 1 for declaring the time(how much times u wanna use) and the other 1 for the text.
now i am using this code but whats wrong with it?:
VB.NET:
[SIZE=2][COLOR=#0000ff]
Public[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Class[/COLOR][/SIZE][SIZE=2] Form1
[/SIZE][SIZE=2][COLOR=#0000ff]Private[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE][SIZE=2] Button1_Click([/SIZE][SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] sender [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] System.Object, [/SIZE][SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] e [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] System.EventArgs) [/SIZE][SIZE=2][COLOR=#0000ff]Handles[/COLOR][/SIZE][SIZE=2] Button1.Click
[/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] text [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Double
[/COLOR][/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] times [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Double
[/COLOR][/SIZE][SIZE=2]text = TextBox1.Text
times = TextBox2.Text
[/SIZE][SIZE=2][COLOR=#0000ff]For[/COLOR][/SIZE][SIZE=2] text = 0 [/SIZE][SIZE=2][COLOR=#0000ff]To[/COLOR][/SIZE][SIZE=2] times
[/SIZE][SIZE=2]SendKeys.Send(text)
[/SIZE][SIZE=2][COLOR=#0000ff]Next[/COLOR][/SIZE][SIZE=2] text
[/SIZE][SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]
can someone tell me whats wrong? and why my windows application stuck when i insert this code?
(and about the loopts i didn't know what loop or how loops work so i chosed this one)
p.s: also didn't know where to post this.(and how to make a stop button so when i click it the form still on but wont send the text?)
thnx for looking
greetz xxjaapxx