<?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=14170&amp;type=atom" />
	<updated>2018-09-17T15:37:46Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14170</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление содержания Edit перед вводом нового значения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128755#p128755" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Gutalin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39002</uri>
			</author>
			<updated>2018-09-17T15:37:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128755#p128755</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление содержания Edit перед вводом нового значения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128752#p128752" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Gutalin пишет:</cite><blockquote><p>значение переменной может быть только число.</p></blockquote></div><p>Какой переменной? Почему только число? Как оно там появится?<br />Вы попросту объясните, вот у вас есть Edit-контрол с цифрой ноль в нём. Что дальше должно происходить?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-09-17T14:07:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128752#p128752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление содержания Edit перед вводом нового значения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128750#p128750" />
			<content type="html"><![CDATA[<p><strong>Gutalin</strong>, посылайте EM_SETCUEBANNER.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-09-17T14:00:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128750#p128750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление содержания Edit перед вводом нового значения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128748#p128748" />
			<content type="html"><![CDATA[<p>Очень напоминает &quot;<a href="http://htmlbook.ru/html/input/placeholder">placeholder</a>&quot; для тега &quot;input&quot; в HTML.<br />Если принципиально иметь такое поведение, можно прикрутить ActiveX контрол и описать при помощи гипертекста. Материал о том, как это сделать, есть на форуме.</p><p>Но стоит ли весь этот заморочь, одного только исчезающего текста при вводе?</p>]]></content>
			<author>
				<name><![CDATA[KusochekDobra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33846</uri>
			</author>
			<updated>2018-09-17T13:47:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128748#p128748</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление содержания Edit перед вводом нового значения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128746#p128746" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, значение переменной может быть только число.<br />Если значение переменной, связанной с edit, пустое то в поле Edit выводится 0. При нажатии на поле edit, если это 0,то оно очищается и все введённые числа сохраняются в переменную.</p>]]></content>
			<author>
				<name><![CDATA[Gutalin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39002</uri>
			</author>
			<updated>2018-09-17T13:24:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128746#p128746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление содержания Edit перед вводом нового значения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128745#p128745" />
			<content type="html"><![CDATA[<p><strong>Gutalin</strong></p><div class="codebox"><pre><code>Gui,Add,Edit, vText gEdit w150,
Gui, Show, w200 h200
return
......</code></pre></div><br /><div class="codebox"><pre><code>....
If Text is space
		GuiControl, , Text, 
		return
.....</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-09-17T13:22:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128745#p128745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление содержания Edit перед вводом нового значения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128744#p128744" />
			<content type="html"><![CDATA[<p><strong>Gutalin</strong>, никто не отвечает, потому что непонятно, какого поведения от скрипта вы хотите добиться.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-09-17T12:43:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128744#p128744</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Удаление содержания Edit перед вводом нового значения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128705#p128705" />
			<content type="html"><![CDATA[<p>Если поле Edit пустое, там пишется 0, но если вводится значение, ноль должен исчезнуть, иначе получается,например,введя цифру 3 получается 03 или 30.<br />Нужно как-то удалить значение 0 до ввода нового значения. Если это делать после Edit:: , либо Text:=&quot;&quot; и после этого считывается пустое значение этой переменной (что логично), либо считывать в другую переменную, то считывается уже с нулём&nbsp; (что логично).<br /></p><div class="codebox"><pre><code>
Gui,Add,Edit, vText gEdit w150,0
Gui, Show, w200 h200
return

Edit:
GuiControlGet, tText, , Text 
    If (tText ~= &quot;i)[^0-9.]&quot; || (0, Text := tText))
		GuiControl, , Text, % Text
	If Text is space
		GuiControl, , Text, 0
		return
		
	Esc::
	ExitApp
	return
	
	GuiClose:
	ExitApp
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Gutalin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39002</uri>
			</author>
			<updated>2018-09-15T21:20:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128705#p128705</id>
		</entry>
</feed>
