<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11988&amp;type=atom" />
	<updated>2016-09-07T19:02:35Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=11988</id>
		<entry>
			<title type="html"><![CDATA[Re: Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107405#p107405" />
			<content type="html"><![CDATA[<p>Можно так еще:<br /></p><div class="codebox"><pre><code>f1::
a := &quot;{!}+&quot;
SendInput % Raw(a)
return

Raw(var)
{
   return RegExReplace(var, &quot;([!\+\^#\{}])&quot;, &quot;{$1}&quot;)
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-07T19:02:35Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107405#p107405</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107404#p107404" />
			<content type="html"><![CDATA[<p>С этими есть одна хитрая история. <em>SendInput +[{блабла</em> даст <em>{блабла}</em>. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-09-07T18:31:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107404#p107404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107403#p107403" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>!+^# - это модификаторы. Буква, идущая следом за любым из них</p></blockquote></div><p>Еще эти:<br />{}</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-07T18:05:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107403#p107403</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107402#p107402" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>WATKINS пишет:</cite><blockquote><p>беда в том, что метод вывода &quot;SendInput&quot; по каким-то причинам не выводит спец. символы</p></blockquote></div><p>Эти причины общеизвестны. !+^# - это модификаторы. Буква, идущая следом за любым из них, будет отрабатывать как комбинация. Чтобы это исключить, спереди последовательности символов ставится <strong>{Raw}</strong>.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-09-07T17:59:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107402#p107402</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107401#p107401" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong> , <strong>Flasher</strong><br />Спасибо, парни, что не прошли мимо и натолкнули на верную мысль.<br />В общем, беда в том, что метод вывода &quot;SendInput&quot; по каким-то причинам не выводит спец. символы &quot;\.*?+[{|()^$&quot;.</p><p>Для тех, кто столкнется с такой же проблемой:</p><p>Решил проблему, узнав что в msg выводит, дополнением AHK для GTA:SA под названием &quot;SAMP UDF 0.3.7&quot;, использовав другой метод вывода в чат под названием: SendChat().</p><p>Спасибо, что откликнулись, решение нашел, можно закрывать.</p>]]></content>
			<author>
				<name><![CDATA[WATKINS]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34184</uri>
			</author>
			<updated>2016-09-07T17:32:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107401#p107401</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107400#p107400" />
			<content type="html"><![CDATA[<p>Замените:<br /></p><div class="codebox"><pre><code>SendInput, {f6}%Match3% от %Match1%{enter}</code></pre></div><p>на:<br /></p><div class="codebox"><pre><code>SendInput, {f6}{raw}%Match2% от %Match1%
SendInput, {enter}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-07T17:30:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107400#p107400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107399#p107399" />
			<content type="html"><![CDATA[<p>Ну, так и то работает:<br /></p><div class="codebox"><pre><code>Var := &quot;[20:20:20] [A] Name_Surname[ID]: Hello+World&quot;
RegExMatch(Var, &quot;\[A\] (.+): (.+)$&quot;, match)

MsgBox %Match2% от %Match1%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-09-07T17:21:49Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107399#p107399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107398#p107398" />
			<content type="html"><![CDATA[<p>Скрипт из первого поста работает правильно:<br /></p><div class="codebox"><pre><code>a := &quot;[20:20:20] [A] Name_Surname[ID]: Hello+World&quot;
RegExMatch(a, &quot;\[\d+:\d+:\d+] \[A] (.*)\[(.*)]: ([a-zA-Z0-9_ \+/]*)&quot;, Match)
msgbox %Match3% от %Match1%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-07T17:16:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107398#p107398</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107397#p107397" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong><br />Проверил вашу часть кода, не срабатывает.<br />Строка: &quot;[20:20:20] [A] Name_Surname[1]: /warn 10 +C&quot; выводится в чат игры как &quot;/warn 10 C от Name_Surname&quot;.</p>]]></content>
			<author>
				<name><![CDATA[WATKINS]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34184</uri>
			</author>
			<updated>2016-09-07T17:09:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107397#p107397</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107396#p107396" />
			<content type="html"><![CDATA[<p>А Match3 вообще тут нужен?<br /></p><div class="codebox"><pre><code>RegExMatch(A_LoopReadLine, &quot;\[A\] (.+): (.+)$&quot;, Match)
; тут остальное
SendInput, {f6}%Match2% от %Match1%{enter}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-09-07T16:09:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107396#p107396</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Выборка спец. символов при RegExMatch() для GTA:SA]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107385#p107385" />
			<content type="html"><![CDATA[<p>Часть кода, который отвечает за то, чтобы изымать нужные слова из определенных строк не выводит некоторые спец. символы. Помогите решить этот вопрос. Собственно, часть кода:</p><div class="codebox"><pre><code>RegExMatch(A_LoopReadLine, &quot;\[\d+:\d+:\d+] \[A] (.*)\[(.*)]: ([a-zA-Z0-9_ \+/]*)&quot;, Match) 
SendInput, {left 100}{Shift Down}{right 100}{Shift Up}{Backspace}{enter}
sleep 20
SendMessage, 0x50,, 0x4190419,, A 
SendInput, {f6}%Match3% от %Match1%{enter}</code></pre></div><p>При выводе с переменной Match3 пропускает символ &quot;+&quot;. <br />Например, из строки &quot;[20:20:20] [A] Name_Surname[ID]: Hello+World&quot; выведет лишь &quot;HelloWorld от Name_Surname&quot;. Почему?</p><p>С нетерпением жду ответа. Спасибо</p>]]></content>
			<author>
				<name><![CDATA[WATKINS]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34184</uri>
			</author>
			<updated>2016-09-07T11:53:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107385#p107385</id>
		</entry>
</feed>
