<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Команда if и вывод значения в ahk]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13021&amp;type=atom" />
	<updated>2017-09-22T16:15:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13021</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Команда if и вывод значения в ahk]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119500#p119500" />
			<content type="html"><![CDATA[<p>Найди 10 отличий:<br /></p><div class="codebox"><pre><code>

msgbox, yes
Gui, Add, edit, x41 y10 w40 h40 vKey +Center, %Key%
Gui, Add, Button, x12 y60 w100 h30 gCheck , Проверить
Gui, Show, w127 h111, Untitled GUI
return

GuiClose:
ExitApp

Key := 1

Check:
gui,submit,nohide
if(key = 1)
{
  msgbox, yes
}
else
{
  msgbox, no
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2017-09-22T16:15:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119500#p119500</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Команда if и вывод значения в ahk]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119496#p119496" />
			<content type="html"><![CDATA[<p><strong>sharhaing</strong><br />При запуске скрипта выполняется код до Return. Код на нажатие кнопки выполняется от её метки Check до конца скрипта. Вопрос: когда выполняется код Key := 1?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2017-09-22T15:02:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119496#p119496</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Команда if и вывод значения в ahk]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119494#p119494" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>sharhaing</strong>, код скрипта необходимо оформить тегом code.&nbsp; В заголовке должна быть отражена суть темы. Словам вроде &quot;помогите&quot;, &quot;новичок&quot; там не место. Исправьте, отредактировав своё сообщение.</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-09-22T13:48:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119494#p119494</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Команда if и вывод значения в ahk]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119492#p119492" />
			<content type="html"><![CDATA[<p>Хотел сделать чтобы на экран вывелось &quot;Yes&quot;, но результат &quot;No&quot;. </p><div class="codebox"><pre><code>

msgbox, yes
Gui, Add, edit, x41 y10 w40 h40 vKey +Center, %Key%
Gui, Add, Button, x12 y60 w100 h30 gCheck , Проверить
Gui, Show, w127 h111, Untitled GUI
return

GuiClose:
ExitApp

Key := 1

Check:

if(key = 1)
{
	msgbox, yes
}
else
{
	msgbox, no
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sharhaing]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38774</uri>
			</author>
			<updated>2017-09-22T12:44:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119492#p119492</id>
		</entry>
</feed>
