<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Переменная в GUI]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14774&amp;type=atom" />
	<updated>2019-05-11T16:23:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14774</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переменная в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134293#p134293" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>F1::
Gui, Submit, NoHide
Msgbox, % &quot;Wait: &quot; Edit &quot;`nText: &quot; Text
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2019-05-11T16:23:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134293#p134293</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переменная в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134289#p134289" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[rossmad3]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33356</uri>
			</author>
			<updated>2019-05-11T01:44:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134289#p134289</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переменная в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134288#p134288" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-05-11T01:21:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134288#p134288</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Переменная в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134285#p134285" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[rossmad3]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33356</uri>
			</author>
			<updated>2019-05-10T20:59:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134285#p134285</id>
		</entry>
</feed>
