<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: GuiControl]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13033&amp;type=atom" />
	<updated>2017-09-29T15:31:51Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13033</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119629#p119629" />
			<content type="html"><![CDATA[<p>Всё, спасибо, ребята. Немного дошаманил и всё заработало <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-09-29T15:31:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119629#p119629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119628#p119628" />
			<content type="html"><![CDATA[<p><strong>MandarinKa02</strong> &quot;show&quot; есть, с этим всё в порядке. Значение с долларом не показывается.<br /><strong>teadrinker</strong> мою проблему это не решило..</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-09-29T15:28:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119628#p119628</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119627#p119627" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alex_Lexon пишет:</cite><blockquote><div class="codebox"><pre><code>asddsa := % ie.document.getElementsByClassName(&quot;item-amount&quot;)[0].innerText</code></pre></div></blockquote></div><p>Знак процента здесь лишний.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-09-29T15:25:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119627#p119627</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119626#p119626" />
			<content type="html"><![CDATA[<p><strong>Alex_Lexon</strong>, а что здесь не так? Если у вас проблема, типо окно не открывается то стоит дописать строчку &quot;Gui, Show&quot;</p>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-09-29T15:24:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119626#p119626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119625#p119625" />
			<content type="html"><![CDATA[<p><strong>MandarinKa02</strong> </p><div class="codebox"><pre><code>Gui, Add, Text, vx w300, 123: ...
asddsa := % ie.document.getElementsByClassName(&quot;item-amount&quot;)[0].innerText //Тут выдаётся значение на подобие: 1.29$
GuiControl,, x, 123: %asddsa%</code></pre></div><p>Расскажите, как быть? <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-09-29T15:20:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119625#p119625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119624#p119624" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alex_Lexon пишет:</cite><blockquote><p>после := идёт функция, что выдаёт значение (Пример: 1.29$). Как мне обособлять это кавычками &quot;&quot;?</p></blockquote></div><p>Смари:<br /><span style="color: blue">var := &quot;123&quot;</span><br />Тоже самое что и: <span style="color: blue">var = 123</span><br />	НО! <span style="color: red">var := %var2%</span>&nbsp; ;ГРУБАЯ ОШИБКА, правильно так(<span style="color: green">var := var2</span>)<br />	НО! <span style="color: green">var = %var2%</span>&nbsp; &nbsp;;Это нормально</p>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-09-29T15:15:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119624#p119624</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119623#p119623" />
			<content type="html"><![CDATA[<p><strong>MandarinKa02</strong> вау, так можно, и AHK не делает так сам? <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /> Да, спасибо, теперь помогло.</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-09-29T15:09:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119623#p119623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119622#p119622" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> после := идёт функция, что выдаёт значение (Пример: 1.29$). Как мне обособлять это кавычками &quot;&quot;?</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-09-29T15:08:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119622#p119622</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119621#p119621" />
			<content type="html"><![CDATA[<p>Добавил значение &quot;w300&quot; - увеличивает длину текста(в пикселях)<br /></p><div class="codebox"><pre><code>
Gui, Add, Text, vtxt w300, 1: ...
Gui, show, W400 H400,,
return

Numpad1::
var:= &quot;2$&quot;
GuiControl,, txt, 1: %var%
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-09-29T15:06:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119621#p119621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119620#p119620" />
			<content type="html"><![CDATA[<p>Если после := идёт переменная, то без кавычек, если буквальная строка, то в кавычках.</p><div class="quotebox"><cite>Alex_Lexon пишет:</cite><blockquote><p>Потом мне надо вывести это значение на GUI, изменяя текст с помощью GuiControla.</p></blockquote></div><p>Лучше всего заранее позаботиться о размере (в данном случае ширине) текстового контрола, и указать её заранее при создании с запасом.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-09-29T15:05:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119620#p119620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119617#p119617" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, Font, s48
Gui, Add, Text, vy, 1: ...
Gui, show, W400 H400,,
return

Numpad1::
x := &quot;2$&quot;
GuiControl,, y, 1: %x%
return</code></pre></div><p>Так же не желает работать, не смотря на &quot;&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-09-29T15:03:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119617#p119617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119616#p119616" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Во-первых, никогда не используйте имена переменных, состоящие из одних цифр</p></blockquote></div><p>Плохой пример, согласен. В основной всё &quot;правильно&quot; <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Во-вторых, если 2$ — это буквальная строка, а не переменная, то после знака := она должна быть в кавычках</p></blockquote></div><p>Хм.... Дело в том, что переменная Х (Давайте так назовём) берёт своё значение из браузера, в следующией форме: 1.29$. Потом мне надо вывести это значение на GUI, изменяя текст с помощью GuiControla. Как быть в таком случае?</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-09-29T14:58:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119616#p119616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119615#p119615" />
			<content type="html"><![CDATA[<p><strong>Alex_Lexon</strong>, у вас тут сразу много ошибок. Во-первых, никогда не используйте имена переменных, состоящие из одних цифр. Такие имена зарезервированы под параметры командной строки, передаваемые скрипту при запуске. Во-вторых, если 2$ — это буквальная строка, а не переменная, то после знака := она должна быть в кавычках. В-третьих, изменяя контент текстового контрола, нужно позаботиться о том, чтобы его размер мог этот контент вместить, т. к. после <em>GuiControl,, ControlID, NewContent</em> размер контрола остаётся прежним, а &quot;1: 2$&quot;, скорее всего, занимает больше места, чем &quot;1: ...&quot;, если по умолчанию не используется моноширинный шрифт.<br /></p><div class="codebox"><pre><code>Gui, Font, s48
Gui, Add, Text, border, 1: ...
Gui, Add, Text, border, 1: 2$
Gui, Show</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-09-29T13:35:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119615#p119615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119614#p119614" />
			<content type="html"><![CDATA[<p>Здравствуйте! Расскажите пожалуйста, почему в следующем коде, после нажатия &quot;Numpad 1&quot; точки после &quot;1: ...&quot; заменяются на ничто? Почему не высвечивается &quot;1: 2$&quot;?<br />Заранее спасибо.<br /></p><div class="codebox"><pre><code>Gui, Add, Text, v1, 1: ...
Gui, show, W400 H400,,
return

Numpad1::
123 := 2$
GuiControl,, 1, 1: %123%
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-09-29T12:08:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119614#p119614</id>
		</entry>
</feed>
