Jjo Posted September 18, 2009 Share Posted September 18, 2009 (edited) I tried to search solution but every youtube downloader's source code is too complicated.so what i'm doing wrong here, it says that size is 0.#include <String.au3> #include <inet.au3> $id="XAYhNHhxN0A&feature=related&fmt=18" $download = "http://www.youtube.com/get_video?video_id=" & $id & "" MsgBox(0,"File size", InetGetSize($download)) InetGet($download, "D:\music\file.flv", 1, 1) While @InetGetActive TrayTip("",@InetGetBytesRead,1000) wend Edited November 6, 2013 by Melba23 Title adjusted Projects: -Handy Musicplayer Link to comment Share on other sites More sharing options...
JohnOne Posted September 18, 2009 Share Posted September 18, 2009 (edited) Im no expert but I assume you cant run a funcion within a msgbox (I could be wrong) I would create a variable with InetGetSize, and then ask the msgbox to display it. #include <String.au3> #include <inet.au3> $id="XAYhNHhxN0A&feature=related&fmt=18" $download = "http://www.youtube.com/get_video?video_id=" & $id & "" $s = InetGetSize($download) MsgBox(0,"File size", $s) InetGet($download, "D:\music\file.flv", 1, 1) While @InetGetActive TrayTip("",@InetGetBytesRead,1000) Or something like that wend Edited September 18, 2009 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Jjo Posted September 19, 2009 Author Share Posted September 19, 2009 (edited) Still doesn't work, any ideas?E: got it working, I'll post it too if someone is interested about simple youtube downloader. <snip> Edited November 5, 2013 by Melba23 Code removed Projects: -Handy Musicplayer Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now