Hello
Another noob question, how do I make it switch to another window before it types the message? Like so it alt-tab to notepad.exe or any other program?
Code
Public Class Form1
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
If TextBox1.Text.Contains(Chr(32)) = True Then
MsgBox("The name can't have spaces in it.")
Else
SendKeys.Send("/ginvite" & Chr(34) & TextBox1.Text & Chr(34))
SendKeys.Send("{enter}")
End If
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
ListBox1.Items.Add(TextBox1.Text)
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
ListBox1.Items.Remove(ListBox1.SelectedItem)
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Dim curItem As String = ListBox1.SelectedItem.ToString()
SendKeys.Send("/ginvite" & Chr(34) & curItem & Chr(34))
SendKeys.Send("{enter}")
End Sub
End Class
"To not get scammed, is all about making it not worth for the scammer to do so." -MW