Main Area and Open Discussion > General Software Discussion
Using AutoHotkey to auto-download and update programs
DonL:
I think all I need for this Autohotkey script is something like this:
<?php
header("Location: download/xyplorer_5.80_beta.zip");
?>
justice:
ah yes a redirect, I'll test if this works here too. Sometimes the simplest solution is overlooked :) edit: Indeed it seems the UrlDownloadToFile function of AutoHotkey supports redirection perfectly.
The very simplest you can make something like this work I think would be:
--- ---#SingleInstance,Force
#Persistent
SetBatchLines,-1
UrlDownloadToFile, http://www.some.url/some.asp, c:\temp\destinat.ion
ExitApp
Return
With (my asp/vbscript example): (some.asp)
--- Code: ASP ---<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><%Option ExplicitResponse.Buffer = True ' Permanent redirectionResponse.Status = "301 Moved Permanently"Response.AddHeader "Location", "http://www.some.url/redirect.exe"Response.End%>
Technical implementation is then not really a reason why not to support a 'latest' redirection link.
DonL:
ah yes a redirect, I'll test if this works here too. Sometimes the simplest solution is overlooked :) edit: Indeed it seems the UrlDownloadToFile function of AutoHotkey supports redirection perfectly.-justice (April 26, 2007, 06:53 AM)
--- End quote ---
Thanks for testing! :Thmbsup:
Navigation
[0] Message Index
[*] Previous page
Go to full version