<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; АХК для SA:MP]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=13955</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13955&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «АХК для SA:MP».]]></description>
		<lastBuildDate>Wed, 25 Jul 2018 18:38:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: АХК для SA:MP]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=127359#p127359</link>
			<description><![CDATA[<p><strong>stealzy</strong><br />Никакого результата, но спасибо за попытку помочь</p>]]></description>
			<author><![CDATA[null@example.com (vchih277)]]></author>
			<pubDate>Wed, 25 Jul 2018 18:38:15 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=127359#p127359</guid>
		</item>
		<item>
			<title><![CDATA[Re: АХК для SA:MP]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=127215#p127215</link>
			<description><![CDATA[<p><strong>stealzy</strong><br />Т.е. эта строка будет выглядеть так?: <br /></p><div class="codebox"><pre><code>ControlSend, , password{enter}, ahk_exe gta_sa.exe</code></pre></div><p>Ну и другая строка с ControlSent по такому же принцыпу</p>]]></description>
			<author><![CDATA[null@example.com (vchih277)]]></author>
			<pubDate>Fri, 20 Jul 2018 18:25:59 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=127215#p127215</guid>
		</item>
		<item>
			<title><![CDATA[Re: АХК для SA:MP]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=127204#p127204</link>
			<description><![CDATA[<p><strong>Kinobi 0 in skripti</strong><br />Да вчера по этой и еще нескольким похожими сидел больше часа и результат никакой, видимо не мое это) Но спасибо за подсказку</p>]]></description>
			<author><![CDATA[null@example.com (vchih277)]]></author>
			<pubDate>Fri, 20 Jul 2018 15:14:13 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=127204#p127204</guid>
		</item>
		<item>
			<title><![CDATA[Re: АХК для SA:MP]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=127203#p127203</link>
			<description><![CDATA[<p>Попробуй взять что-нибудь из <a href="http://forum.script-coding.com/viewtopic.php?id=11197">этой</a> темы.</p>]]></description>
			<author><![CDATA[null@example.com (Kinobi 0 in skripti)]]></author>
			<pubDate>Fri, 20 Jul 2018 15:10:50 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=127203#p127203</guid>
		</item>
		<item>
			<title><![CDATA[Re: АХК для SA:MP]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=127200#p127200</link>
			<description><![CDATA[<p><strong>stealzy</strong><br />Пробовал вчера еще так, перестало работать вовсе даже при открытой игре.<br /> </p><div class="codebox"><pre><code>StringCaseSense, Locale
name = C:\Users\Fanta\Documents\GTA San Andreas User Files\SAMP\chatlog.txt
loop
{
lastline := GetNewLine(name)
IfInString, lastline, Connected to {B9C9BF}Diamond Role Play | Sapphire
{
sleep 5000
ControlSend, password{enter}, ahk_exe gta_sa.exe
}
ifinstring, lastline, Server closed the connection.
{
sleep 1500
ControlSend, {f6}/rec 20{enter}, ahk_exe gta_sa.exe
}
}
GetNewLine(filename)
{
   static old
   static new
   if !old
   {
      FileGetSize, old, %filename%
      new := old
   }
   while old = new
   {
      sleep 500
      FileGetSize, new, %filename%
   }
   old := new
   Loop, read, %filename%
      if A_LoopReadLine
         last := A_LoopReadLine
   return last
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (vchih277)]]></author>
			<pubDate>Fri, 20 Jul 2018 14:22:01 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=127200#p127200</guid>
		</item>
		<item>
			<title><![CDATA[АХК для SA:MP]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=127156#p127156</link>
			<description><![CDATA[<p>Здравствуйте. Нужна помощь, нужно сделать так, чтоб этот АХК работал когда игра свернута. В AHK не особо шарю, поэтому не ругайтесь <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>StringCaseSense, Locale
name = C:\Users\Fanta\Documents\GTA San Andreas User Files\SAMP\chatlog.txt
loop
{
lastline := GetNewLine(name)
IfInString, lastline, Connected to {B9C9BF}Diamond Role Play | Sapphire
{
sleep 5000
SendInput, password{enter}
}
ifinstring, lastline, Server closed the connection.
{
sleep 1500
SendInput, {f6}/rec 20{enter}
}
}
GetNewLine(filename)
{
   static old
   static new
   if !old
   {
      FileGetSize, old, %filename%
      new := old
   }
   while old = new
   {
      sleep 500
      FileGetSize, new, %filename%
   }
   old := new
   Loop, read, %filename%
      if A_LoopReadLine
         last := A_LoopReadLine
   return last
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (vchih277)]]></author>
			<pubDate>Thu, 19 Jul 2018 13:35:39 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=127156#p127156</guid>
		</item>
	</channel>
</rss>
