<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Переключение между окнами в игре]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=9116</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=9116&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Переключение между окнами в игре».]]></description>
		<lastBuildDate>Fri, 10 Jan 2014 07:29:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Переключение между окнами в игре]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=79056#p79056</link>
			<description><![CDATA[<p>Как то так...<br /></p><div class="codebox"><pre><code>
Timer := 30000
WinGet, WinMass, List, ahk_class ТочноеИмяКласса ;(можно посмотреть программой Window Spy).
Loop %WinMass%
{
    WinList .= WinMass%A_Index%
    TmpID := WinMass%A_Index%
    WinGetTitle, WinTitle, ahk_id%TmpID%
    WinSetTitle, ahk_id%TmpID%,, %WinTitle% (%A_Index%)
    WinList .= &quot; (&quot;A_Index &quot;)|&quot; n
}
Gui, Add, Text,, Окно игры:
Gui, Add, DDL, AltSubmit vWinGame Choose1, %WinList%
Gui, Add, Button, w50 x10 gGo, Старт
Gui, Add, Button, w50 x+20 gExit, Выход
Gui, show, x200 y100
Return

Go:
    Gui Submit
    hWnd := WinMass%WinGame%
    SetTimer, Action, %Timer%
    Return

Action:
    WinActivate, ahk_id%hWnd%
    SendInput, ~/kill
    SendInput, {Enter 5}
    Return
    
Exit:
    GuiClose:
        Loop %WinMass%
        {
            TmpID := WinMass%A_Index%
            WinSetTitle, ahk_id%TmpID%,, %WinTitle%
        }
        ExitApp
        
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Strongest)]]></author>
			<pubDate>Fri, 10 Jan 2014 07:29:04 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=79056#p79056</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Переключение между окнами в игре]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=78921#p78921</link>
			<description><![CDATA[<p>Подскажите, пожалуйста, как сделать переключение между окнами в игре? <br />Например, через 30 секунд скрипт переключался на окно игры, открывал консоль (~) и писал команду /kill, после, делал 5 нажатий клавиши &quot;Enter&quot;.&nbsp; Окон будет где-то 5. Сама игра TF2. Название процесса в диспетчере задач: hl2.exe</p>]]></description>
			<author><![CDATA[null@example.com (pro100steam)]]></author>
			<pubDate>Sun, 05 Jan 2014 10:16:03 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=78921#p78921</guid>
		</item>
	</channel>
</rss>
