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

12/30/2014 21:32 shadow48#1
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 :
[Only registered and activated users can see links. Click Here To Register...]

Code of the button in html :
[Only registered and activated users can see links. Click Here To Register...]
12/30/2014 21:33 linkpad#2
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 :
[Only registered and activated users can see links. Click Here To Register...]

Code of the button in html :
[Only registered and activated users can see links. Click Here To Register...]
You can do it in javascript
12/30/2014 21:34 shadow48#3
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..
12/30/2014 21:46 linkpad#4
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 });
12/30/2014 21:51 0wnix#5
Or try this :

Code:
webBrowser1.Navigate("javascript:Skylab.sendTransport('normal');");
12/30/2014 21:59 shadow48#6
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