<?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>http://forum.script-coding.com/viewtopic.php?id=6800</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=6800&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Сложение и вычитание переменных».]]></description>
		<lastBuildDate>Sat, 11 Feb 2012 11:53:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Сложение и вычитание переменных]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=56676#p56676</link>
			<description><![CDATA[<div class="quotebox"><cite>Irbis пишет:</cite><blockquote><div class="codebox"><pre><code>kx += x
ky += y</code></pre></div></blockquote></div><p><strong>Работает</strong> так, как я хотел.<br />Спасибо <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (Мпэт)]]></author>
			<pubDate>Sat, 11 Feb 2012 11:53:10 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=56676#p56676</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Сложение и вычитание переменных]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=56673#p56673</link>
			<description><![CDATA[<div class="codebox"><pre><code>kx += x
ky += y</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Irbis)]]></author>
			<pubDate>Sat, 11 Feb 2012 11:48:57 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=56673#p56673</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Сложение и вычитание переменных]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=56669#p56669</link>
			<description><![CDATA[<div class="codebox"><pre><code>
kx:=0
ky:=0
Loop
{
MsgBox Текущие координаты X=%kx%   Y=%ky%

Gui, Add, Text,, Изменение X:
Gui, Add, Edit,vx ;по горизонтали
Gui, Add, Text,ym, Изменение Y:
Gui, Add, Edit,vy ;по вертикали
Gui, Add, Button, default, Ввод ; ButtonВвод (если она есть) будет запущена при нажатии кнопки.
Gui, Show,, Ввод данных
Return ; Окончание секции авто-выполнения. Скрипт ожидает каких-нибудь действий пользователя.
ButtonВвод:
Gui, Submit ; Сохраняем входные данные пользователя в ассоциированной переменной элемента управления.
Gui, Destroy

if (x=&quot;&quot;) ; замена пустоты на 0
    {
    x:=0
    }
if (y=&quot;&quot;)
    {
    y:=0
    }

; дальше нужно изменить kx и ky с помощью x и y соответственно

[b]if(x&lt;0)
{
kx = %kx%-%x%
}
if(x&gt;0)
{
kx = %kx%+%x%
}
if(y&lt;0)
{
ky = %ky%-%y%
}
if(y&gt;0)
{
ky = %ky%+%y%
}[/b]

}</code></pre></div><p>Помогите пожалуйста со сложением/вычитанием переменных.<br />Переменные <span class="bbu">kx</span> и <span class="bbu">ky</span> могут содержать любое число от -10000 до 10000<br />Переменные <span class="bbu">x</span> и <span class="bbu">y</span> могут содержать любое число от -100 до 100</p>]]></description>
			<author><![CDATA[null@example.com (Мпэт)]]></author>
			<pubDate>Sat, 11 Feb 2012 11:03:51 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=56669#p56669</guid>
		</item>
	</channel>
</rss>
