<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; АХК для SA:MP]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13955&amp;type=atom" />
	<updated>2018-07-25T18:38:15Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13955</id>
		<entry>
			<title type="html"><![CDATA[Re: АХК для SA:MP]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=127359#p127359" />
			<content type="html"><![CDATA[<p><strong>stealzy</strong><br />Никакого результата, но спасибо за попытку помочь</p>]]></content>
			<author>
				<name><![CDATA[vchih277]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39395</uri>
			</author>
			<updated>2018-07-25T18:38:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=127359#p127359</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АХК для SA:MP]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=127215#p127215" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vchih277]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39395</uri>
			</author>
			<updated>2018-07-20T18:25:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=127215#p127215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АХК для SA:MP]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=127204#p127204" />
			<content type="html"><![CDATA[<p><strong>Kinobi 0 in skripti</strong><br />Да вчера по этой и еще нескольким похожими сидел больше часа и результат никакой, видимо не мое это) Но спасибо за подсказку</p>]]></content>
			<author>
				<name><![CDATA[vchih277]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39395</uri>
			</author>
			<updated>2018-07-20T15:14:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=127204#p127204</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АХК для SA:MP]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=127203#p127203" />
			<content type="html"><![CDATA[<p>Попробуй взять что-нибудь из <a href="http://forum.script-coding.com/viewtopic.php?id=11197">этой</a> темы.</p>]]></content>
			<author>
				<name><![CDATA[Kinobi 0 in skripti]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38636</uri>
			</author>
			<updated>2018-07-20T15:10:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=127203#p127203</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АХК для SA:MP]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=127200#p127200" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vchih277]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39395</uri>
			</author>
			<updated>2018-07-20T14:22:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=127200#p127200</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[АХК для SA:MP]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=127156#p127156" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vchih277]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39395</uri>
			</author>
			<updated>2018-07-19T13:35:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=127156#p127156</id>
		</entry>
</feed>
