<?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=5072</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5072&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Как получить время последнего доступа к файлу?».]]></description>
		<lastBuildDate>Sat, 23 Oct 2010 15:04:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Как получить время последнего доступа к файлу?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40772#p40772</link>
			<description><![CDATA[<p>Все равно не получается. Звук в игре проигрывается, но игра файл не держит открытым. Помогите!)</p>]]></description>
			<author><![CDATA[null@example.com (Shoomer)]]></author>
			<pubDate>Sat, 23 Oct 2010 15:04:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40772#p40772</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как получить время последнего доступа к файлу?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40700#p40700</link>
			<description><![CDATA[<p>Попробую заменить короткий секундный звук 5-10 секундным.</p>]]></description>
			<author><![CDATA[null@example.com (Shoomer)]]></author>
			<pubDate>Fri, 22 Oct 2010 02:16:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40700#p40700</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как получить время последнего доступа к файлу?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40692#p40692</link>
			<description><![CDATA[<p>Для автоматизации процесса pыбнoй лoвли) Когда идет пoклевкa, проигрывается определенный звук. Его-то я и ловлю. Вариант с PixelSearch работает, но хочется обойтись без него.</p>]]></description>
			<author><![CDATA[null@example.com (Shoomer)]]></author>
			<pubDate>Thu, 21 Oct 2010 18:48:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40692#p40692</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как получить время последнего доступа к файлу?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40688#p40688</link>
			<description><![CDATA[<p>Если честно, понятия не имею. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> А зачем это всё нужно вообще? Может, есть какой-то другой способ достижения цели.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Thu, 21 Oct 2010 16:41:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40688#p40688</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как получить время последнего доступа к файлу?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40687#p40687</link>
			<description><![CDATA[<p>Зациклил, убрал &quot;MsgBox, Файл не занят.&quot;, попробовал на обычном плеере. Работает на ура!)) Попробовал с той программой (игра, с возможностью подсовывать ей свои wav) - не получается. Подскажите, что делать в этом случае?</p>]]></description>
			<author><![CDATA[null@example.com (Shoomer)]]></author>
			<pubDate>Thu, 21 Oct 2010 16:17:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40687#p40687</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как получить время последнего доступа к файлу?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40686#p40686</link>
			<description><![CDATA[<p>Это зависит от того, держит ли проигрыватель файл открытым. Попробуйте во время проигрывания файла нажать F11. Код попытается открыть файл в монопольном режиме. Если файл уже открыт, то ему это не удастся.<br /></p><div class="codebox"><pre><code>File = C:\PROG\TEMP\text.txt

F11::
    GENERIC_READ = 0x80000000
    OPEN_EXISTING = 0x3
    INVALID_HANDLE_VALUE = -1

    IfNotExist, %File%
    {
        MsgBox, Файл не найден.
        Return
    }

    hFile := DllCall(&quot;CreateFile&quot;, &quot;str&quot;, File, &quot;uint&quot;, GENERIC_READ
                                 , &quot;uint&quot;, 0, &quot;uint&quot;, 0
                                 , &quot;uint&quot;, OPEN_EXISTING, &quot;uint&quot;, 0
                                 , &quot;uint&quot;, 0)

    If (hFile = INVALID_HANDLE_VALUE)
        MsgBox, Файл занят.
    Else {
        DllCall(&quot;CloseHandle&quot;, &quot;uint&quot;, hFile)
        MsgBox, Файл не занят.
    }
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Thu, 21 Oct 2010 15:19:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40686#p40686</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как получить время последнего доступа к файлу?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40684#p40684</link>
			<description><![CDATA[<p>Хм... Узнал, что можно как-то обнаруживать, что файл занят. Это будет даже проще.</p>]]></description>
			<author><![CDATA[null@example.com (Shoomer)]]></author>
			<pubDate>Thu, 21 Oct 2010 14:37:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40684#p40684</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Как получить время последнего доступа к файлу?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40682#p40682</link>
			<description><![CDATA[<p>Всем привет! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Файл .wav, время от времени проигрывается программой на компе. Нужно получить время, когда он последний раз проигрывался. (Или что заданная программа проигрывает его в данный момент. Проще говоря, <em>любым способом</em> нужно обнаружить, что в данный момент или несколько секунд назад файл использовался) Если я правильно понимаю, то где-то должны храниться данные об этом, но как их получить?</p><p>Пробовал просто через <em>FileGetTime</em>, где есть варианты получить Modification time, Creation time, Last access time.&nbsp; При скачивании его на комп сформировалось Creation time, при распаковке обновляется Last access time. Но при проигрывании на плеере Last access не меняется.</p><div class="codebox"><pre><code>+RButton::

Sleep 1000
FileGetTime, OutputVar, Music.wav, A  ; Retrieves the last access time.
MsgBox, 4,, Last access= %OutputVar%</code></pre></div><p>Видимо, я не в ту степь?</p>]]></description>
			<author><![CDATA[null@example.com (Shoomer)]]></author>
			<pubDate>Thu, 21 Oct 2010 13:38:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40682#p40682</guid>
		</item>
	</channel>
</rss>
