jamesstp20 0 Posted September 12, 2010 (edited) Hey all. I have a little problem in my Youtube Downloader :S . I asked this question on the french forum but i didn't get any answer..This is the script: <snip>The problem is that: there is 3 "›› Download MP4 ‹‹" on the website:1) Low quality2) Medium Quality3) High qualityIt means that the first "›› Download MP4 ‹‹" is Low quality, second Medium Quality and the third High Quality.. How to download the second or the third one Thanks Edited November 6, 2013 by Melba23 Code removed & title adjusted Share this post Link to post Share on other sites
wakillon 403 Posted September 12, 2010 (edited) Try <snip> ! Edited November 5, 2013 by Melba23 Link removed AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
seandisanti 6 Posted September 12, 2010 Hey all. I have a little problem in my Youtube Downloader :S . I asked this question on the french forum but i didn't get any answer.. This is the script: #include <IE.au3> $complet = "http://keepvid.com/?url=http://www.youtube.com/watch?v=tvSoGW1U20s" $oIE = _IECreate ($complet);, 0, 0) _IELoadWait($oIE) sleep(6000) $Wheretoclick = "›› Download MP4 ‹‹" _IELinkClickByText($oIE, $Wheretoclick) The problem is that: there is 3 "›› Download MP4 ‹‹" on the website: 1) Low quality 2) Medium Quality 3) High quality It means that the first "›› Download MP4 ‹‹" is Low quality, second Medium Quality and the third High Quality.. How to download the second or the third one Thanks just use the optional "index" parameter of _IELinkClickByText... #include <IE.au3> $complet = "http://keepvid.com/?url=http://www.youtube.com/watch?v=tvSoGW1U20s" $oIE = _IECreate ($complet);, 0, 0) _IELoadWait($oIE) sleep(6000) $Wheretoclick = "›› Download MP4 ‹‹" _IELinkClickByText($oIE, $Wheretoclick,2) Share this post Link to post Share on other sites
jamesstp20 0 Posted September 12, 2010 (edited) just use the optional "index" parameter of _IELinkClickByText... #include <IE.au3> $complet = "http://keepvid.com/?url=http://www.youtube.com/watch?v=tvSoGW1U20s" $oIE = _IECreate ($complet);, 0, 0) _IELoadWait($oIE) sleep(6000) $Wheretoclick = "›› Download MP4 ‹‹" _IELinkClickByText($oIE, $Wheretoclick,2) Thanks it worked @Wakillon Your Script is not working: No Downloads URL Found.. Edited September 12, 2010 by jamesstp20 Share this post Link to post Share on other sites
seandisanti 6 Posted September 12, 2010 no problem, glad to help. whenever you find a function that does almost exactly what you want, but not quite, check out the optional parameters in the help file, you'll save yourself some headaches and won't have to reinvent the wheel. Share this post Link to post Share on other sites
wakillon 403 Posted September 13, 2010 @WakillonYour Script is not working: No Downloads URL Found..Which OS, and IE Version have you ?On Xp Works great !Some rare urls doesn't work but in general it's ok AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
jamesstp20 0 Posted September 13, 2010 Oh i'm using Windows 7 Ultimate French 64 Bits.. Share this post Link to post Share on other sites
wakillon 403 Posted September 14, 2010 Oh i'm using Windows 7 Ultimate French 64 Bits..Try to change $oIE.Visible = 0 To $oIE.Visible = 1for see if IE give an error message... AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
jamesstp20 0 Posted September 14, 2010 (edited) Okay i have found the error.. I just removed this from your script If StringLen ( $_VideoTitle ) > 50 Or StringInStr ( $_VideoTitle, 'incorrect' ) <> 0 Then MsgBox ( 0, 'Error', 'Download Urls Not Found', 3 ) _EnableAllButtons ( ) _GUICtrlStatusBar_SetText ( $_StatusBar, "" , 0 ) $oIE.Quit ;_CloseWindowWithString ( '' ) Return EndIf And anything worked perfectly Edited September 14, 2010 by jamesstp20 Share this post Link to post Share on other sites
wakillon 403 Posted September 15, 2010 Glad for you ! have you try my last post's instructions, for find the problem ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites