Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 18:32

  • 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   #2
 
elite*gold: 260
Join Date: Jul 2012
Posts: 294
Received Thanks: 803
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   #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   #4
 
elite*gold: 260
Join Date: Jul 2012
Posts: 294
Received Thanks: 803
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   #5

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

Code:
webBrowser1.Navigate("javascript:Skylab.sendTransport('normal');");
0wnix is offline  
Old   #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



« Previous Thread | Next Thread »

Similar Threads
[Trading] FUCKING G2 EUW ACC WITH RIOT FUCKING FIST BUMP WARD
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....
0 Replies - League of Legends Trading



All times are GMT +1. The time now is 18:32.


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

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