<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Вопрос с трактовкой ControlGetText]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8474&amp;type=atom" />
	<updated>2013-07-13T17:59:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8474</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73752#p73752" />
			<content type="html"><![CDATA[<p>На деле это заметно не будет.<br />Все-таки я так и не понял, почему не действует определение контрола по его тексту.<br />Получается в справке ошибка?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-07-13T17:59:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73752#p73752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73751#p73751" />
			<content type="html"><![CDATA[<p>Единственное что можно применить, это ControlGetText использовать только для ComboBox из списка. Но это как ускорит так и удлинит код...</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-07-13T17:56:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73751#p73751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73750#p73750" />
			<content type="html"><![CDATA[<p>На разных.<br />Так как меню меняется в зависимости от типа файла.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-07-13T17:05:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73750#p73750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73749#p73749" />
			<content type="html"><![CDATA[<div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="quotebox"><blockquote><p>Main<br />Mixer<br />Effect<br />KARAOKE<br />FlexBass<br />AEC<br />VocalFX<br />Playback<br />Playback<br />Record<br />Record<br />Reset<br />More<br />Звукопоглощающая комната<br />Default<br />Bass<br />Treble<br />Dance<br />Opera<br />Rock<br />S-Rock<br />Jazz<br />Classic<br />Rap<br />Metal<br />H-Metal<br />UserDef<br />2<br />2 Channels<br />PCM 48 KHz<br />4 колонки<br />PCM<br />Reset<br />Reset<br />DH-1<br />DH-2<br />DH-3</p></blockquote></div></div></div><p>Да попутал по аналогии со своим окном. У него каждый раз в той же строке выдаётся текст ComboBox (4 колонки).</p><p>Я про то что может в ControlList строчка тоже всегда на том же месте?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-07-13T17:03:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73749#p73749</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73748#p73748" />
			<content type="html"><![CDATA[<p>Нет. Его может вообще не быть.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-07-13T16:45:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73748#p73748</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73746#p73746" />
			<content type="html"><![CDATA[<p>А нужный ComboBox не всегда находится на одной и тоже строке?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-07-13T16:43:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73746#p73746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73745#p73745" />
			<content type="html"><![CDATA[<p>В 4 строке находится путь к файлу.<br />Его я сравниваю с предыдущим путем.<br />Если они одинаковые, значит мы изменили все файлы.<br />Если нет, то посылается стрелка вниз, чтобы изменить следующий файл.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-07-13T16:40:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73745#p73745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73744#p73744" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>      if  A_Index = 4
      {
         FileNew := A_LoopField
         if (FileNew = File)
         {
            msgbox, done
            return
         }
      }
</code></pre></div><p>if&nbsp; A_Index = 4 что значит?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-07-13T16:38:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73744#p73744</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73743#p73743" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>AfxMDIFrame421<br />#327701<br />Cnps.ChamelBmpBtn.11<br />Cnps.ChamelBmpBtn.12<br />Cnps.ChamelBmpBtn.13<br />Cnps.ChamelBmpBtn.14<br />Cnps.ChameleonBtn.11<br />Static1<br />Static2<br />#327702<br />CUIDialog1<br />CUIStatic1<br />CUIButton1<br />CUIButton2<br />CUIButton3<br />CUIButton4<br />CUIButton5<br />CUIStatic2<br />CUIStatic3<br />CUIButton6<br />CUIButton7<br />CUIButton8<br />CUIStatic4<br />CUIStatic5<br />CUIStatic6<br />CUIEdit1<br />CUIListBox1<br />CUIButton9<br />ChameleonScrCtrlList1<br />CUIScrollBar1<br />ComboBox1<br />Static3<br />Static4<br />Static5<br />Static6<br />Static7<br />ComboBox2<br />Static8<br />CUIButton10<br />ComboBox3<br />Static9<br />CUIButton11<br />Static10<br />Static11<br />Static12<br />Static13<br />Afx:400000:3:10011:0:01<br />Afx:400000:3:10013:0:01<br />msctls_statusbar321</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-07-13T16:33:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73743#p73743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73742#p73742" />
			<content type="html"><![CDATA[<p>Можно увидеть List?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-07-13T16:21:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73742#p73742</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73741#p73741" />
			<content type="html"><![CDATA[<p>Так я это в скрипте и делаю.<br />После того как нахожу активирован ли нужный мне параметр<br /></p><div class="codebox"><pre><code>WinGetText, info, Rhozet Carbon Coder</code></pre></div><p>Составляю список<br /></p><div class="codebox"><pre><code>WinGet, List, ControlList, Rhozet Carbon Coder</code></pre></div><p>И в нем уже ищу название контрола соответствующее заданному тексту<br /> </p><div class="codebox"><pre><code>        WinGet, List, ControlList, Rhozet Carbon Coder
         Loop, Parse, List, `n, `r
         {
            ControlGetText, Text, %A_LoopField%, Rhozet Carbon Coder
            If (Text = ControlText)
            {
               Control, ChooseString, Non-Interlaced, %A_LoopField%, Rhozet Carbon Coder
               break
            }
         }
</code></pre></div><p>Просто вышло недопонимание с &quot;текстом контрола&quot; из справки.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-07-13T16:19:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73741#p73741</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73740#p73740" />
			<content type="html"><![CDATA[<p>Можно увидеть List: </p><div class="codebox"><pre><code>WinGet, List, ControlList, Rhozet Carbon Coder</code></pre></div><p>идеи пока только по оптимизации...</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-07-13T16:14:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73740#p73740</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73739#p73739" />
			<content type="html"><![CDATA[<p>Да, несколько.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-07-13T16:11:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73739#p73739</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73738#p73738" />
			<content type="html"><![CDATA[<p>Попробовал:</p><div class="codebox"><pre><code>Control, ChooseString, Наушники, колонки, Xonar DG Audio Center</code></pre></div><p>Видимо для ListBox\ComboBox не работает такой параметр.</p><p>Так понимаю, что ComboBox в вашем окне несколько?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-07-13T16:09:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73738#p73738</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос с трактовкой ControlGetText]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73737#p73737" />
			<content type="html"><![CDATA[<p>Да. Смысл всей этой затеи поменять Field First на Non-Interlaced<br /></p><div class="codebox"><pre><code>SetBatchLines, -1
DetectHiddenText, On
SetTitleMatchMode, 2
f11::
loop
{
   WinGetText, info, Rhozet Carbon Coder
   Loop, parse, info, `n, `r
   {
      if  A_Index = 4
      {
         FileNew := A_LoopField
         if (FileNew = File)
         {
            msgbox, done
            return
         }
      }
      if A_LoopField contains Field First
      {
         ControlText := A_LoopField
         WinGet, List, ControlList, Rhozet Carbon Coder
         Loop, Parse, List, `n, `r
         {
            ControlGetText, Text, %A_LoopField%, Rhozet Carbon Coder
            If (Text = ControlText)
            {
               Control, ChooseString, Non-Interlaced, %A_LoopField%, Rhozet Carbon Coder
               break
            }
         }
         break
      }
   }
   File := Filenew
   Send {down}
   sleep, 100
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-07-13T15:46:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73737#p73737</id>
		</entry>
</feed>
