<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Изменить ... очерёдность окна.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7642&amp;type=atom" />
	<updated>2012-09-29T15:39:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7642</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64374#p64374" />
			<content type="html"><![CDATA[<p>С помощью &quot;WinSet, Top,...&quot; действительно удаётся менять&nbsp; &quot;первое в очереди&quot; окно.</p><p> Спасибо за помощь.</p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-09-29T15:39:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64374#p64374</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64373#p64373" />
			<content type="html"><![CDATA[<p>Пример демонстрирует работу функции EnumWindows. Если неназываемое приложение использует стандартные функции, то список hwnd-ов оно, вероятно, получает именно использованием этой функции. </p><p>Вы ошибочно считаете, что исходя из поставленного условия вам можно предложить какую-то «помощь».</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-09-29T15:23:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64373#p64373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64372#p64372" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p>Пример:<br /></p><div class="codebox"><pre><code>DllCall(&quot;EnumWindows&quot;, &quot;Ptr&quot;, RegisterCallback(&quot;EnumWindowsProc&quot;, &quot;Fast&quot;), &quot;Ptr&quot;, 0)
MsgBox %output%

EnumWindowsProc(hwnd, lParam)
{
    global output
    WinExist(&quot;ahk_id&quot; hwnd)
    WinGetTitle, title
    WinGetClass, class
    if title
        Output .= &quot;HWND: &quot; . hwnd . &quot;`tTitle: &quot; . title . &quot;`tClass: &quot; . class . &quot;`n&quot;
    return true
}</code></pre></div></blockquote></div><p>Не смог понять, что в этом огромном списке я могу почерпнуть, и чем это может помочь. <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-09-29T15:06:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64372#p64372</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64371#p64371" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Александр_ пишет:</cite><blockquote><p>Такого понятия нет, windows не запоминает порядок открытия окон. А вот <a href="http://ru.wikipedia.org/wiki/%D0%9F%D0%BE%D1%80%D1%8F%D0%B4%D0%BE%D0%BA_%D0%BD%D0%B0%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F">z-order</a> есть и изменять его можно через <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms633545%28v=vs.85%29.aspx">SetWindowPos</a>.</p></blockquote></div><p>Но это, похоже, совсем другое. Это то же что меняется&nbsp; с помощью Winset Bottom или Top.&nbsp; Не знаю повлияет ли это на очерёдность нахождения окна. Проверю.</p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-09-29T14:56:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64371#p64371</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64365#p64365" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Pokerist пишет:</cite><blockquote><p>В условиях ошибки нет.</p></blockquote></div><p>Тогда, очевидно, что решения нет.<br /></p><div class="quotebox"><cite>Pokerist пишет:</cite><blockquote><p>Как вообще называется &quot;очерёдность&quot; окон?&nbsp; &quot;z-порядок&quot; какой-нибудь?</p></blockquote></div><p>Такого понятия нет, windows не запоминает порядок открытия окон. А вот <a href="http://ru.wikipedia.org/wiki/%D0%9F%D0%BE%D1%80%D1%8F%D0%B4%D0%BE%D0%BA_%D0%BD%D0%B0%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F">z-order</a> есть и изменять его можно через <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms633545%28v=vs.85%29.aspx">SetWindowPos</a>.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-09-29T12:39:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64365#p64365</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64364#p64364" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Pokerist пишет:</cite><blockquote><p>В условиях ошибки нет.</p></blockquote></div><p>Это вы зря <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="quotebox"><blockquote><p>Как вообще называется &quot;очерёдность&quot; окон?</p></blockquote></div><p>Как её вы назовёте, так она и поплывёт.</p><p><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms633497%28v=vs.85%29.aspx">EnumWindows function</a>. Пример:<br /></p><div class="codebox"><pre><code>DllCall(&quot;EnumWindows&quot;, &quot;Ptr&quot;, RegisterCallback(&quot;EnumWindowsProc&quot;, &quot;Fast&quot;), &quot;Ptr&quot;, 0)
MsgBox %output%

EnumWindowsProc(hwnd, lParam)
{
    global output
    WinExist(&quot;ahk_id&quot; hwnd)
    WinGetTitle, title
    WinGetClass, class
    if title
        Output .= &quot;HWND: &quot; . hwnd . &quot;`tTitle: &quot; . title . &quot;`tClass: &quot; . class . &quot;`n&quot;
    return true
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-09-29T12:34:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64364#p64364</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64363#p64363" />
			<content type="html"><![CDATA[<p>В условиях ошибки нет. Как вообще называется &quot;очерёдность&quot; окон?&nbsp; &quot;z-порядок&quot; какой-нибудь?</p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-09-29T12:15:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64363#p64363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64362#p64362" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Pokerist пишет:</cite><blockquote><p>Да, бывают такие программы по 200$.</p></blockquote></div><p>Я не это имею ввиду, а формулировку задачи.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-09-29T11:37:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64362#p64362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64360#p64360" />
			<content type="html"><![CDATA[<p>Если исходить из формулировки задачи используемой вами — решения нет. Если же задаться поиском решения, то нужно быть вами, чтоб знать все нюансы ситуации.</p><p>Поставьте под сомнение собственные выводы, пересмотрите каждый пункт условий, возможно на самом деле всё не так печально, как может показаться.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-09-29T11:17:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64360#p64360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64359#p64359" />
			<content type="html"><![CDATA[<p>Да, бывают такие программы по 200$.</p><p>Посоветуете что-то для решения проблемы?</p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-09-29T10:39:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64359#p64359</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64356#p64356" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Pokerist пишет:</cite><blockquote><p>Есть&nbsp; программа, которая находит окна по началам их имён.<br />...<br /><em> Менять имена окон нельзя.</em></p></blockquote></div><p>Гениально!</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-09-29T09:53:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64356#p64356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Изменить ... очерёдность окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=64355#p64355" />
			<content type="html"><![CDATA[<p>Даже не знаю как это правильно называется. z?</p><p> Опишу саму проблему.</p><p>Есть&nbsp; программа, которая находит окна по началам их имён. Сейчас возникла ситуация, когда имена всех окон начинаются одинаково. Поэтому она находит только то окно, которое было первым открыто.&nbsp; </p><p>&nbsp; &nbsp;Хочу сделать так, чтобы подсовывать ему нужное окно в нужный момент. Можно как-то менять свойства окон, чтобы нужное, в данный момент окно, становилось &quot;первым открытым&quot;? </p><p><em> Менять имена окон нельзя.</em></p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-09-29T09:19:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=64355#p64355</id>
		</entry>
</feed>
