Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 20:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB10] Button Click WebBrowser Problem

Discussion on [VB10] Button Click WebBrowser Problem within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
MARCI1111's Avatar
 
elite*gold: 7
Join Date: Jul 2009
Posts: 1,131
Received Thanks: 722
[VB10] Button Click WebBrowser Problem

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
MARCI1111 is offline  
Old 12/25/2012, 22:47   #2
 
'Heaven.'s Avatar
 
elite*gold: 1
The Black Market: 331/0/0
Join Date: Jun 2012
Posts: 5,819
Received Thanks: 3,200
Can u post the whole site please? thanks
'Heaven. is offline  
Thanks
1 User
Old 12/25/2012, 22:51   #3
 
MARCI1111's Avatar
 
elite*gold: 7
Join Date: Jul 2009
Posts: 1,131
Received Thanks: 722
Quote:
Originally Posted by 'Heaven. View Post
Can u post the whole site please? thanks
sure, the red button in the middle.
MARCI1111 is offline  
Old 12/25/2012, 23:11   #4
 
'Heaven.'s Avatar
 
elite*gold: 1
The Black Market: 331/0/0
Join Date: Jun 2012
Posts: 5,819
Received Thanks: 3,200
Just navigate to:

Code:
javascript:GameLib.Exec(1);return false;
'Heaven. is offline  
Thanks
1 User
Old 12/25/2012, 23:25   #5
 
MARCI1111's Avatar
 
elite*gold: 7
Join Date: Jul 2009
Posts: 1,131
Received Thanks: 722
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....
MARCI1111 is offline  
Old 12/25/2012, 23:28   #6
 
'Heaven.'s Avatar
 
elite*gold: 1
The Black Market: 331/0/0
Join Date: Jun 2012
Posts: 5,819
Received Thanks: 3,200
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
'Heaven. is offline  
Thanks
1 User
Old 12/25/2012, 23:40   #7
 
MARCI1111's Avatar
 
elite*gold: 7
Join Date: Jul 2009
Posts: 1,131
Received Thanks: 722
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
MARCI1111 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Webbrowser span click
12/05/2011 - .NET Languages - 2 Replies
Hallo erstmal, nach stundenlangen googlen habe ich nichts gefunden was mir weiterhelfen könnte. Ich möchte nähmlich einfach ein Programm schreiben das ein click im webBrowser auf ein bild ausführt. Was erstmal einfach klingt aber nicht einfach ist xD. Ich habe es schon mit webBrowser1.Document.GetElementById("vote_li nk_1").InvokeMember("click"); versucht aber das geht leider nicht. Hier ist mal der quellcode der Seite <span id="vote_link_1" class="votelink">
Cabal (EU) Auto Click Right Button
08/22/2011 - Cabal Online - 1 Replies
hi all. I need a macro mouse programme which working with Cabal (EU). is that all.^^ I m sorry I mean left button but sorry for bad english!
Webbrowser vor-zurück button?
07/24/2011 - AutoIt - 2 Replies
Wollte mal fragen ob man bei einem selbstgemachtem Webbrowser einen Vor- und Zurückbutton machen kann und welche Funcktion <--- Parameter man braucht. Danke schonma
[VB]Überprüfungen ob Button Click
06/19/2010 - .NET Languages - 7 Replies
Moin, kann mir jemand sagen wie der Befehl heißt wie ich überprüfen kann ob ein Button geklickt wurde? z.B möchte jetzt machen If(Button1.Clicked) Then BLABLABLA Else BLABLABLA
Cant click start button on bot menu
11/11/2007 - Silkroad Online - 7 Replies
i installed it as i was supposed to and the patching and all that went fine. i setted up the bot and saved script and all that but i cant press the start button. i can press every thing else on the bot menu but not start. any1 knows what could cause this problem?



All times are GMT +1. The time now is 20:42.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.