sosimple Posted August 17, 2007 Share Posted August 17, 2007 Hi . This is what a want to do.I have this web page http://www.skystar-2.com/ and i want to download a file which is there, the file SoftCam.key.rar so I need this http://www.skystar-2.com/download/softcam.key.rarI write INetGet('http://www.skystar-2.com/download/softcam.key.rar' @ScriptDir &'\softcam.key.rar')ExitIt looks like it is working, the file softcam.key.rar is beeing created in my folder, but it doesnt opened with winrar. (the real file should be 50 kb, but this is only 25)What im i doing wrong? Can anybody help ? Thanks , Link to comment Share on other sites More sharing options...
bogQ Posted August 17, 2007 Share Posted August 17, 2007 Hi . This is what a want to do.I have this web page http://www.skystar-2.com/ and i want to download a file which is there, the file SoftCam.key.rar so I need this http://www.skystar-2.com/download/softcam.key.rarI write INetGet('http://www.skystar-2.com/download/softcam.key.rar' @ScriptDir &'\softcam.key.rar')ExitIt looks like it is working, the file softcam.key.rar is beeing created in my folder, but it doesnt opened with winrar. (the real file should be 50 kb, but this is only 25)What im i doing wrong? Can anybody help ? Thanks ,your saveing http://www.skystar-2.com/ homepage in softcam.key.rar extension becose they have redirect protection, do you have maby some other site to download from? TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
sosimple Posted August 17, 2007 Author Share Posted August 17, 2007 your saveing http://www.skystar-2.com/ homepage in softcam.key.rar extension becose they have redirect protection, do you have maby some other site to download from?Thanks for the reply. I was expecting this.. No i dont have any other site.. Is there any way to bypass this problem?Thanks, Link to comment Share on other sites More sharing options...
sosimple Posted August 18, 2007 Author Share Posted August 18, 2007 Anyone can help? Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 18, 2007 Share Posted August 18, 2007 Anyone can help?Use the IE.au3 UDF to access it the way you would manually, access the http://www.skystar-2.com/ web site, click on the download link for that file... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
sosimple Posted August 18, 2007 Author Share Posted August 18, 2007 Ok thanks , I found another solution by using another program, the wget.exe if anyone knows it ,and calling it with dos commands form autoit3 finally.. The final code is this in my pc . Perhaps it is useful to others if anyone understand what is doing.... RunWait(@ComSpec & ' /c wget -P D:\FREE\skystar\softcamget\temp --referer=http://www.skystar-2.com http://www.skystar-2.com/download/SoftCam.key.rar', "", @SW_HIDE)RunWait(@ComSpec & ' /c unrar x -o+ D:\FREE\skystar\softcamget\temp\SoftCam.key.rar D:\FREE\skystar\softcamget\temp\', "", @SW_HIDE)RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\Vplug\*.* D:\FREE\skystar\ProgDVB4\Plugins\ /y', "", @SW_HIDE)RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\S2emu\*.* D:\FREE\skystar\ProgDVB4\Plugins\ /y', "", @SW_HIDE)RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\SoftCam.Key D:\FREE\skystar\ProgDVB4\Plugins\SoftCam.Key', "", @SW_HIDE)RunWait(@ComSpec & ' /c del D:\FREE\skystar\softcamget\temp\SoftCam.key.rar', "", @SW_HIDE)In the folder D:\FREE\skystar\softcamget i put the script and i also have the wget.exe and UnRAR.exe Link to comment Share on other sites More sharing options...
footswitch Posted September 2, 2007 Share Posted September 2, 2007 (edited) Ok thanks , I found another solution by using another program, the wget.exe if anyone knows it ,and calling it with dos commands form autoit3 finally.. The final code is this in my pc . Perhaps it is useful to others if anyone understand what is doing.... RunWait(@ComSpec & ' /c wget -P D:\FREE\skystar\softcamget\temp --referer=http://www.skystar-2.com http://www.skystar-2.com/download/SoftCam.key.rar', "", @SW_HIDE)RunWait(@ComSpec & ' /c unrar x -o+ D:\FREE\skystar\softcamget\temp\SoftCam.key.rar D:\FREE\skystar\softcamget\temp\', "", @SW_HIDE)RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\Vplug\*.* D:\FREE\skystar\ProgDVB4\Plugins\ /y', "", @SW_HIDE)RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\S2emu\*.* D:\FREE\skystar\ProgDVB4\Plugins\ /y', "", @SW_HIDE)RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\SoftCam.Key D:\FREE\skystar\ProgDVB4\Plugins\SoftCam.Key', "", @SW_HIDE)RunWait(@ComSpec & ' /c del D:\FREE\skystar\softcamget\temp\SoftCam.key.rar', "", @SW_HIDE)In the folder D:\FREE\skystar\softcamget i put the script and i also have the wget.exe and UnRAR.exeThanks, this helped me a lot wget.exe is a useful piece of software. It would be nice to have some of its features in autoit's InetGet() Edited September 2, 2007 by footswitch 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