<?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=13413&amp;type=atom" />
	<updated>2018-01-26T19:04:29Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13413</id>
		<entry>
			<title type="html"><![CDATA[Re: [AHK] Проблемы с активным окном [Разобрался. Тема ЗАКРЫТА]]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123411#p123411" />
			<content type="html"><![CDATA[<p><strong>stealzy</strong>, в разделе Games тишина как будто все умерли</p>]]></content>
			<author>
				<name><![CDATA[bsmolz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39003</uri>
			</author>
			<updated>2018-01-26T19:04:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123411#p123411</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[AHK] Проблемы с активным окном [Разобрался. Тема ЗАКРЫТА]]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123398#p123398" />
			<content type="html"><![CDATA[<p>Суть такова что у меня есть скрипт.<br /></p><div class="codebox"><pre><code>
#Persistent
#IfWinActive GTA:SA:MP
#Include SAMP.ahk

while (true)
{
	Filedelete, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
	Fileappend, , %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
	loop
	{
	label:
	Loop, Read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
		{
			IfInString, A_LoopReadLine, БАНКОВСКИЙ ЧЕК
			{
			goto, label1
			}
			else IfInString, A_LoopReadLine, Server closed the connection
			{
			goto, label2
			}
			else IfInString, A_LoopReadLine, Добро пожаловать на Advance RolePlay
			{
			goto, label3
			}
			else IfInString, A_LoopReadLine, Сервер возобновит работу в течение минуты
			{
			goto, label4
			}
		}
		
	SetTimer, CheckPayDay1, 1000 
	return 

	CheckPayDay1: 
	if (A_Min == 59 &amp;&amp; A_Sec == 30 || A_Min == 29 &amp;&amp; A_Sec == 30 || A_Min == 30 &amp;&amp; A_Sec == 30)
		{ 
			Send {vk57 down}
			sleep 500
			Send {vk57 up}
			Sendinput {Esc down}
			sleep 50
			Sendinput {Esc up}w
			Send {vk57 down}
			sleep 500
			Send {vk57 up}
		}

	goto, label
	label1:
	Filedelete, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
	Fileappend, , %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
		{
		Send {vk57 down}
		sleep 500
		Send {vk57 up}
		Sendinput {Esc down}
		sleep 50
		Sendinput {Esc up}		
		}
	
	goto, label
	label2:
	Filedelete, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
	Fileappend, , %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
		{
			SendInput, {f6}/recon 15{Enter}
		}
	
	goto, label
	label3:
	Filedelete, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
	Fileappend, , %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
	Sleep 3000
	Loop, Read, file.txt
		{
			Sendinput %A_LoopReadLine%{Enter}
			sleep 1500
			Send {vk57 down}
			sleep 500
			Send {vk57 up}
			Sendinput {Esc down}
			sleep 50
			Sendinput {Esc up}
		}
	
	goto, label
	label4:
	Filedelete, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
	Fileappend, , %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
		{
			SendInput {F6}/recon 180{Enter}
		}
	}
}
return</code></pre></div><p>Но из-за каких то неполадок выбивает на рабочий стол и сворачивает игру а из-за &quot;#IfWinActive GTA:SA:MP&quot; скрипт не работает (<br /><strong>ВОПРОС:</strong> Как сделать чтобы активное окно GTA:SA:MP никогда не сворачивалось а если сворачивалось то разворачивалось сразу же ????<br /></p><div class="quotebox"><blockquote><p>P.S Описал проблему вроде доступно и вопрос вроде поставлен правильно.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[bsmolz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39003</uri>
			</author>
			<updated>2018-01-26T17:04:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123398#p123398</id>
		</entry>
</feed>
