module RmNet URLDownloadToFile = Win32API.new( "urlmon.dll", "URLDownloadToFile", "ppplp", "i" ) def self.dowmload( url, name ) URLDownloadToFile.call(0, url, name, 0, 0) end end RmNet.dowmload("http://attach.66rpg.com/bbs/attachment/forum/201309/11/135316u8scuuuu8ys0lsuu.jpg", "1.jpg")
module RmNet
URLDownloadToFile = Win32API.new( "urlmon.dll", "URLDownloadToFile", "ppplp", "i" )
def self.dowmload( url, name )
URLDownloadToFile.call(0, url, name, 0, 0)
end
end
RmNet.dowmload("http://attach.66rpg.com/bbs/attachment/forum/201309/11/135316u8scuuuu8ys0lsuu.jpg", "1.jpg")
|