<?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=7561</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7561&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Считывание информации из окна GUI».]]></description>
		<lastBuildDate>Thu, 13 Sep 2012 09:36:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Считывание информации из окна GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=63827#p63827</link>
			<description><![CDATA[<p>Тогда нужно воспользоваться <em>Gui Submit</em> либо <em><a href="http://l.autohotkey.net/docs/commands/GuiControlGet.htm">GuiControlGet</a></em> по метке перехода.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Thu, 13 Sep 2012 09:36:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=63827#p63827</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Считывание информации из окна GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=63821#p63821</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Нет, в данном случае <em>Submit</em> не нужна, можно воспользоваться опцией <em>AltSubmit</em> в <a href="http://l.autohotkey.net/docs/commands/GuiControls.htm#Slider">слайдере</a>.</p></blockquote></div><p>Мне бы хотелось, чтобы пользователь мог вводить данные также&nbsp; и через Edit, вручную или через UpDown, а у них я что-то UpDown <em>AltSubmit</em> не вижу.</p>]]></description>
			<author><![CDATA[null@example.com (Pokerist)]]></author>
			<pubDate>Thu, 13 Sep 2012 05:09:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=63821#p63821</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Считывание информации из окна GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=63811#p63811</link>
			<description><![CDATA[<p>Нет, в данном случае <em>Submit</em> не нужна, можно воспользоваться опцией <em>AltSubmit</em> в <a href="http://l.autohotkey.net/docs/commands/GuiControls.htm#Slider">слайдере</a>.<br />Пример:<br /></p><div class="codebox"><pre><code>Gui, Color, 0xCCC8C0
Gui, Add, Text, x15 y15 w30 cRed Center, Red
Gui, Add, Text, xp-2 yp+30 wp cGreen Center, Green
Gui, Add, Text, xp yp+30 wp cBlue Center, Blue

Red := 255   ; начальные значения цвета
Green := 0
Blue := 0
Options := &quot;x50 w200 h20 Range0-255 ToolTip AltSubmit&quot;  ; обрати внимание на опцию AltSubmit
Gui, Add, Slider, vRed gColorSet %Options% yp-60, % Red
Gui, Add, Slider, vGreen gColorSet %Options% yp+30, % Green
Gui, Add, Slider, vBlue gColorSet %Options% yp+30, % Blue

Gui, Add, Text, vRedValue x+6 yp-59 w20 cRed, % Red
Gui, Add, Text, vGreenValue xp yp+30 wp cGreen, % Green
Gui, Add, Text, vBlueValue xp yp+30 wp cBlue, % Blue

Gui, 2: -Caption +ToolWindow +Parent1
Gui, 2:Color, % GetColorHexString(Red, Green, Blue)

Gui, Show, h200
Gui, 2:Show, x70 y115 w150 h50
return

ColorSet:
    GuiControl,, % A_GuiControl . &quot;Value&quot;, % %A_GuiControl%   ; переменная A_GuiControl содержит имя слайдера, запустившего метку
    Gui, 2:Color, % GetColorHexString(Red, Green, Blue)   ; переменные Red, Green, Blue содержат текущие значения
    return

GuiClose:
    ExitApp
    
GetColorHexString(Red, Green, Blue)
{
    Hex := &quot;123456789ABCDEF0&quot;
    Color := (Red &lt;&lt; 16)|(Green &lt;&lt; 8)|Blue
    Loop 6
        ColorHexString .= SubStr(Hex, (Color&gt;&gt;(24-4*A_Index))&amp;15, 1)
    Return &quot;0x&quot; ColorHexString
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 12 Sep 2012 21:15:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=63811#p63811</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Считывание информации из окна GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=63791#p63791</link>
			<description><![CDATA[<p>Создал окно Gui, в котором несколько элементов могут менять один и тот же параметр.</p><p><span class="postimg"><img src="http://s019.radikal.ru/i640/1209/4a/f0a19a615c8f.jpg" alt="http://s019.radikal.ru/i640/1209/4a/f0a19a615c8f.jpg" /></span></p><p> Правильно я понял, что для согласованния показаний есть только один способ:&nbsp; достаточно часто отслеживать через &quot;Submit&quot;&nbsp; показания всех элементов, запоминать, а при изменениях в каком-либо элементе, отправлять другим, связанным с ним, соответсвующее значение?</p>]]></description>
			<author><![CDATA[null@example.com (Pokerist)]]></author>
			<pubDate>Wed, 12 Sep 2012 11:47:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=63791#p63791</guid>
		</item>
	</channel>
</rss>
