<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Помогите с ahk для samp]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=17193</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=17193&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Помогите с ahk для samp».]]></description>
		<lastBuildDate>Sun, 19 Jun 2022 08:33:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Помогите с ahk для samp]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=153601#p153601</link>
			<description><![CDATA[<p><strong>valentinmax</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на <a href="https://forum.script-coding.com/viewtopic.php?id=5421">составление заголовков</a>, оформление <a href="https://forum.script-coding.com/misc.php?action=rules#code-formatting">кода</a>, заглавные <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">буквы</a> в начале и точки в конце предложений.<br />Вопросы по играм должны быть в соответствующей ветке, переношу.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 19 Jun 2022 08:33:21 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=153601#p153601</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Помогите с ahk для samp]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=153599#p153599</link>
			<description><![CDATA[<p>В файле появляются такие вот строчки [01:07:35] - привет {CCFF00}(Roy_Kind)[188]<br />мне нужно что бы ahk брал последнюю строчку и копировал [id] цифру в скобках <br />и отправлял ее такой вот командой<br />sendInput [F6] и тебе привет id {ENTER}</p><p>вот шаблон куда бы хотелось это запихнуть, но если только отдельно, то тоже рад</p><p>FileCLog:=% A_MyDocuments &quot;\RADMIR CRMP User Files\SAMP\chatlog.txt&quot;</p><p>loop<br />{</p><p>lastline := GetNewLine(FileCLog)</p><p>If lastline contains привет, чин, дай денег<br />{<br />SendInput, {F6} (тут id из последнего сообщения)<br />}<br />}</p><p>;------------------------------------<br />GetNewLine(filename)<br />{<br />static old<br />static new<br />if !old<br />{<br />FileGetSize, old, %filename%<br />new := old<br />}<br />while old = new<br />{<br />sleep 100<br />FileGetSize, new, %filename%<br />}<br />old := new<br />Loop, read, %filename%<br />if A_LoopReadLine<br />{<br />last := A_LoopReadLine<br />}<br />return last<br />}</p>]]></description>
			<author><![CDATA[null@example.com (valentinmax)]]></author>
			<pubDate>Sat, 18 Jun 2022 22:38:22 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=153599#p153599</guid>
		</item>
	</channel>
</rss>
