Hadez Posted June 8, 2010 Posted June 8, 2010 I want to start to write a program that will take a movie file, use a prog like vlc to take screenshots, upload those images to an online imagehost and then download the link. From what ive looked up on this site, ive seen a way to create the screenshots from the movie using vlc. What i was wondering is if it is possible to upload the images to an imagehosting site and then download the links within a second or so. Does anyone know whether there is a quick way for these actions to be performed, or will it take longer than a second or so? If the action of uploading the images and downloading the links is quick, i will start to write it, otherwise i will leave this script alone lol. Does anyone have any advise since i really dont want to spend a few weeks trying to write this script only to find out it takes longer than i need it to upload the images and download the links. Thanks for any help
kaotkbliss Posted June 8, 2010 Posted June 8, 2010 If all your willing to wait is a second then I must be living in the stone age because for me it always takes a few seconds at least (depending on the site) to procecss and transfer the file, then a few more seconds to generate, process and refresh the page showing the link. (if you are using something like rapidshare) Within a reasonable time, yes it is possible. (it only takes a second to copy a bit of text (the link)) 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
Hadez Posted June 9, 2010 Author Posted June 9, 2010 Yeh, i mean only a second for the things i can control. i dont mind waiting for the site to upload the images, i just was wondering how fast it could be done. The reason im asking is because i saw someone who did the thing im trying to do and it was done almost instantly. i was just wondering if autoit could perform the same task as fast. Maybe he was using Curl to upload the images?
kaotkbliss Posted June 9, 2010 Posted June 9, 2010 Ok, since that is out of the way It sounds like your script will be fairly simple mostly. You want to start a movie file Run("WMPlayer.exe","path to file") or whatever player you want to use Winwait for windows media player then take screenshots There is code on the forum if you want autoIt to do the screenshots for you if not, then you need another Run command _IECreate for the webpage to upload to _IELoadWait to pause until page is loaded Then maybe _IEGetObjById and using that ID _IEClickByIndex (_IEClickByText may work also depending on the upload method of the web page) Send (to send the path of your files to the site. If mutliple files then you may want to _FileListToArray then a Do Until loop, repeating the getting of the upload button or input box, sending the filename (incrimented by 1 each time) submitting the file and grabbing the link.) You can use _INetGetSource to read the html code of the page (if the link to your screenshot is in it) otherwise you will have to find the text on the page and ClipGet to copy ClipPut to paste. That should get you started with many of the functions you would need. 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
Hadez Posted June 9, 2010 Author Posted June 9, 2010 Good man ill try that out and report back when its doone. Thanks alot for your help
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