<?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=5483</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5483&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Сравнивание результатов».]]></description>
		<lastBuildDate>Mon, 07 Feb 2011 17:15:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Сравнивание результатов]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=44962#p44962</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 (Monterrey)]]></author>
			<pubDate>Mon, 07 Feb 2011 17:15:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=44962#p44962</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Сравнивание результатов]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=44957#p44957</link>
			<description><![CDATA[<p>Первый параметр IF всегда считается переменной, второй параметр зависит от вида записи.<br />Если использовать обычную запись без скобок, то второй параметр считается переменной, только если стоят знаки %.<br /></p><div class="codebox"><pre><code>Gui, Add, Edit, x10 y140 w60 Limit4 Number vSN1
Gui, Add, Button, x10 y170, Check
Gui, Show, w400 h250
Return

ButtonCheck:
Gui, Submit, NoHide
If SN1=%A_YYYY%
{
MsgBox
}
Return</code></pre></div><p>Если же используется выражение, т.е. после If идет запись в скобках, то второй параметр считается переменной и знаков % не требует.</p><div class="codebox"><pre><code>Gui, Add, Edit, x10 y140 w60 Limit4 Number vSN1
Gui, Add, Button, x10 y170, Check
Gui, Show, w400 h250
Return

ButtonCheck:
Gui, Submit, NoHide
If (SN1=A_YYYY)
{
MsgBox
}
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (InFlames)]]></author>
			<pubDate>Mon, 07 Feb 2011 17:04:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=44957#p44957</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Сравнивание результатов]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=44955#p44955</link>
			<description><![CDATA[<p>Создал поле Edit в GUI<br /></p><div class="codebox"><pre><code>Gui, Add, Edit, x10 y140 w60 Limit4 Number vSN1
Gui, Add, Button, x10 y170, Check
Gui, Show, w400 h250
Return</code></pre></div><p>Тут вроде правильно. Далее нужно было сопоставить его с текущим годом<br /></p><div class="codebox"><pre><code>ButtonCheck:
Gui, Submit, NoHide
If %SN1%=%A_YYYY%
{
...
}
Return</code></pre></div><p>Почему то ничего того, что написано в {} не происходит. Я проверял через ListVars (между &quot;Gui, Submit&quot; и &quot;if...&quot;, всё правильно, выводит значения переменной СН1 - год, значит присвоение прошло нормально. Но сравнить не может или сравнивает как то не так.:( Помогите пожалуйста решить данную проблему.</p><p>Заранее спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (Monterrey)]]></author>
			<pubDate>Mon, 07 Feb 2011 16:57:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=44955#p44955</guid>
		</item>
	</channel>
</rss>
