<?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=17441</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17441&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Поле ввода на GUI».]]></description>
		<lastBuildDate>Sat, 29 Oct 2022 11:46:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155474#p155474</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Замечательно, это именно то, что я хотел, щас осталось сделать по нажатию Enter чтобы она принимало в переменную это число и на экране пропадала надпись. Спасибо большое за помощь, извините если возможно плохо объяснил что именно нужно было.</p>]]></description>
			<author><![CDATA[null@example.com (jbn238)]]></author>
			<pubDate>Sat, 29 Oct 2022 11:46:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155474#p155474</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155467#p155467</link>
			<description><![CDATA[<p>Хотя скорее всего. Иначе наверняка и обычный Edit устроил бы.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 29 Oct 2022 10:54:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155467#p155467</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155464#p155464</link>
			<description><![CDATA[<p>Или про такое:<br /></p><div class="codebox"><pre><code>#UseHook
X_Text := 500
Y_Text := 300
fontName := &quot;Calibri&quot;
fontSize := 64
fontColor := 0x4682B4

Gui, Text: New, +LastFound +Owner -Caption +AlwaysOnTop +E0x20
Gui, Margin, 0, 0
Gui, Font, s%fontSize% q4 c%fontColor%, %fontName%
Gui, Color, FFFFFF
WinSet, Transcolor, FFFFFF
Gui, Add, Text
Return

F1::
   if (t := !t) {
      Hook := InputHook()
      Hook.KeyOpt(&quot;{All}&quot;, &quot;N&quot;)
      Hook.OnKeyDown := Func(&quot;OnKeyDown&quot;).Bind(X_Text, Y_Text, fontSize, fontName)
      Hook.Start()
   }
   else {
      Gui, Text:Show, Hide
      Hook.Stop()
   }
   Return

Esc:: ExitApp

OnKeyDown(X_Text, Y_Text, fontSize, fontName, Hook, vk, sc) {
   text := Hook.Input
   if (text = &quot;&quot;) {
      Gui, Text:Show, Hide
      Return
   }
   Gui, New
   Gui, Font, s%fontSize% q4, %fontName%
   Gui, Add, Text,, % text
   GuiControlGet, Pos, Pos, Static1
   Gui, Destroy
   
   Gui, Text: Default
   GuiControl, Move, Static1, w%PosW% h%PosH%
   GuiControl,, Static1, % text
   Gui, Show, NA x%X_Text% y%Y_Text% w%PosW% h%PosH%
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 29 Oct 2022 10:46:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155464#p155464</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155463#p155463</link>
			<description><![CDATA[<p>Тут нет поля ввода.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 29 Oct 2022 10:46:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155463#p155463</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155462#p155462</link>
			<description><![CDATA[<p>Я думаю что речь про такое.<br /></p><div class="codebox"><pre><code>
#NoEnv
#SingleInstance Force  

Gui, +AlwaysOnTop -Caption
Gui, Margin, 0, 0
Gui, Font, s66  
Gui, Font, cE5F3FF 
Gui, Color, 389AE8
Gui, Add, Text, Center Border gText1 vText1 w262, PIN
Gui, Add, Edit, vKey1 Center Hidden Limit4 Number gKey1 xp yp wp hp   
Gui, Show
Return

Esc::ExitApp 
 
Text1() {
	GuiControl, Focus, Key1
}
	
Key1() {    
	GuiControlGet, Key1 
	GuiControl, , Text1, % Key1
} 
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 29 Oct 2022 10:44:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155462#p155462</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155459#p155459</link>
			<description><![CDATA[<p>Я думал без поля ввода вообще.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 29 Oct 2022 10:39:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155459#p155459</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155456#p155456</link>
			<description><![CDATA[<p>Кстати &quot;цифровое&quot; пропустил.<br /></p><div class="codebox"><pre><code>
#NoEnv
#SingleInstance Force  
 
Gui, Font, s16  
Gui, Add, Text, Center Border gText1 vText1 w222,кликни меня
Gui, Add, Edit, vKey1 Hidden Number gKey1 xp yp wp hp  
Gui, Add, Edit, Center wp    
Gui, Show
Return

Esc::ExitApp 
 
Text1() {
	GuiControl, Focus, Key1
}
	
Key1() {    
	GuiControlGet, Key1 
	GuiControl, , Text1, % Key1
} 
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 29 Oct 2022 10:38:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155456#p155456</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155455#p155455</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Так он и будет выводится в виде Gui, Add, Text. <br />Тебя не смущает в тз - &quot;своё цифровое поле ввода&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 29 Oct 2022 10:35:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155455#p155455</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155454#p155454</link>
			<description><![CDATA[<p>Я так понял, что нужно, чтобы текст выводился прямо на экран. Тогда действительно InputHook.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 29 Oct 2022 10:31:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155454#p155454</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155451#p155451</link>
			<description><![CDATA[<p>Самое простое решение.<br /></p><div class="codebox"><pre><code>
#NoEnv
#SingleInstance Force  
 
Gui, Font, s16  
Gui, Add, Text, Center Border gText1 vText1 w222,кликни меня
Gui, Add, Edit, Center wp    
Gui, Add, Edit, vKey1 Hidden gKey1 w0 h0  
Gui, Show
Return

Esc::ExitApp 
 
Text1() {
	GuiControl, Focus, Key1
}
	
Key1() {    
	GuiControlGet, Key1 
	GuiControl, , Text1, % Key1
} 
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 29 Oct 2022 10:25:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155451#p155451</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155445#p155445</link>
			<description><![CDATA[<p>Возможно вам поможет <a href="https://www.autohotkey.com/docs/commands/InputHook.htm">InputHook</a>?</p>]]></description>
			<author><![CDATA[null@example.com (Phoenixxx_Czar)]]></author>
			<pubDate>Sat, 29 Oct 2022 08:14:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155445#p155445</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155442#p155442</link>
			<description><![CDATA[<p><strong>jbn238</strong><br />Это все равно особо не говорит о том, где вы хотите это вводить, то есть, когда учитывать ваши нажатия, а когда нет. <br />Если ввод осуществляется внутри Gui вашего окна, тогда то, что я вам выше посоветовал, а если это происходит только в некоторых моментах, то тут немного посложнее будет.<br />Однако я все равно не вижу смысла от этого, если второй вариант.<br />Визуально бы показали, либо подождите других, может они вас поймут и ответят.</p>]]></description>
			<author><![CDATA[null@example.com (Clannad5)]]></author>
			<pubDate>Sat, 29 Oct 2022 02:04:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155442#p155442</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155441#p155441</link>
			<description><![CDATA[<p><strong>Clannad5</strong><br />Хочу реализовать ввод пин-кода, чтобы на экране показывало какие именно цифры нажимаю, если допустил ошибку, чтобы была возможность стирать, и все это так же отображалось на экране. А именно на GUI, чтобы красиво оформить.</p>]]></description>
			<author><![CDATA[null@example.com (jbn238)]]></author>
			<pubDate>Sat, 29 Oct 2022 01:12:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155441#p155441</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155438#p155438</link>
			<description><![CDATA[<p><strong>jbn238</strong><br />Не особо понял что вы хотите.<br />Вы хотите конкретно использовать Gui, как вывод текста при нажатий? Обычного ToolTip не подойдёт?<br />Если Gui, то используйте Gui + Горячие клавиши, в чём проблема?При нажатий по горячим клавишам, выводите информацию в Gui.</p>]]></description>
			<author><![CDATA[null@example.com (Clannad5)]]></author>
			<pubDate>Fri, 28 Oct 2022 21:22:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155438#p155438</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Поле ввода на GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155428#p155428</link>
			<description><![CDATA[<p>Доброго времени, хочу сделать своё цифровое поле ввода, с помощью GUI. Например: при нажатие на кнопку 1 (неважно Num или обычную), на экране выводилось 1, после при нажатие 2, на экране уже было &quot;12&quot;, при нажатие на Backspace чтобы символ стирался. Подскажите, пожалуйста, как можно такое реализовать?</p><p>p.s. стандартные InputBox и Gui,Edit не подходят.</p>]]></description>
			<author><![CDATA[null@example.com (jbn238)]]></author>
			<pubDate>Fri, 28 Oct 2022 15:31:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155428#p155428</guid>
		</item>
	</channel>
</rss>
