Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Download a file from a variable
#1
Ok, so
Code:
Copy      Help
IntGetFile "http://www.quickmacros.com/dev/quickmac.exe" _s 0 0 1
will download a file from the internet with a pre defined address. Is there a way to download a file from a URL that has been declared as a variable or from the clipboard?

Last question for today :wink:

Thanks
#2
str url="http://www.quickmacros.com/dev/quickmac.exe"
IntGetFile url _s 0 0 1
#3
If I did something like this
Code:
Copy      Help
Htm el=htm("A" "please click on this link" "" win("CCleaner - Standard - Windows Internet Explorer" "IEFrame") 0 30 0x21)
str b=el.DocURL
IntGetFile b _s 0 0 1
How would I designate where to download the file to? If I wanted to put the file in a particular folder instead of cache? Something similar to this?
Code:
Copy      Help
Htm el=htm("A" "please click on this link" "" win("CCleaner - Standard - Windows Internet Explorer" "IEFrame") 0 30 0x21)
str b=el.DocURL
str localfile="%desktop%\test.exe"
IntGetFile b _s localfile 0 0 1
#4
Macro Macro1564
Code:
Copy      Help
str localfile="%desktop%\test.exe"
IntGetFile b localfile 16 0 1
#5
When I try that command, the download window pops up for a second then disappears.. No error message or anything.
#6
str localfile="$desktop$\test.exe"
#7
Thank you


Forum Jump:


Users browsing this thread: 1 Guest(s)