I've looked at the Master Boot records, and I understand the conditions a little, or just enough to get in trouble. LoL... Unfortunately it doesn't help me out with the code.
If InStr(1, OriginalSentence, "My computer won't power on", 1) Then Diagnostics = True (This is a trigger?)
If Diagnostics = True Then (Go to Select Case HalBrain.RandomNum(4))
Select Case HalBrain.RandomNum(4)
Case 1
GetResponse = "Is the computer plugged in?" & vbCrLf (Random Response)
Case 2
GetResponse = "Are there any lights or LEDs on that suggest power to the motherboard?" & vbCrLf (Random Response)
Case 3
GetResponse = "Do you have a power supply tester?" & vbCrLf (Random Response)
Case 4
GetResponse = "There is a good possibility that your power supply maybe at fault. I suggest you either test your current power supply, or replace it." & vbCrLf (Random Response)
End Select
End If (No more affiliations with original statement or response)
Is there a way to go to another response? I know this is incorrect, but its the best way I can show what I'm thinking.
If InStr(1, OriginalSentence, "My computer will not power on", 1) Then Diagnostics = True
If InStr(1, OriginalSentence, "My computer won't power on", 1) Then Diagnostics = True
'Here we can add accociated responses to the above triggers.
If Diagnostics = True Then
Select Case HalBrain.
Case 1
GetResponse = "Is the computer plugged in?" & vbCrLf
If InStr(1, AnswerSentence, "Yes", 1) Then Yes = True
If InStr(1, AnswerSentence, "No", 1) Then No = False
If Yes = True Then
Select Case HalBrain.
Case 1
GetResponse = "Are there any lights or LEDs on that suggest power to the motherboard?" & vbCrLf
If InStr(1, AnswerSentence, "Yes", 1) Then Yes = True
If InStr(1, AnswerSentence, "No", 1) Then No = False
If Yes = True Then
Select Case HalBrain.
Case 1
GetResponse = "Do you have a power supply tester?" & vbCrLf
If InStr(1, AnswerSentence, "Yes", 1) Then Yes = True
If InStr(1, AnswerSentence, "No", 1) Then No = False
If Yes = True Then
Select Case HalBrain.
GetResponse = "There is a good possibility that your power supply maybe at fault. I suggest you either test your current power supply, or replace it." & vbCrLf
If No = False Then
Select Case HalBrain.
Case 1
GetResponse = "Please plug the computer into the proper outlet and proceed with normal operations." & vbCrLf
End Select
End If