Code (Text): Do While Timer1.Enabled = True Dim strhtml As w.Request("GET", pages.SelectedIndex - 1, Wrapper.LastPage) W.Request("GET", pages.SelectedIndex - 1, Wrapper.LastPage) If strhtml.contains("random event") Then lstLog.Items.Add("RANDOM EVENT OCCURED!") ElseIf strhtml.contains("battledome challenger") Then lstLog.Items.Add("NEW BATTLEDOME CHALLENGER") ElseIf strhtml.contains("faerie quest") Then lstLog.Items.Add("FAERIE QUEST!!!") End If lstLog.Items.Add("Visited " + pages.SelectedIndex) W.Pause(Timer1.Interval) Loop Alright.. Errors: Code (Text): Error 1 Array bounds cannot appear in type specifiers. --THIS HIGHLIGHTS "GET" IN THE SECOND LINE Error 2 Name 'strhtml' is not declared. -- highlights strhtml Error 3 Name 'strhtml' is not declared. Error 4 Name 'strhtml' is not declared. I get it, I have to dim strhtml as something. Question is, what do I dim it as?
I'll give u a hint on this one You're calling the request function from the wrapper. Here's the header of the function: Code (Text): Public Function Request(ByVal Method As String, ByVal URL As String, ByVal Referer As String) As String between the parenthesis is the parameter you gave when you called the function. What's after is what type of variable it will return. In this example, we use "Return strParts" and strParts is a string if you look at the wrapper Code (Text): Dim strParts As String() So your strHtml will need to be a string. Spoiler Dim strhtml As String = w.Request("GET", pages.SelectedIndex - 1, Wrapper.LastPage)
OMG OMG OMG <3 <3 <3 <3 <3 <3 I <3 uz sooz much!!1 ADDING LOVE POEM TO PROGRAM <3 Whens your Birthday??? MUST GIVE PRESENT <3