flyest
Doctor
- Mar 3, 2013
- 94
- 13
Here's an If code for my new betting bot project.
I basically want to do the same thing in the first line as I do in the second (SetAttribute).
I want to know how I can make WebBrowser1 know if WebBrowser1.DocumentText.Contains both 'You lost' (HTML text) and text from TextBox1.
I didn't know how to explain this in a better way, but here's a demonstration in code on how I want it. Might help you.
Code:
If WebBrowser1.DocumentText.Contains("You lost 12 800 000") Then
WebBrowser1.Document.GetElementById(TextBox6.Text).SetAttribute("value", TextBox4.Text * "4")
For Each el As HtmlElement In elc
If el.GetAttribute("type").Equals("submit") Then
el.InvokeMember("Click")
End If
Next
End If
I want to know how I can make WebBrowser1 know if WebBrowser1.DocumentText.Contains both 'You lost' (HTML text) and text from TextBox1.
I didn't know how to explain this in a better way, but here's a demonstration in code on how I want it. Might help you.
Code:
WebBrowser1.DocumentText.Contains("You lost" And TextBox1.Text)