eHrgo Posted March 8, 2007 Share Posted March 8, 2007 (edited) hi, I have a big script which is based on InetGet Function, today I launched it (I used it for 2 weeks) and it doesn't work any more.I searched, i create a new little script to test:InetGet ( 'www.google.fr', 'file.txt', 1) If @error Then MsgBox (0, '', 'failed') ElseIf MsgBox (0, '', 'Suceed') EndifI always got the error message now! Wth? Is that working on your computer?For sure i Checked my connection on IE, working great.Thanks Edited March 8, 2007 by eHrgo Sorry for my Bad English. Link to comment Share on other sites More sharing options...
JohnBailey Posted March 8, 2007 Share Posted March 8, 2007 I didn't understand what you were trying to DL from the small script you wrote, but I hope this helps $dl = InetGet ( 'http://www.autoitscript.com/autoit3/docs/introduction.htm', @ScriptDir&'\file.html', 1, 1) If $dl = 0 Then MsgBox (0, '', 'failed') Else MsgBox (0, '', 'Suceed') Endif While @InetGetActive TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16) Sleep(250) Wend MsgBox(0, "Bytes read", @InetGetBytesRead) A decision is a powerful thing Link to comment Share on other sites More sharing options...
Developers Jos Posted March 8, 2007 Developers Share Posted March 8, 2007 InetGet ( 'http://www.google.fr', 'file.txt', 1) If @error Then MsgBox (0, '', 'failed') Else MsgBox (0, '', 'Suceed') Endif SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
JohnBailey Posted March 8, 2007 Share Posted March 8, 2007 (edited) No, what you specifically wrote doesn't work. If you're just asking about the @error, yes that works. If @error Then MsgBox (0, '', 'failed') Else MsgBox (0, '', 'Suceed') Endif Also, The URL parameter should be in the form "http://www.somesite.com/path/file.html"- Straight out of the manual. JdeB pointed this out too. Edited March 8, 2007 by JohnBailey A decision is a powerful thing Link to comment Share on other sites More sharing options...
eHrgo Posted March 8, 2007 Author Share Posted March 8, 2007 (edited) Ok guys, I did a mistake with my example but in fact I have that:InetGet ( 'https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi', 'file.txt', 1 ) If @error Then MsgBox (0, '', 'failed') Else MsgBox (0, '', 'Suceed') EndifThat worked for 1 month and now it doesn't work anymore.Edit: Straight from the manual: The InetGet function works with http:// https:// and ftp:// - Edited March 8, 2007 by eHrgo Sorry for my Bad English. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 8, 2007 Developers Share Posted March 8, 2007 Ok guys, I did a mistake with my example but in fact I have that: InetGet ( 'https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi', 'file.txt', 1 ) If @error Then MsgBox (0, '', 'failed') Else MsgBox (0, '', 'Suceed') Endif That worked for 1 month and now it doesn't work anymore. Edit: Straight from the manual: The InetGet function works with http:// https:// and ftp:// - Works fine here ... what is your problem with this ? SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
eHrgo Posted March 8, 2007 Author Share Posted March 8, 2007 Oo, i always have got a failed. Im gonna try to reboot my connection/computer. Sorry for my Bad English. Link to comment Share on other sites More sharing options...
eHrgo Posted March 8, 2007 Author Share Posted March 8, 2007 Hum ... i tried everything, every links, working on every filetype: This code isn't working ... InetGet ( 'https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi', 'file.txt', 1 ) If @error Then MsgBox (0, '', 'failed') Else MsgBox (0, '', 'Suceed') Endif CAn someone else confirm that its working ? Sorry for my Bad English. Link to comment Share on other sites More sharing options...
JohnBailey Posted March 8, 2007 Share Posted March 8, 2007 That exact script is working on my end. That's really odd it's not working on your end. I wish someone knew why that might be, especially since your net connection is working and the site is functional. A decision is a powerful thing Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 8, 2007 Moderators Share Posted March 8, 2007 Do you have the right DLL installed on this PC? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
JohnBailey Posted March 8, 2007 Share Posted March 8, 2007 Smoke_N, interesting! What dll would that be? A decision is a powerful thing Link to comment Share on other sites More sharing options...
eHrgo Posted March 8, 2007 Author Share Posted March 8, 2007 This scripted worked for 1 month, I reboot my computer ... doesn't work anymore. No change!!! Its not working compiled. Sorry for my Bad English. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 8, 2007 Moderators Share Posted March 8, 2007 This scripted worked for 1 month, I reboot my computer ... doesn't work anymore. No change!!! Its not working compiled.Well, there's obviously an issue with your computer then, not the script, if you were running a compiled version of it before, and now that compiled version isn't working on your computer any longer, then it's something you've done, not the script itself. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 8, 2007 Moderators Share Posted March 8, 2007 Smoke_N, interesting! What dll would that be?wininet.dll Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
JohnBailey Posted March 8, 2007 Share Posted March 8, 2007 Cool thanks Smoke_N for the name of the dll eHrgo, have you tried just using wrapper (F5 in Scite)? A decision is a powerful thing Link to comment Share on other sites More sharing options...
eHrgo Posted March 8, 2007 Author Share Posted March 8, 2007 (edited) Got it .... Only this site is giving me an error, only CGIs files from this site. Edited March 8, 2007 by eHrgo Sorry for my Bad English. Link to comment Share on other sites More sharing options...
piccaso Posted March 8, 2007 Share Posted March 8, 2007 Maybe your shitlisted there or something... Try removing ie's cookies and get a new ip (reconnect if yours id dynamic) CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
eHrgo Posted March 9, 2007 Author Share Posted March 9, 2007 Arg... not working, im gonna try with my other computer on the same local network. Sorry for my Bad English. Link to comment Share on other sites More sharing options...
eHrgo Posted March 10, 2007 Author Share Posted March 10, 2007 Hum.... still weird problem:Yesterday, it worked back..few hours later, same error. I tried to use proxy > error, tried to delete IE cookies/cache /etc.. >error.I tried on a different computer on the same router -> Working!How can they identify me if its not with IP or cookies? And why can i view the page on IE and i can't download it with Inetget?Thanks a lot Sorry for my Bad English. Link to comment Share on other sites More sharing options...
piccaso Posted March 11, 2007 Share Posted March 11, 2007 As an alternative to inetget you could try curl CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map 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