<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: активация контрола EDIT при наборе текста в GUI]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5303&amp;type=atom" />
	<updated>2011-03-22T20:09:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5303</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: активация контрола EDIT при наборе текста в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=46620#p46620" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, +LastFound
Gui, Add, Edit, x0 y0 w100 h70
Gui, Add, Button, x20 y75 w60 h20, OK
GuiControl, Focus, Button1
Gui, Show, w100 h100
OnMessage(0x102, &quot;WM_CHAR&quot;)
Return

WM_CHAR(wp, lp)
{
   GuiControlGet, Focus, Focus
   if Focus != Edit1
   {
      GuiControl, Focus, Edit1
      SendMessage, WM_CHAR := 0x102, wp, lp, Edit1
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-03-22T20:09:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=46620#p46620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: активация контрола EDIT при наборе текста в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43059#p43059" />
			<content type="html"><![CDATA[<p>1. Наверное придётся прописывать в каждом сбивающем контроле gSub.<br />2. Лучшего варианта чем нажать END не могу предложить.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2010-12-26T10:16:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43059#p43059</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: активация контрола EDIT при наборе текста в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43057#p43057" />
			<content type="html"><![CDATA[<p>Спасибо, работает.<br />1. А если в GUI присутствует множество других контролов: listview, кнопки и др., т.е. сбивающие фокус с нужного edita, каждый раз прописывать GUIControl, focus, Edit?<br />Неужели нет более универсального способа?</p><p>2. Если кнопка добавляет текст в Edit. Курсор вставляется не в конец строки, а в начало. Как сделать так, что бы курсор вставлялся в конец строки?<br /></p><div class="codebox"><pre><code>gui, add, edit, vEdit x10 y330 w580
gui, add, button, gSub1, Add text
gui, show, autosize, gui
return

Sub1:
GuiControl,, Edit, text
GUIControl, focus, Edit</code></pre></div><p>Хотя по второму вопросу можно просто нажать END. Может есть другие способы?</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-12-26T09:54:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43057#p43057</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: активация контрола EDIT при наборе текста в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43055#p43055" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>gui, add, edit, vEdit x10 y330 w580
gui, add, button, gSub1, button
gui, show, autosize, gui
return

Sub1:
GUIControl, focus, Edit</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2010-12-26T09:28:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43055#p43055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: активация контрола EDIT при наборе текста в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43052#p43052" />
			<content type="html"><![CDATA[<p>Есть простой скрипт с GUI. Запускаем его, набираем что-нибудь. Это что-нибудь набирается в контроле edit. Нажимаем кнопку button. Опять пишем что-нибудь (не активирую edit мышью), это самое что-нибудь уже не набирается в GUI.<br />Как сделать так, что бы при активном окне GUI набираемый текст всегда посылался в контрол edit, не зависимо от того, активировали мы его или нет?</p><div class="codebox"><pre><code>gui, add, edit, vEdit x10 y330 w580
gui, add, button,, button
gui, show, autosize, gui</code></pre></div>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-12-26T08:35:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43052#p43052</id>
		</entry>
</feed>
