Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim command As String
command = CStr(TextBox1.Text)
If command = "internet" Then
Process.Start("chrome.exe")
End If
End Sub
Above is my current code. I am experimenting in a basic tasking managing/A.I. Obviously I am FAR from it, but I am just experimenting with text commands (in the future voice command and such). As you can see, the command list is small, only consisting of "internet". How would a I go about making a library of commands that the program can search the library for commands to see if the text contains a command?
Also, how would I word the command to make it so if the text includes the command then it can call, instead of it only calling it if the text solely containing the command?