<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Увеличение окна GUI по мере ввода текста]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=18421</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18421&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Увеличение окна GUI по мере ввода текста».]]></description>
		<lastBuildDate>Mon, 07 Apr 2025 17:25:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Увеличение окна GUI по мере ввода текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=162202#p162202</link>
			<description><![CDATA[<p><strong>Alectric</strong><br />Попробуйте поудалять цифры бэкспейсом.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 07 Apr 2025 17:25:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=162202#p162202</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Увеличение окна GUI по мере ввода текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=162201#p162201</link>
			<description><![CDATA[<p>Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (1srafel)]]></author>
			<pubDate>Mon, 07 Apr 2025 15:37:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=162201#p162201</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Увеличение окна GUI по мере ввода текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=162200#p162200</link>
			<description><![CDATA[<div class="codebox"><pre><code>Gui, +AlwaysOnTop +ToolWindow hwndMainWin -dpiscale
Gui, Color, F5F5F5
Gui, Font, S11, Tahoma
Gui, Add, Edit, w250 vn number hwndhEdit
Gui, Font, s11, Tahoma
Gui, Add, Text, vGuiText1 y43 x16 w303 ,  ;+0x201
obj := {h: hEdit}
obj.f := fn := Func(&quot;SetDots&quot;).Bind(obj)
GuiControl, +g, %hEdit%, % fn
Gui, Show,,
GuiControlGet,H,Pos,GuiText1
GuiControl, , GuiText1,
WinGetPos, X, Y, Width, Height, ahk_id %MainWin%
global MainWin,HH,Height
Return

GuiClose:
  ExitApp
  return

SetDots(obj)  {
  GuiControl, -g, % obj.h
  GuiControlGet, num,, % obj.h
  num := StrReplace(num, &quot; &quot;)

  n := num
  n:=RegExReplace(n,&quot;0&quot;, &quot;ноль`n&quot;)
  n:=RegExReplace(n,&quot;1&quot;, &quot;один`n&quot;)
  n:=RegExReplace(n,&quot;2&quot;, &quot;два`n&quot;)
  n:=RegExReplace(n,&quot;3&quot;, &quot;три`n&quot;)
  n:=RegExReplace(n,&quot;4&quot;, &quot;четыре`n&quot;)
  n:=RegExReplace(n,&quot;5&quot;, &quot;пять`n&quot;)
  n:=RegExReplace(n,&quot;6&quot;, &quot;шесть`n&quot;)
  n:=RegExReplace(n,&quot;7&quot;, &quot;семь`n&quot;)
  n:=RegExReplace(n,&quot;8&quot;, &quot;восемь`n&quot;)
  n:=RegExReplace(n,&quot;9&quot;, &quot;девять`n&quot;)

  GuiControl, , GuiText1, %n%

  static c
  c++
  WinMove, ahk_id %MainWin%,,,,,% Height+HH*c
  GuiControlGet,Pos,Pos,GuiText1
  GuiControl,Move,GuiText1,% &quot;h&quot; PosH+HH*c

  GuiControl,, % obj.h, % RegExReplace(num, &quot;\d(?=(\d{3})+$)&quot;, &quot;$0 &quot;)
  Send {End}
  fn := obj.f
  GuiControl, +g, % obj.h, % fn
}

esc::exitapp
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Mon, 07 Apr 2025 12:39:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=162200#p162200</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Увеличение окна GUI по мере ввода текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=162199#p162199</link>
			<description><![CDATA[<p>Следующий код преобразует цифры в слова в окне GUI. После ввода 5-строки, высота окна остается фиксированной. Как добавить возможность увеличения окна вниз, по мере ввода?<br /></p><div class="codebox"><pre><code>Gui, +AlwaysOnTop +ToolWindow hwndMainWin
Gui, Color, F5F5F5
Gui, Font, S11, Tahoma
Gui, Add, Edit, w250 vn number hwndhEdit
Gui, Font, s11, Tahoma
Gui, Add, Text, vGuiText1 y43 x16 w303 h84  ;+0x201
obj := {h: hEdit}
obj.f := fn := Func(&quot;SetDots&quot;).Bind(obj)
GuiControl, +g, %hEdit%, % fn
Gui, Show,, 
Return

GuiClose:
   ExitApp

SetDots(obj)  {
   GuiControl, -g, % obj.h
   GuiControlGet, num,, % obj.h
   num := StrReplace(num, &quot; &quot;)

   n := num
   n:=RegExReplace(n,&quot;0&quot;, &quot;ноль`n&quot;)
   n:=RegExReplace(n,&quot;1&quot;, &quot;один`n&quot;)
   n:=RegExReplace(n,&quot;2&quot;, &quot;два`n&quot;)
   n:=RegExReplace(n,&quot;3&quot;, &quot;три`n&quot;)
   n:=RegExReplace(n,&quot;4&quot;, &quot;четыре`n&quot;)
   n:=RegExReplace(n,&quot;5&quot;, &quot;пять`n&quot;)
   n:=RegExReplace(n,&quot;6&quot;, &quot;шесть`n&quot;)
   n:=RegExReplace(n,&quot;7&quot;, &quot;семь`n&quot;)
   n:=RegExReplace(n,&quot;8&quot;, &quot;восемь`n&quot;)
   n:=RegExReplace(n,&quot;9&quot;, &quot;девять`n&quot;)

   GuiControl, , GuiText1, %n%

   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>]]></description>
			<author><![CDATA[null@example.com (1srafel)]]></author>
			<pubDate>Sun, 06 Apr 2025 19:40:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=162199#p162199</guid>
		</item>
	</channel>
</rss>
