<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Сравнение ActiveTitle]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=8969&amp;type=atom" />
	<updated>2013-12-05T17:45:10Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=8969</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сравнение ActiveTitle]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77863#p77863" />
			<content type="html"><![CDATA[<p>В смысле &quot;слипы&quot; -sleep. Если присваивать значение -то оно будет статичным -что немного не вписывается в мой скрипт, потому паузы между выполнением каких-то частей кода мне нужны зависимые от заголовков. сменился заголовок -идём дальше, если заголовок не сменился с начала выполнения скрипта -проверяем заголовок пока тот не сменится.<br /><strong>2Irbis</strong>, Спасибо, сейчас проверим )</p>]]></content>
			<author>
				<name><![CDATA[unKn0wn]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27432</uri>
			</author>
			<updated>2013-12-05T17:45:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77863#p77863</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сравнение ActiveTitle]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77860#p77860" />
			<content type="html"><![CDATA[<p>Попробую угадать<br /></p><div class="codebox"><pre><code>WinGetActiveTitle, t
loop {
   WinWaitActive,,,, %t% ; Ждем смены окна
   WinGetActiveTitle, t   ; Новый заголовок
   MsgBox,,, Окно сменилось,1 ; Действие
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2013-12-05T17:38:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77860#p77860</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сравнение ActiveTitle]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77859#p77859" />
			<content type="html"><![CDATA[<p><strong>unKn0wn</strong>, не думаю, что Вас кто-то понял. Что за &quot;слипы&quot;? Куда &quot;идём дальше&quot;? Что вообще конкретно нужно?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2013-12-05T17:16:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77859#p77859</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Сравнение ActiveTitle]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77858#p77858" />
			<content type="html"><![CDATA[<p>Собственно возник вопрос проверок действий и более гибких слипов. Собственно работаю с окнами, есть множество окон, работаю с каждым, и титл меняется -подумал к этому привязать слипы. Чтобы вместо слипов были условия &quot;если окно не совпадает -идём дальше, если совпадает проверяем титл пока оно не сменится.</p><br /><div class="codebox"><pre><code>
WinGetTitle, ttlx, A ;поиск окна в начале всех действий -для сравнения
ttlx1 = %ttlx%
ttlxs := ttlx1

;Множество действий которые влияют на значение WinTitle

WinGetTitle, ttlxx, A ; поиск окна после всех действий(чтобы использовать для сравнения) когда оно по идее должно было изменится
ttlxx1 = %ttlxx%
ttlxxs := ttlxx1
            
Loop ; проверять титлы пока не будет окно отличатся от предыдущего.
{
WinGetTitle
if ttlx1 &lt;&gt; ttlxx1 
MsgBox, Не одинаковый
return  
WinGetTitle, ttlxx, A
MsgBox, Одинаковый

}
</code></pre></div><p>Ну или быть может у вас есть предложения как это всё сделать по другому? Не таким методом? Я работаю с браузером..</p>]]></content>
			<author>
				<name><![CDATA[unKn0wn]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27432</uri>
			</author>
			<updated>2013-12-05T17:07:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77858#p77858</id>
		</entry>
</feed>
