drummerdp Posted December 12, 2017 Share Posted December 12, 2017 (edited) Hi Everyone, I use AutoIt v3.3.14.2 to develop software for Windows XP, 7, 8 and 10. I'm trying to use InetRead and InetGet to download software updates from SourceForge. The very simple code attached to this post runs fine on Windows 7, 8 and 10. It fails every time on XP. Any idea how I can get this to work on XP? Thanks, Dave #include <MsgBoxConstants.au3> Example() Func Example() ; Read the file without downloading to a folder. The option of 'get the file from the local cache' has been selected. Local $dData = InetRead("https://sourceforge.net/projects/subproject.grub2win.p/files/GrubQuery/download") ; The number of bytes read is returned using the @extended macro. Local $iBytesRead = @extended ; Convert the ANSI compatible binary string back into a string. Local $sData = BinaryToString($dData) ; Display the results. MsgBox($MB_SYSTEMMODAL, "Error " & @error, "The number of bytes read: " & $iBytesRead & @CRLF & @CRLF & $sData) EndFunc ;==>Example Edited December 12, 2017 by Jos Typo - Added code in stead of file- Jos Link to comment Share on other sites More sharing options...
careca Posted December 13, 2017 Share Posted December 13, 2017 (edited) Remarks from inetread: Remarks Internet Explorer 3 or greater must be installed for this function to work. By default AutoIt forces a connection before starting a download. For dial-up users this will prompt to go online or dial the modem (depending on how the system is configured). The options value $INET_FORCEBYPASS (16) disables this behavior. Disabling the behavior can be useful for persistent connects (Broadband, LAN). However, it is also required to work around certain issues in Windows Vista and Windows 7. ;------------------------------------------------ So i assume you have IE3+ in xp, i wouldn't know, i don't use IE for years. And did you try that flag (and others) to see if it makes any difference? That said it works here, win10 x64 Is the XP 32 or 64 bit? Where did your error checking came up with error? Edited December 13, 2017 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
drummerdp Posted December 13, 2017 Author Share Posted December 13, 2017 Hi Careca, Thanks for the quick response. My XP system is 32 bit with IE version 8. Almost all XP installations are 32 bit, so it needs to work for my 32 bit XP users. I tried the command with all combinations of $INET_FORCEBYPASS, $INET_IGNORESSL and $INET_FORCERELOAD. All fail in XP with @error flag of 1 Everything works fine in Windows 7 and Windows 10, both 32 and 64 bit. Dave 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