Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


help c#

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Unbr0ken
Advanced Cheater
Reputation: 2

Joined: 10 Aug 2011
Posts: 67

PostPosted: Sat Nov 26, 2011 1:49 am    Post subject: Reply with quote

You should read this and this.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Sat Nov 26, 2011 11:13 am    Post subject: Re: help c# Reply with quote

Shrooms wrote:
I will buy them something..

What I simply need is how the hell can I program in c# to click the download button on this website.

http://www.youtube-mp3.org/

webBrowser1.Document.GetElementById("youtube-url").SetAttribute("value", textBox1.Text); // put text into textbox
webBrowser1.Document.GetElementById("submit").InvokeMember("onclick"); // click convert video button

That is what I have so far, and taking out webBrowser for httpwebrequest.
_________________


You should keep checking until the html code contains something new, like "download" and when it is 100% completed. {Timer Object}

Then you can activate the download trigger, which is most likely an href link. What you could do for that part would be to enumerate all the href links, and search for one starting with "http://www.youtube-mp3.org/get?video_id="

_________________
CEF will always stay alive.
Back to top
View user's profile Send private message
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Fri Dec 02, 2011 2:35 pm    Post subject: Reply with quote

Shrooms wrote:
This is the code once you convert the link and click download;
Code:

<div id="dl_link" style="display: block;">
<a href="/get?video_id=KMU0tzLwhbE&h=3713fa1cb8c500381a1edaaf80a06ab5">
<b>Download</b>


I just do not get it.


So, you should iterate all the href links in the WebBrowser document starting with "/get?" using a for loop. You should be able to retrieve the correct one.

_________________
CEF will always stay alive.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites