Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 22:38

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


Need help from programmers (C#, skylab sending - that fucking button!)

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2010
Posts: 23
Received Thanks: 2
Need help from programmers (C#, skylab sending - that ******* button!)

Hey,
I am creating simple skylab tool using c# windows forms and the web browser from toolbox.

I managed how to paste ammount, but now I can't handle the simulating of that button click which sends it.

I simply have no idea about html, javascript etc..

Many ppl have made this already, could someone give me the part of the code where you simulate the click ?

I don't mind sharing the tool afterwards

Screen of button I need to click :


Code of the button in html :



shadow48 is offline  
Old 12/30/2014, 21:33   #2
 
elite*gold: 260
Join Date: Jul 2012
Posts: 294
Received Thanks: 807
Quote:
Originally Posted by shadow48 View Post
Hey,
I am creating simple skylab tool using c# windows forms and the web browser from toolbox.

I managed how to paste ammount, but now I can't handle the simulating of that button click which sends it.

I simply have no idea about html, javascript etc..

Many ppl have made this already, could someone give me the part of the code where you simulate the click ?

I don't mind sharing the tool afterwards

Screen of button I need to click :


Code of the button in html :
You can do it in javascript


linkpad is offline  
Old 12/30/2014, 21:34   #3
 
elite*gold: 0
Join Date: Dec 2010
Posts: 23
Received Thanks: 2
Quote:
Originally Posted by linkpad View Post
You can do it in javascript
I don't know anything about javascript and I won't learn it only because 1 problem.. I need solution in c#.

I tried to take the "javascript:Skylab.sendTransport('normal');" and put it in the google chrome console, it "clicked" the button.. but I have no idea how to do this via c# web browser..
shadow48 is offline  
Old 12/30/2014, 21:46   #4
 
elite*gold: 260
Join Date: Jul 2012
Posts: 294
Received Thanks: 807
Quote:
Originally Posted by shadow48 View Post
I don't know anything about javascript and I won't learn it only because 1 problem.. I need solution in c#.

I tried to take the "javascript:Skylab.sendTransport('normal');" and put it in the google chrome console, it "clicked" the button.. but I have no idea how to do this via c# web browser..

Try with this :

Code:
string jCode = "Skylab.sendTransport('normal');";
webBrowser1.Document.InvokeScript("eval", new object[] { jCode });


linkpad is offline  
Thanks
1 User
Old 12/30/2014, 21:51   #5

 
elite*gold: 2256
Join Date: Aug 2012
Posts: 583
Received Thanks: 1,007
Or try this :

Code:
webBrowser1.Navigate("javascript:Skylab.sendTransport('normal');");
0wnix is offline  
Old 12/30/2014, 21:59   #6
 
elite*gold: 0
Join Date: Dec 2010
Posts: 23
Received Thanks: 2
Quote:
Originally Posted by linkpad View Post
Try with this :

Code:
string jCode = "Skylab.sendTransport('normal');";
webBrowser1.Document.InvokeScript("eval", new object[] { jCode });
THANKS! It works.

#CloseRequest


shadow48 is offline  
Reply



« PET protocols and gear | Your own CLI Commands in Azure (Private Server) »

Similar Threads
[Trading] FUCKING G2 EUW ACC WITH RIOT FUCKING FIST BUMP WARD
06/29/2014 - League of Legends Trading - 0 Replies
HI FUCKING THERE,I AM FUCKING TRADING MY LOL EUW ACC WHICH IS G2 AND GOT SOME COOL SHIT ON IT FOR YOUR ACC WHICH GOT A LOT OF CHAMPS,IDC ABOUT DIV. YOU CAN CHECK MY FUCKING ACCOUNT HERE: http://www.elitepvpers.com/forum/league-legends-trading/3319780-my-g2-euw-acc-riot-ward-gold-border-etc-acc-lot-champs-bf4-key.html



All times are GMT +1. The time now is 22:38.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.