<?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=13298</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13298&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Переменные и их замена».]]></description>
		<lastBuildDate>Wed, 13 Dec 2017 19:06:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Переменные и их замена]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122252#p122252</link>
			<description><![CDATA[<div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;компактность_прежде_всего</div><div class="fancy_spoiler"><div class="codebox"><pre><code>
;Init variables
X := 0
Y := 0
X2 := 0
Y2 := 0 

Gui 2: Add, Button, x12 y200 w130 h30 gButton, Enter
Gui 2: Add, Edit, x12 y10 w130 h30  vX  Number, X
Gui 2: Add, Edit, x12 y50 w130 h30  vY  Number, Y
Gui 2: Add, Edit, x12 y100 w130 h30 vX2 Number, X2
Gui 2: Add, Edit, x12 y150 w130 h30 vY2 Number, Y2
Gui 2: Show, w200 h250
return

Button:
;Переменные автоматом не установятся, поэтому их надо получить
GuiControlGet, X
GuiControlGet, Y
GuiControlGet, X2
GuiControlGet, Y2

tooltip % X &quot;:&quot; Y &quot;`n&quot; X2 &quot;:&quot; Y2
MouseClickDrag, Left, X, Y, X2, Y2 , 4 
return
</code></pre></div></div></div>]]></description>
			<author><![CDATA[null@example.com (MandarinKa02)]]></author>
			<pubDate>Wed, 13 Dec 2017 19:06:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122252#p122252</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Переменные и их замена]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122251#p122251</link>
			<description><![CDATA[<div class="quotebox"><cite>Diman_Express пишет:</cite><blockquote><p><strong>qwerqwerqwerr</strong> GuiControl, Destroy делай на текст с переменными и вставляй по новой</p></blockquote></div><p>Можно просто: GuiControl,, ID, % &quot;&quot; ; установиться в пустоту.</p>]]></description>
			<author><![CDATA[null@example.com (MandarinKa02)]]></author>
			<pubDate>Wed, 13 Dec 2017 18:58:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122251#p122251</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Переменные и их замена]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122246#p122246</link>
			<description><![CDATA[<p><strong>qwerqwerqwerr</strong> GuiControl, Destroy делай на текст с переменными и вставляй по новой</p>]]></description>
			<author><![CDATA[null@example.com (Diman_Express)]]></author>
			<pubDate>Wed, 13 Dec 2017 17:18:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122246#p122246</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Переменные и их замена]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122244#p122244</link>
			<description><![CDATA[<p><strong>svoboden</strong> Так переменные не заменяются</p>]]></description>
			<author><![CDATA[null@example.com (qwerqwerqwerr)]]></author>
			<pubDate>Wed, 13 Dec 2017 17:16:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122244#p122244</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Переменные и их замена]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122217#p122217</link>
			<description><![CDATA[<p>Я же ответил на ваш вопрос в предыдущей теме, зачем переспрашиваете? Просто вместо тех значений в Gui вставьте эти: vX,vY и т.д.</p>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Tue, 12 Dec 2017 21:44:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122217#p122217</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Переменные и их замена]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122216#p122216</link>
			<description><![CDATA[<p>Всем привет, меня интересует замена переменных после ввода их в окно GUI и нажатие кнопки.</p><p>Переменные<br /></p><div class="codebox"><pre><code> X := 0
Y := 0
X2 := 0
Y2 := 0 </code></pre></div><p>Функция где должны заменяться значения веденные юзером скрипта.</p><div class="codebox"><pre><code> MouseClickDrag, Left, X, Y, X2, Y2 , 4 </code></pre></div><p>Окно Gui</p><div class="codebox"><pre><code> Gui 2: Add, Button, x12 y200 w130 h30 , Enter
Gui 2: Add, Edit, x12 y10 w130 h30 , vX
Gui 2: Add, Edit, x12 y50 w130 h30 , vY
Gui 2: Add, Edit, x12 y100 w130 h30 , vX2
Gui 2: Add, Edit, x12 y150 w130 h30 , vY2
-
Gui 2: Add, Text, x12 y10 w130 h30 , X
Gui 2: Add, Text, x12 y50 w130 h30 , X2
Gui 2: Add, Text, x12 y100 w130 h30 , Y2
Gui 2: Add, Text, x12 y150 w130 h30 , Y
Gui 2: Show, w200 h250 
ButtonEnter: </code></pre></div><p>Как выглядит окно GUI приложил фото ниже (значения вводил я), но как я выше написал, после их ввода и нажимая кнопку в скрипте они должны замениться на те, которые ввел юзер скрипта.</p>]]></description>
			<author><![CDATA[null@example.com (qwerqwerqwerr)]]></author>
			<pubDate>Tue, 12 Dec 2017 21:21:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122216#p122216</guid>
		</item>
	</channel>
</rss>
