<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Поиск определённой строки и изьятие переменной]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=9599&amp;type=atom" />
	<updated>2014-05-25T10:58:05Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=9599</id>
		<entry>
			<title type="html"><![CDATA[Re: Поиск определённой строки и изьятие переменной]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=83298#p83298" />
			<content type="html"><![CDATA[<p><strong>BashkaMen</strong>, не расстраивайтесь, код довольно бредовый! <img src="//forum.script-coding.com/img/smilies/lol.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-05-25T10:58:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=83298#p83298</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Поиск определённой строки и изьятие переменной]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=83296#p83296" />
			<content type="html"><![CDATA[<p>Ай-яй-яй код ведь мой. Зачем ты мой код открыл? Нехорошо. А потом выложишь типо ты сделал, молодец!</p>]]></content>
			<author>
				<name><![CDATA[BashkaMen]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30800</uri>
			</author>
			<updated>2014-05-25T10:54:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=83296#p83296</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Поиск определённой строки и изьятие переменной]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82994#p82994" />
			<content type="html"><![CDATA[<p>Приветствую! У меня есть такой скрипт </p><div class="codebox"><pre><code>F2:: 
filedelete, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
fileappend,, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
SelectedFile = %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
start1: 
Loop, Read, %SelectedFile% 
{ 
IfInString, A_LoopReadLine, ] - 
{ 
Goto, start 
} 
} 
goto, start1 
start: 
FileRead, NickName, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
RegExMatch(NickName, &quot;\Q] - \E(.*)\Q:\E&quot;, Nick) 
sleep 1100 
filedelete, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
fileappend,, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
Sendinput, {f6}/id %Nick1%{enter} 
sleep 400 
FileRead, file, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
foundpos:=RegExMatch(file, &quot;\[([0-9.]*)\]&quot;, code, -400) 
sleep 700 
sendinput, {F6}/repair %code1% 50{enter} 
sleep 1100 
sendinput, {F6}/refill %code1%{enter} 
filedelete, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
fileappend,, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
goto, start1 
F3::reload</code></pre></div><p>Как вы видите он ищет во такое </p><div class="codebox"><pre><code>RegExMatch(NickName, &quot;\Q] - \E(.*)\Q:\E&quot;, Nick) </code></pre></div><p>Но мне нужно чтоб скрипт искал</p><div class="codebox"><pre><code> Abc_Abc: чини | Abc_Abc: лей | Abc_Abc: lei</code></pre></div><p>Abc_Abc переменная.<br />Тоесть Abc_Abc Может быть другое A-z_A-z. А.<br />Помогите пожалуйста.</p>]]></content>
			<author>
				<name><![CDATA[Spark]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31901</uri>
			</author>
			<updated>2014-05-15T18:16:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82994#p82994</id>
		</entry>
</feed>
