<?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=6974</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6974&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Проверка содержимого корзины».]]></description>
		<lastBuildDate>Sun, 25 Mar 2012 01:37:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58340#p58340</link>
			<description><![CDATA[<p>С помощью COM скорее всего можно. Подождём специалистов.</p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Sun, 25 Mar 2012 01:37:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58340#p58340</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58337#p58337</link>
			<description><![CDATA[<p>Я чаю, обжекция сия на момент перемещения может программой вельми использоваться, окромя того, останется видна в ея списке. Но что уже сверх того не пригоже — путь до обжекции отнюдь не будет удалён из базы, если программа оную ведёт.<br />Зело могу ошибаться <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Sat, 24 Mar 2012 21:24:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58337#p58337</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58332#p58332</link>
			<description><![CDATA[<p>На правах метода альтернативного перемещению через корзину <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><p>Если из окна программы файл можно поместить в корзину, вероятно его возможно и скопировать?<br />После «копирования в буфер» в Clipboard можно увидеть путь к «скопированным файлам».</p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Sat, 24 Mar 2012 20:26:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58332#p58332</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58331#p58331</link>
			<description><![CDATA[<p>А получится перемещать из Корзины в определённую папку последний удалённый в неё объект? Нужно для перемещения файлов из окон тех программ, которые перемещение не поддерживают.<br />Вопрос, кажется, специфический, потому тему решил не создавать.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Sat, 24 Mar 2012 20:08:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58331#p58331</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58148#p58148</link>
			<description><![CDATA[<p>Про <a href="http://forum.script-coding.com/viewtopic.php?pid=57769#p57769">выравнивание</a> забыл <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 20 Mar 2012 23:20:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58148#p58148</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58147#p58147</link>
			<description><![CDATA[<p>Так — работает корректно. Спасибо <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Заодно стало понятно зачем в начало SHQRB записывается некое число.</p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Tue, 20 Mar 2012 23:15:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58147#p58147</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58146#p58146</link>
			<description><![CDATA[<div class="codebox"><pre><code>GetRecycleBinContent(0, Size, NumItems)
MsgBox, % &quot;Размер в байтах — &quot; Size &quot;`nКоличество объектов — &quot; NumItems
 
GetRecycleBinContent(RootPath, ByRef Size, ByRef NumItems)
{
   NumPut(VarSetCapacity(SHQRB, A_PtrSize = 4 ? 20 : 24), SHQRB)
   DllCall(&quot;shell32\SHQueryRecycleBin&quot; . (A_IsUnicode ? &quot;W&quot; : &quot;A&quot;)
      , RootPath = 0 ? &quot;UInt&quot; : &quot;Str&quot;, RootPath, Ptr, &amp;SHQRB)
   Size := NumGet(SHQRB, A_PtrSize = 4 ? 4 : 8, &quot;Int64&quot;)
   NumItems := NumGet(SHQRB, A_PtrSize = 4 ? 12 : 16, &quot;Int64&quot;)
}</code></pre></div><p>А так?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 20 Mar 2012 23:10:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58146#p58146</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58145#p58145</link>
			<description><![CDATA[<p>Первый пример отображает размер и количество файлов в корзине при использовании ahk_l unicode x86 win XP, но не ahk_l unicode x64 win7.<br />Второй и на win7 размеры папок не определяет.</p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Tue, 20 Mar 2012 23:02:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58145#p58145</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58143#p58143</link>
			<description><![CDATA[<p>Если нужно узнать размер корзины на всех дисках, первым параметром нужно послать 0, иначе — путь к диску, например &quot;C:&quot; (обязательно в кавычках).<br /></p><div class="codebox"><pre><code>GetRecycleBinContent(0, Size, NumItems)
MsgBox, % &quot;Размер в байтах — &quot; Size &quot;`nКоличество объектов — &quot; NumItems

GetRecycleBinContent(RootPath, ByRef Size, ByRef NumItems)
{
   VarSetCapacity(SHQRB, 20)
   NumPut(20, SHQRB)
   DllCall(&quot;shell32\SHQueryRecycleBin&quot; . (A_IsUnicode ? &quot;W&quot; : &quot;A&quot;)
      , RootPath = 0 ? &quot;UInt&quot; : &quot;Str&quot; , RootPath, Ptr, &amp;SHQRB)
   Size := NumGet(SHQRB, 4, &quot;Int64&quot;)
   NumItems := NumGet(SHQRB, 12, &quot;Int64&quot;)
}</code></pre></div><p>Или через COM (для всех дисков):<br /></p><div class="codebox"><pre><code>oShell := ComObjCreate(&quot;Shell.Application&quot;)
oFolder := oShell.NameSpace(ssfBITBUCKET := 0xA)
 
for Item in oFolder.Items
   Items .= Item.Name . &quot;   Size in bytes = &quot; . Item.Size . &quot;`n&quot;
 
MsgBox, % SubStr(Items, 1, -1)</code></pre></div><p>В последнем случае размеры для папок не определяются (по-крайней мере на XP).</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 20 Mar 2012 21:39:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58143#p58143</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58142#p58142</link>
			<description><![CDATA[<div class="codebox"><pre><code>VarSetCapacity(SHQRB,20)
NumPut(20,SHQRB)
DllCall(&quot;shell32\SHQueryRecycleBinA&quot;,&quot;STR&quot;,&quot;C:\Windows&quot;,&quot;Uint&quot;,&amp;SHQRB)
MsgBox % &quot;`nTotal Bytes: &quot; NumGet(SHQRB,4,&quot;Int64&quot;) &quot; (&quot; Round(NumGet(SHQRB,4,&quot;Int64&quot;)/1024/1024,0) &quot; MB)&quot;</code></pre></div><p>Пример с офсайта, работающий, вероятно, на ahk-basic.<br />Возможно, кто-то адаптирует под ahk-l unicode x86-x64 <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Tue, 20 Mar 2012 19:28:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58142#p58142</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Проверка содержимого корзины]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58137#p58137</link>
			<description><![CDATA[<p>Возможно ли узнать, есть ли что-то в Корзине, и, если да, что именно?<br />Если второе нереализуемо, то интересует хотя бы первая часть.</p>]]></description>
			<author><![CDATA[null@example.com (O'neeL)]]></author>
			<pubDate>Tue, 20 Mar 2012 17:51:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58137#p58137</guid>
		</item>
	</channel>
</rss>
