<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Ожидание ввода клавиши {Enter} в поле Edit]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=7403</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7403&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Ожидание ввода клавиши {Enter} в поле Edit».]]></description>
		<lastBuildDate>Mon, 30 Jul 2012 07:44:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Ожидание ввода клавиши {Enter} в поле Edit]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=62147#p62147</link>
			<description><![CDATA[<p>Огромное спасибо. Вы мне оба подсказали красивые варианты кода. Наверное использую их симбиоз. (Просто вы предвосхитили некоторые мои вопросы и я &quot;с радостным трепетом в руках&quot; &quot;начинаю продолжать думать&quot;)</p>]]></description>
			<author><![CDATA[null@example.com (Mikki)]]></author>
			<pubDate>Mon, 30 Jul 2012 07:44:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=62147#p62147</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ожидание ввода клавиши {Enter} в поле Edit]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=62122#p62122</link>
			<description><![CDATA[<div class="codebox"><pre><code>SetFormat, IntegerFast, H
SomeString:=&quot;Some text to display&quot;
OnMessage(WM_CHAR:=0x102, &quot;WindowProc&quot;)
OnMessage(WM_KEYDOWN:=0x100, &quot;WindowProc&quot;)

Gui, GUI1: Add, Text, x12 y10 w210 h20 Center, % SomeString
Gui, GUI2: Add, Text, x122 y10 w100 h20 Center, % SomeString
Gui, GUI2: Add, Edit, x12 y10 w100 h20 Center, % SomeString
Gui, GUI2: +AlwaysOnTop HwndhForm2
Gui, GUI1: Show, Hide w236 h44, Form1
Gui, GUI2: Show, Hide w239 h48, Form2
Begin:
   Gui, GUI2: Cancel
   Gui, GUI1: Show
   Sleep, 1500
   Gui, GUI1: Cancel
   Gui, GUI2: Show
   Return

Gui1GuiClose:
Gui2GuiClose:
   ExitApp

WindowProc(wParam, lParam, uMsg, hWnd)
{
   global hForm2
   static IsCheck
   If uMsg=0x102
   {
      ControlGetText, OutVar, Static1, % &quot;ahk_id&quot;hForm2
      If Not OutVar~=&quot;(^.\b){1,1}&quot;
      {
         Sleep, 175
         ControlClick, Edit1, % &quot;ahk_id&quot;hForm2
         PostMessage, EM_SETSEL:=0xB1,, -1, Edit1, % &quot;ahk_id&quot;hForm2
      }
      ControlSetText, % IsCheck:=&quot;Static1&quot;
                    , % &quot;vk&quot;SubStr(GetKeyVK(Chr(wParam)), 3)
                    . &quot;, sc&quot;SubStr(lParam&gt;&gt;16, 3)
                    , % &quot;ahk_id&quot;hForm2
   }
   If % uMsg=0x100 And wParam=0xD
      If IsCheck
         SetTimer, Begin, -0, IsCheck:=&quot;&quot;
      Else MsgBox, 262208
                 , % &quot;before press ENTER&quot;
                 , % &quot;Fill edit field&quot;
                 , % 0.5
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Grey)]]></author>
			<pubDate>Sun, 29 Jul 2012 20:03:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=62122#p62122</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ожидание ввода клавиши {Enter} в поле Edit]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=62116#p62116</link>
			<description><![CDATA[<p>Спасибо <strong>creature.ws</strong>. Вроде бы то что нужно.<br />На счет термина &quot;весь скрипт&quot; - я к сожалению не придумал более корректного определения необходимого мне события. Просто, в моих &quot;пробах пера&quot; я не мог заставить скрипт остановиться на определенной строчке кода и не идти дальше, пока я не нажму клавишу Ентер. (кроме бесконечного цикла или команды Input, которая для меня теперь стала отдельным чёрным ящиком). Но, в первом чтении, код приведенный <strong>creature.ws</strong>-ом вроде бы делает то что нужно. Однако смогу его испробовать только вечером. Спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (Mikki)]]></author>
			<pubDate>Sun, 29 Jul 2012 07:19:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=62116#p62116</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ожидание ввода клавиши {Enter} в поле Edit]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=62113#p62113</link>
			<description><![CDATA[<div class="codebox"><pre><code>SetTimer, test, -300

Gui, Add, Edit, vEdit
Gui, Show, w140 h32
Pause, on
return


~Enter::
    Pause, off
    Gui, Submit
    MsgBox % Edit . &quot;`nПауза &quot; . (A_IsSuspended? &quot;в&quot;:&quot;вы&quot;) . &quot;ключена&quot;
    Exitapp

Test:
    MsgBox
    return</code></pre></div><p>Горячей клавише следует добавить проверку имени активного control&#039;а, окно с editbox&#039;ом сделать модальным.</p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Sun, 29 Jul 2012 05:18:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=62113#p62113</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ожидание ввода клавиши {Enter} в поле Edit]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=62110#p62110</link>
			<description><![CDATA[<p>Что значит &quot;весь скрипт&quot;? Горячие клавиши, таймеры, меню, OnMessage()? Что конкретно имеется в виду?<br />Дайте рабочий пример скрипта.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Sun, 29 Jul 2012 01:40:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=62110#p62110</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Ожидание ввода клавиши {Enter} в поле Edit]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=62107#p62107</link>
			<description><![CDATA[<p>Доброго дня всем.<br />Чувствую, что вопрос из разряда нубских, но 3-й день ломания головы привел только к головной боли.<br />---<br />Есть две формы (два окна)<br />На одной не важно что<br />На второй есть поле ввода Edit и и текстовое поле, отображающее Юникод символ по коду введенному в поле Edit</p><p>Когда появляется второе окно весь скрипт должен прекратить работать и ждать окончания введения в поле Edit. Т.е. нажатия клавиши {Enter}<br />И вот с этим то и возникает проблема. Ни как не могу понять как это сделать. Помогите пожалуйста.</p>]]></description>
			<author><![CDATA[null@example.com (Mikki)]]></author>
			<pubDate>Sat, 28 Jul 2012 19:29:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=62107#p62107</guid>
		</item>
	</channel>
</rss>
