<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AutoHotkey: Очистка списка недавно используемых документов и корзины]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=2581&amp;type=atom" />
	<updated>2008-12-15T19:26:57Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=2581</id>
		<entry>
			<title type="html"><![CDATA[AutoHotkey: Очистка списка недавно используемых документов и корзины]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=17215#p17215" />
			<content type="html"><![CDATA[<p>Очистка списка недавно используемых документов и корзины.<br /></p><div class="codebox"><pre><code>#Persistent
szMessage = Would you like to clear the recent document menu and empty the Recycle bin?
szTitle = Cleaner

iButton := DllCall(&quot;MessageBox&quot;, int, 0, str, szMessage, str, szTitle, int, 4)
; Если нажата клавиша &quot;Да&quot;
If (iButton = 6) 
{
DllCall(&quot;shell32.dll\SHAddToRecentDocs&quot;, str, &quot;SHARD_PATH&quot;, int, 0)
; Вызов функции SHAddToRecentDocs
DllCall(&quot;shell32.dll\SHEmptyRecycleBin&quot;, int, 0, int, 0, str, &quot;SHERB_NOCONFIRMATION+SHERB_NOPROGRESSUI+SHERB_NOSOUND&quot;)
; Вызов функции SHEmptyRecycleBin

TrayTip, Cleaner, Recycle bin and recent document menu - is clear...
SetTimer, RemoveTrayTip, 5000
Return

RemoveTrayTip:
SetTimer, RemoveTrayTip, Off
TrayTip
ExitApp
Return
}
ExitApp</code></pre></div><p>Использована API библиотека &quot;Shell32.dll&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Archangel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=7755</uri>
			</author>
			<updated>2008-12-15T19:26:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=17215#p17215</id>
		</entry>
</feed>
