<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Ввод чисел в "Edit" через точку]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13888&amp;type=atom" />
	<updated>2018-06-27T14:51:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13888</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод чисел в "Edit" через точку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126486#p126486" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>Всё это обман.</p></blockquote></div><p>Почему сразу обман? Просто небольшое волшебство. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-06-27T14:51:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126486#p126486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод чисел в "Edit" через точку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126484#p126484" />
			<content type="html"><![CDATA[<p>Спасибо всё работает прекрасно,тему можно закрывать если есть такая необходимость.</p>]]></content>
			<author>
				<name><![CDATA[RedBishep]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38892</uri>
			</author>
			<updated>2018-06-27T14:28:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126484#p126484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод чисел в "Edit" через точку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126483#p126483" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Может, может.</p></blockquote></div><p>Чего он тогда дёргается? Всё это обман. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2018-06-27T14:11:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126483#p126483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод чисел в "Edit" через точку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126480#p126480" />
			<content type="html"><![CDATA[<p>Или вот так, похитрее немного:<br /></p><div class="codebox"><pre><code>Gui, Add, Edit, w150 number hwndhEdit
obj := {h: hEdit}
obj.f := fn := Func(&quot;SetDots&quot;).Bind(obj)
GuiControl, +g, %hEdit%, % fn
Gui, Show
Return

SetDots(obj)  {
   GuiControl, -g, % obj.h
   GuiControlGet, num,, % obj.h
   num := RegExReplace(num, &quot;\.&quot;)
   GuiControl,, % obj.h, % RegExReplace(num, &quot;\d(?=(\d{3})+$)&quot;, &quot;$0.&quot;)
   Send {End}
   fn := obj.f
   GuiControl, +g, % obj.h, % fn
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-06-27T13:44:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126480#p126480</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод чисел в "Edit" через точку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126478#p126478" />
			<content type="html"><![CDATA[<p>Может, может. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>Gui, Add, Edit, w150 number gSetDots
Gui, Show
Return

SetDots()  {
   static fn := Func(&quot;SetDots&quot;)
   GuiControl, -g, Edit1
   GuiControlGet, num,, Edit1
   num := RegExReplace(num, &quot;\.&quot;)
   GuiControl,, Edit1, % RegExReplace(num, &quot;\d(?=(\d{3})+$)&quot;, &quot;$0.&quot;)
   Send {End}
   GuiControl, +g, Edit1, % fn
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-06-27T13:35:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126478#p126478</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод чисел в "Edit" через точку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126477#p126477" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>RedBishep пишет:</cite><blockquote><p>Пример: ввожу число 1000000 и оно так и остаётся. а надо что бы прям на глазах становилось таким 1.000.000<br />Если конечно такое возможно</p></blockquote></div><p>Для этого контрол должен заранее знать, какое число вы вводите. Иначе как он поймёт, где ставить точки? Но он не может этого знать, это фантастика.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2018-06-27T13:31:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126477#p126477</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод чисел в "Edit" через точку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126475#p126475" />
			<content type="html"><![CDATA[<p>Извиняюсь если ввёл в заблуждение. ошибся.<br />Вот пример кода который я использую он работает но только после нажатия кнопки.</p><div class="codebox"><pre><code>
Var1 := ee1
Result1 := RegExReplace(Var1, &quot;\d(?=(\d{3})+$)&quot;, &quot;$0.&quot;)
</code></pre></div><p>Нужно что-то наподобие только без кнопки, моментальное преобразование при написание в окне скрипта в поле &quot;Edit&quot;.</p>]]></content>
			<author>
				<name><![CDATA[RedBishep]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38892</uri>
			</author>
			<updated>2018-06-27T13:07:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126475#p126475</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод чисел в "Edit" через точку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126474#p126474" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>RedBishep пишет:</cite><blockquote><p>после каждой 3 цифры ставилась точка</p></blockquote></div><div class="quotebox"><cite>RedBishep пишет:</cite><blockquote><p>надо что бы прям на глазах становилось таким 1.000.000</p></blockquote></div><p>Смотрите, вы говорите после каждой 3 цифры, а в примере, который привели первая точка стоит после первой цифры.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-06-27T12:59:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126474#p126474</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Ввод чисел в "Edit" через точку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126473#p126473" />
			<content type="html"><![CDATA[<p>Доброго времени суток.<br />Извиняюсь если данный вопрос уже был озвучен кем-то или его решение есть в &quot;FAQ&quot;.</p><p>Подскажите или дайте кусок кода что бы:<br />Когда в &quot;GUI&quot; окне в поле &quot;Edit&quot; вводишь цифры они автоматический после каждой 3 цифры ставилась точка.<br />Пример: ввожу число 1000000 и оно так и остаётся. а надо что бы прям на глазах становилось таким 1.000.000 .<br />Если конечно такое возможно.</p><p>Заранее благодарен!</p><p>З.Ы. Новичёк в написание кода <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />&nbsp; походу дела учусь.</p>]]></content>
			<author>
				<name><![CDATA[RedBishep]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38892</uri>
			</author>
			<updated>2018-06-27T12:55:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126473#p126473</id>
		</entry>
</feed>
