<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Проверка даты создания файла]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5167&amp;type=atom" />
	<updated>2010-11-13T20:56:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5167</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка даты создания файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41638#p41638" />
			<content type="html"><![CDATA[<p>Нет, не выполняется:<br /></p><div class="codebox"><pre><code>test = 1
var = 2
if (%test% == %var%)
   MsgBox, равно</code></pre></div><p>В данном случае <em>%test%</em> (единица) и <em>%var%</em> (двойка) трактуются как имена переменных, а они одинаково пусты.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-11-13T20:56:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41638#p41638</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка даты создания файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41637#p41637" />
			<content type="html"><![CDATA[<p>Однако более простая конструкция выполняется...</p><div class="codebox"><pre><code>test:=&quot;test&quot;
var:=&quot;test&quot;

if(%test%==%var%) {
MsgBox, Условие выполнено
ExitApp
} else {
MsgBox, Условие не выполнено
ExitApp
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[VOLK666]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25998</uri>
			</author>
			<updated>2010-11-13T20:51:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41637#p41637</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка даты создания файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41636#p41636" />
			<content type="html"><![CDATA[<p>Во-первых, в команде <a href="http://www.script-coding.com/AutoHotkey/IfInString.html">IfNotInString</a> первый параметр не значение переменной, а её имя. Потом, так сравнение в принципе не осуществляется. Строка &quot;13&quot; содержит в себе строку &quot;3&quot;, но это не значит, что они равны.<br />А здесь<br /></p><div class="codebox"><pre><code>if(%start%==%loop%)</code></pre></div><p>если то, что после <em>if</em> в скобках, значит это выражение, а в выражениях переменные указываются без знаков &quot;%&quot;.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-11-13T20:39:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41636#p41636</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка даты создания файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41635#p41635" />
			<content type="html"><![CDATA[<p>Спасибо, работает.<br />Только не совсем понятно, почему мое не работало...</p>]]></content>
			<author>
				<name><![CDATA[VOLK666]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25998</uri>
			</author>
			<updated>2010-11-13T20:29:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41635#p41635</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка даты создания файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41633#p41633" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>FileGetTime, start, file.txt, C

Loop
{
   FileGetTime, loop, file.txt, C
   If (loop = start)
      MsgBox, не изменился
   Else
      MsgBox, изменился
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-11-13T20:22:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41633#p41633</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Проверка даты создания файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41630#p41630" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>FileGetTime, start, file.txt, C

loop:
FileGetTime, loop, file.txt, C

IfNotInString, %start%, %loop%
{
MsgBox, изменился
} else {
MsgBox, не изменился
}

Goto, loop</code></pre></div><p>Пробовал все функции на проверку значений переменных. Однако ни одна почему-то не выполняется.<br />Эта тоже не выполняет проверку:<br /></p><div class="codebox"><pre><code>if(%start%==%loop%)</code></pre></div><p>Где я ступил?</p>]]></content>
			<author>
				<name><![CDATA[VOLK666]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25998</uri>
			</author>
			<updated>2010-11-13T19:54:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41630#p41630</id>
		</entry>
</feed>
