<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Проверка скаченного файла]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11228</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11228&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Проверка скаченного файла».]]></description>
		<lastBuildDate>Sun, 17 Jan 2016 21:36:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Проверка скаченного файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100452#p100452</link>
			<description><![CDATA[<p><strong>Malcev</strong>, в любом случае спасибо за подсказку.</p>]]></description>
			<author><![CDATA[null@example.com (exobangs)]]></author>
			<pubDate>Sun, 17 Jan 2016 21:36:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100452#p100452</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка скаченного файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100399#p100399</link>
			<description><![CDATA[<p>Наверное MD5 можно как-то посчитать.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 16 Jan 2016 21:16:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100399#p100399</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка скаченного файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100396#p100396</link>
			<description><![CDATA[<p><strong>Malcev</strong> устраивает, просто хотелось бы побольше примеров, думаю не только мне будет полезно.</p>]]></description>
			<author><![CDATA[null@example.com (exobangs)]]></author>
			<pubDate>Sat, 16 Jan 2016 20:30:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100396#p100396</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка скаченного файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100395#p100395</link>
			<description><![CDATA[<p>А чем не устраивает этот?</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 16 Jan 2016 20:29:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100395#p100395</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка скаченного файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100394#p100394</link>
			<description><![CDATA[<p>а какие варианты есть еще?</p>]]></description>
			<author><![CDATA[null@example.com (exobangs)]]></author>
			<pubDate>Sat, 16 Jan 2016 20:11:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100394#p100394</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка скаченного файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100384#p100384</link>
			<description><![CDATA[<p>Можно узнавать размер файла до скачивания и сравнивать его с размером после скачивания.<br /></p><div class="codebox"><pre><code>MsgBox % InternetFileGetSize( &quot;ftp://ftp.winzip.com/testdown/testdown.htm&quot; )
MsgBox % InternetFileGetSize( &quot;http://ahkscript.org/favicon.ico&quot; )
 
InternetFileGetSize( URL ) {
 
  hMod := DllCall( &quot;LoadLibrary&quot;, WStr, &quot;wininet.dll&quot; )
 
  hIO  := DllCall( &quot;wininet\InternetOpenW&quot;
                 , WStr, &quot;Microsoft Internet Explorer&quot; 
                 , UInt, 4          ; INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY
                 , Int,  0, Int, 0, UInt, 0 )
 
  hIU  := DllCall( &quot;wininet\InternetOpenUrlW&quot;
                 , UInt, hIO, WStr, URL, Int, 0, Int, 0
                 , UInt, 0x84000000 ; INTERNET_FLAG_DONT_CACHE|INTERNET_FLAG_RELOAD
                 , UInt, 0 )
 
  If ( hIO &amp; hIU ) 
 
   If ( SubStr( URL,1,4 ) = &quot;ftp:&quot; )
   {
      varSetCapacity(huint,4)
      FileSize:=DllCall( &quot;wininet\FtpGetFileSize&quot;, UInt,hIU,UInt,&amp;huint,UInt)
      FileSize := FileSize + (NumGet(huint)*(2**32))
   }

   Else  DllCall( &quot;wininet\HttpQueryInfoW&quot;
                , UInt,  hIU
                , UInt,  0x20000005     ; HTTP_QUERY_CONTENT_LENGTH|HTTP_QUERY_FLAG_NUMBER
                , UIntP, FileSize, UIntP,4, Int,0 )


  DllCall( &quot;wininet\InternetCloseHandle&quot;, UInt, hIU )
  DllCall( &quot;wininet\InternetCloseHandle&quot;, UInt, hIO )
  DllCall( &quot;FreeLibrary&quot;, UInt, hMod ) 
  Return FileSize
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 16 Jan 2016 17:39:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100384#p100384</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Проверка скаченного файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=100378#p100378</link>
			<description><![CDATA[<p>Как проверить полностью ли скачен файл через UrlDownloadToFile?</p>]]></description>
			<author><![CDATA[null@example.com (exobangs)]]></author>
			<pubDate>Sat, 16 Jan 2016 11:28:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=100378#p100378</guid>
		</item>
	</channel>
</rss>
