Visual Basic(Buy Eco)

12/26/2012 15:36 Niko09185#1
Hi. I want to fix it in visual basic kind of thing that gets me to darkorbit Account logs in and buy missiles to rocket. Here is the code: [Only registered and activated users can see links. Click Here To Register...]. A problem is the commands "waitforpageloaded ()". Writes me an error. I want to make it known, wait until the page loads, when it chose to load the server. I want to know the command until the page does not load so let's continue to do other commands. Because otherwise I'm writing error.
THX
12/26/2012 16:41 0wnix#2
Why you don't use this code

Code:
    Private Sub WebBrowser1_DocumentCompleted(sender As System.Object, e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

    End Sub
?
12/26/2012 16:45 qkuh#3
You should work with the WebBrowser events as player.elite already mentioned.
[Only registered and activated users can see links. Click Here To Register...]
12/26/2012 17:07 Niko09185#4
pllss :D I do not know even as I write this: D writes the error: [Only registered and activated users can see links. Click Here To Register...]
12/26/2012 18:23 0wnix#5
Quote:
Originally Posted by Niko09185 View Post
pllss :D I do not know even as I write this: D writes the error: [Only registered and activated users can see links. Click Here To Register...]
You have to work with a variable and this code

Code:
    Private Sub WebBrowser1_DocumentCompleted(sender As System.Object, e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

    End Sub
Dim step as integer



LOGIN etc....
step = 1


when you are in server list, step = 2


Code:
    Private Sub WebBrowser1_DocumentCompleted(sender As System.Object, e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
if step = 2 then
webbrowser1.document.getelementbyid("id") ....

end if


    End Sub
12/26/2012 19:21 Niko09185#6
:/ Error :[Only registered and activated users can see links. Click Here To Register...]
12/26/2012 21:04 »Barney«#7
you really should get some books, buddy

you forgot the "If"
12/26/2012 21:15 Niko09185#8
yes :/ I buy the book
12/27/2012 22:14 Yakiyo#9
Why dont u use HTTPWebRequest? That would be the best solution.
12/27/2012 22:29 Niko09185#10
If I knew I'd use :D

PS: You have a nice profile photo :)
12/27/2012 23:05 Yakiyo#11
It's easy, google it and learn it ;)

Yeah, nice hm?
01/03/2013 00:36 MrSm!th#12
#moved
01/03/2013 11:57 'Heaven.#13
This is Not THW best Methode But Maybe try this:
Code:
While Webbrowser.ReadyState <> ReadyState.Complete
Application.Doevents()
Loop
01/03/2013 12:20 Kraizy​#14
Quote:
Originally Posted by 'Heaven. View Post
This is Not THW best Methode But Maybe try this:
Code:
While Webbrowser.ReadyState <> ReadyState.Complete
Application.Doevents()
Loop
Warum tut man sowas? :<
Wenn es extra schon ein Event namens .DocumentCompleted gibt, nutzt man doch keine Schleife und dann auch noch .DoEvents...
01/03/2013 13:26 tolio#15
aus dem grund das document completed nicht immer richtig auslöst ;)