[SIZE=2][COLOR=#0000ff]Protected[/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] [/SIZE][SIZE=2][COLOR=#0000ff]Object[/COLOR][/SIZE][SIZE=2], [/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]If[/COLOR][/SIZE][SIZE=2] advC = 1 [/SIZE][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]GoTo[/COLOR][/SIZE][SIZE=2] advcode [/SIZE][SIZE=2][COLOR=#0000ff]Else[/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][SIZE=2] advC = 0 [/SIZE][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][SIZE=2] _
TextBox2.Text = ([/SIZE][SIZE=2][COLOR=#a31515]"function"[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]" "[/COLOR][/SIZE][SIZE=2] & TextBox3.Text & [/SIZE][SIZE=2][COLOR=#a31515]"()"[/COLOR][/SIZE][SIZE=2] & vbCrLf & [/SIZE][SIZE=2][COLOR=#a31515]" {"[/COLOR][/SIZE][SIZE=2] & vbCrLf & [/SIZE][SIZE=2][COLOR=#a31515]" commandtoserver("[/COLOR][/SIZE][SIZE=2] & Chr(39) & [/SIZE][SIZE=2][COLOR=#a31515]"messageSent"[/COLOR][/SIZE][SIZE=2] & Chr(39) & [/SIZE][SIZE=2][COLOR=#a31515]","[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]""""[/COLOR][/SIZE][SIZE=2] & TextBox1.Text & [/SIZE][SIZE=2][COLOR=#a31515]""");"[/COLOR][/SIZE][SIZE=2] & vbCrLf & [/SIZE][SIZE=2][COLOR=#a31515]"}"[/COLOR][/SIZE][SIZE=2])
[/SIZE][SIZE=2][COLOR=#0000ff]My[/COLOR][/SIZE][SIZE=2].Computer.FileSystem.WriteAllText([/SIZE][SIZE=2][COLOR=#a31515]"c:\Documents and Settings\"[/COLOR][/SIZE][SIZE=2] & Environment.UserName & [/SIZE][SIZE=2][COLOR=#a31515]"\"[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]"Desktop"[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]"\"[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]"code.txt"[/COLOR][/SIZE][SIZE=2], TextBox2.Text, [/SIZE][SIZE=2][COLOR=#0000ff]False[/COLOR][/SIZE][SIZE=2])
MsgBox([/SIZE][SIZE=2][COLOR=#a31515]"The code was saved as code.txt on your desktop."[/COLOR][/SIZE][SIZE=2], MsgBoxStyle.Information, [/SIZE][SIZE=2][COLOR=#a31515]"Note"[/COLOR][/SIZE][SIZE=2])
advcode:
TextBox2.Text = ([/SIZE][SIZE=2][COLOR=#a31515]"function"[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]" "[/COLOR][/SIZE][SIZE=2] & TextBox3.Text & [/SIZE][SIZE=2][COLOR=#a31515]"(%"[/COLOR][/SIZE][SIZE=2] & TextBox6.Text & [/SIZE][SIZE=2][COLOR=#a31515]")"[/COLOR][/SIZE][SIZE=2] & vbCrLf & [/SIZE][SIZE=2][COLOR=#a31515]" {"[/COLOR][/SIZE][SIZE=2] & vbCrLf & [/SIZE][SIZE=2][COLOR=#a31515]" commandtoserver("[/COLOR][/SIZE][SIZE=2] & Chr(39) & [/SIZE][SIZE=2][COLOR=#a31515]"messageSent"[/COLOR][/SIZE][SIZE=2] & Chr(39) & [/SIZE][SIZE=2][COLOR=#a31515]","[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]""[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]"%"[/COLOR][/SIZE][SIZE=2] & TextBox6.Text & [/SIZE][SIZE=2][COLOR=#a31515]");"[/COLOR][/SIZE][SIZE=2] & vbCrLf & [/SIZE][SIZE=2][COLOR=#a31515]"}"[/COLOR][/SIZE][SIZE=2])
[/SIZE][SIZE=2][COLOR=#0000ff]My[/COLOR][/SIZE][SIZE=2].Computer.FileSystem.WriteAllText([/SIZE][SIZE=2][COLOR=#a31515]"c:\Documents and Settings\"[/COLOR][/SIZE][SIZE=2] & Environment.UserName & [/SIZE][SIZE=2][COLOR=#a31515]"\"[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]"Desktop"[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]"\"[/COLOR][/SIZE][SIZE=2] & [/SIZE][SIZE=2][COLOR=#a31515]"codeAdv.txt"[/COLOR][/SIZE][SIZE=2], TextBox2.Text, [/SIZE][SIZE=2][COLOR=#0000ff]False[/COLOR][/SIZE][SIZE=2])
MsgBox([/SIZE][SIZE=2][COLOR=#a31515]"The code was saved as codeadv.txt on your desktop."[/COLOR][/SIZE][SIZE=2], MsgBoxStyle.Information, [/SIZE][SIZE=2][COLOR=#a31515]"Note"[/COLOR][/SIZE][SIZE=2])
[/SIZE][SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]