<?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=5861&amp;type=atom" />
	<updated>2011-06-01T16:35:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5861</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как создать свою переменную?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48873#p48873" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>; изначально переменная var если не задано значение (цифры, буквы) пуста
var := 5 ; можно сразу задать ей значение, на пример 5
1::var := 1 ; по нажатию на эти хоткеи переменной var присваивается значение 
2::var := 2
3::var := 3
; и т.д.
Enter:: ; проверка, допустим наша переменна цифра 2
   If var = 2 ; сравнение
      MsgBox,,,переменная совпала, 2
   Else
      MsgBox,,,переменная не совпадает с нашей т.к. = %var% а наша = 2, 2 
   Return</code></pre></div><p>Подробнее <a href="http://www.script-coding.com/AutoHotkey/Variables.1.0.46.07.html">тут</a>.</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-06-01T16:35:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48873#p48873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как создать свою переменную?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48872#p48872" />
			<content type="html"><![CDATA[<p>Документация<br />rus <a href="http://www.script-coding.com/AutoHotkeyTranslation.html">http://www.script-coding.com/AutoHotkeyTranslation.html</a><br />eng <a href="http://www.autohotkey.com/docs/">http://www.autohotkey.com/docs/</a></p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-06-01T15:27:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48872#p48872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как создать свою переменную?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48869#p48869" />
			<content type="html"><![CDATA[<p>Как задать свою переменную?<br />Что-то вроде:<br /></p><div class="codebox"><pre><code>var.My_variable := 1
if var.My_variable :=1
Send...
if var.My_variable :=2
Send...
if var.My_variable :=3
Send...</code></pre></div><p>и как с ними работать?<br />Типа:<br /></p><div class="codebox"><pre><code>var.My_variable := 1
if something
set var.My_variable :=1
if {R}
set var.My_variable :=2</code></pre></div><p>Ткните носом в документацию, чтобы я почитал тему, пожалуйста. А то я сам не нашел.</p>]]></content>
			<author>
				<name><![CDATA[sergeant.coolagin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25809</uri>
			</author>
			<updated>2011-06-01T12:25:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48869#p48869</id>
		</entry>
</feed>
