[VB10] Button Click WebBrowser Problem

12/25/2012 22:42 MARCI1111#1
hi guys,
i have a problem, i want to click on a button.
this is the html code:
Quote:
<article id="gStarter"><a onclick="GameLib.Exec(1);return false;" onfocus="this.blur();" title="Game Starter" href="#PLAY"></a></article>
i thought that would be the solution:
WebBrowser1.Document.GetElementById("gStarter").In vokeMember("Click")
i also tested to write the title/href/onclick instead of the "gStarter" but nothing works.

sorry, i am at the beginning of coding and i think i started a too huge project...
would be nice if someone can help me with my nooby problem...

greetings,
MARCI1111
12/25/2012 22:47 'Heaven.#2
Can u post the whole site please? thanks
12/25/2012 22:51 MARCI1111#3
Quote:
Originally Posted by 'Heaven. View Post
Can u post the whole site please? thanks
sure, the red button in the middle.
[Only registered and activated users can see links. Click Here To Register...]
12/25/2012 23:11 'Heaven.#4
Just navigate to:

Code:
javascript:GameLib.Exec(1);return false;
12/25/2012 23:25 MARCI1111#5
thanks, it works, but it shows me a random javascript message...
i can login and the game also starts and a javascript message appears which is completly useless....
12/25/2012 23:28 'Heaven.#6
hm...but you can althoug use webrequests to make the program work...
they are faster and better than a webbrowser control.
There are good tutorials in english in the internet i think :P
12/25/2012 23:40 MARCI1111#7
okay thanks,
i will try that but i am happy that my "beta" version or "test" version works at well :)

//edited: i could remove the JS error with a new start javascript :)

greetings,
MARCI1111