<?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=14774</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14774&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Переменная в GUI».]]></description>
		<lastBuildDate>Sat, 11 May 2019 16:23:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Переменная в GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134293#p134293</link>
			<description><![CDATA[<div class="codebox"><pre><code>F1::
Gui, Submit, NoHide
Msgbox, % &quot;Wait: &quot; Edit &quot;`nText: &quot; Text
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Phoenixxx_Czar)]]></author>
			<pubDate>Sat, 11 May 2019 16:23:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134293#p134293</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Переменная в GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134289#p134289</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong> cпасибо, еще такой вопрос остался. Как возможно в сообщение Send поместить переменные из двух разных Edit?</p><br /><p>Ну совсем не получается с переменными в GUI. Уже пол гугла перелопатил. Добавил второй Edit, сделал уже и перед размерами переменную (как я понял, она должна начинатся с &quot;V&quot;, и после размеров делал переменную, и потом вставлял в Send, все равно не работает. </p><p>Дорабатываю скрипт, и теперь в Send сообщение состоит из %переменная из первого Edit% и %переменная из второго Edit%. Ваш совет помог, но вторая переменная vObr так-же просто ничего не добавляет </p><div class="codebox"><pre><code>#SingleInstance force

Gui, Add, Edit, vObr x12 y119 w80 h20 
Gui, Add, Text, x2 y99 w90 h20 +Center, Обращение
Gui, Add, Text, x2 y49 w90 h20 +Center, Задержка
Gui, Add, Edit, x12 y69 w80 h20 Number vEdit
Gui, Font, S16 CDefault, Arial
Gui, Font, S12 CDefault, Arial
Gui, Add, Text, x32 y9 w200 h20 ,by Shafty [NoAPI]
Gui, Font, S12 CDefault, 6
Gui, Add, Text, x142 y59 w10 h-40, vText
Gui, Font, S12 CDefault, 2
Gui, Font, S12 CDefault, 1
Gui, Add, Text, x102 y39 w150 h110 +Center,  text.txt
Gui, Show, x246 y180 h164 w264, VKFlood
Return

F1::
MouseGetPos x, y, 1
GuiControlGet, Edit 
Loop
{
    FileReadLine, a, %A_WorkingDir%\text.txt, %A_Index%
	Click %x% %y%
    Send %oBr% %a% {enter}	
    sleep, %Edit%
}
F2::Pause
F3::Reload
GuiClose:
ExitApp

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (rossmad3)]]></author>
			<pubDate>Sat, 11 May 2019 01:44:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134289#p134289</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Переменная в GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134288#p134288</link>
			<description><![CDATA[<div class="codebox"><pre><code>
F1::
GuiControlGet, Edit 
Loop
{
    FileReadLine, a, %A_WorkingDir%\text.txt, %A_Index%
	Click 
    Send %a% {enter}	
    sleep, %Edit%
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 11 May 2019 01:21:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134288#p134288</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Переменная в GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134285#p134285</link>
			<description><![CDATA[<p>Как объявить переменную в GUI элементе? Нужно что бы переменная вводимая в Edit стал числом для задержки Sleep</p><div class="codebox"><pre><code>Gui, Add, Text, x12 y49 w80 h20 , Задержка в мс
Gui, Add, Edit, x12 y69 w80 h20 Number vEdit
Gui, Font, S16 CDefault, Arial
Gui, Font, S12 CDefault, Arial
Gui, Add, Text, x32 y9 w200 h20 , [NoAPI]
Gui, Font, S12 CDefault, 6
Gui, Add, Text, x142 y59 w10 h-40 , Text
Gui, Font, S12 CDefault, 2
Gui, Font, S12 CDefault, 1
Gui, Add, Text, x102 y39 w150 h110 +Center, 
; Generated using SmartGUI Creator 4.0
Gui, Show, x246 y180 h164 w264, New GUI Window
Return
F1::
Loop
{
    FileReadLine, a, %A_WorkingDir%\text.txt, %A_Index%
	Click 
    Send %a% {enter}	
    sleep, %vEdit%
}
F2::Pause
GuiClose:
ExitApp</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (rossmad3)]]></author>
			<pubDate>Fri, 10 May 2019 20:59:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134285#p134285</guid>
		</item>
	</channel>
</rss>
