<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: AddChatMessege]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17890&amp;type=atom" />
	<updated>2023-07-26T17:28:31Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17890</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: AddChatMessege]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158891#p158891" />
			<content type="html"><![CDATA[<p>Эта ошибка означает, что в вашем коде не определена какая-то из функций, которые вы вызываете.<br />Сравните:<br /></p><div class="codebox"><pre><code>MyFunc()</code></pre></div><p>и<br /></p><div class="codebox"><pre><code>MyFunc()

MyFunc() {
   MsgBox, % A_ThisFunc
}</code></pre></div><p>Запустите сначала первый код, потом второй.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-07-26T17:28:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158891#p158891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: AddChatMessege]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158890#p158890" />
			<content type="html"><![CDATA[<p>Не понимаю почему выводит ошибку &quot;Вызов не существующей функции&quot;.</p><div class="codebox"><pre><code>
Ctrl &amp; 2::
FileRead, Str, %chatlog%
StringReplace, Str, Str, `r`n, `n, 1
StringReplace, Str, Str, `r, `n, 1
RegExMatch(&quot;`n&quot; Str &quot;`n&quot;, &quot;i).*\n\[\d+:\d+:\d+.\d+]\s*\ .*?\[(.*?)] : \s*(/`*.*?(\d+)\s.*?)\n&quot;, match)

SendInput,{F6}/id %match3%{Enter}
Sleep 270
SendMessage, 0x50,, 0x4190419,, A

FileRead, Str, %chatlog%
StringReplace, Str, Str, `r`n, `n, 1
StringReplace, Str, Str, `r, `n, 1
RegExMatch(&quot;`n&quot; Str &quot;`n&quot;, &quot;i).*\n\[\d+:\d+:\d+.\d+] (.*)\Q[\E(.*?)\Q]\E {66CC66}id (\d+)&quot;, result)
if (!(result1 ~= &quot;^[A-Z][a-z]+_[A-Z][A-Za-z]+$&quot;) &amp;&amp; result2 != &quot;&quot;) {
SendInput, {F6}/pm %match3% /mn - Изменить имя(Имя_Фамилия){Enter}
sleep 100
SendInput, {F6}/pm %match1% Игрок уведомлён. Спасибо за информацию{Enter}
}
else
{
addChatMessage(&quot;{FFFFFF}Нажмите {0000FF}1{FFFFFF} если у игрока NonRP nick&quot;)
addChatMessage(&quot;{FFFFFF}Нажмите {0000FF}2{FFFFFF} если у игрока RP nick&quot;)
addChatMessage(&quot;{FFFFFF}Нажмите {0000FF}3{FFFFFF} для отмены&quot;)
while (!GetKeyState(&quot;1&quot;, &quot;P&quot;) &amp;&amp; !GetKeyState(&quot;2&quot;, &quot;P&quot;) &amp;&amp; !GetKeyState(&quot;3&quot;, &quot;P&quot;))
continue
if (GetKeyState(&quot;1&quot;, &quot;P&quot;)) {
sleep 100
SendChat(&quot;/pm &quot; match3 &quot; /mn - Изменить имя(Имя_Фамилия)&quot;)
SendChat(&quot;/pm &quot; match1 &quot; Игрок уведомлён. Спасибо за информацию&quot;)
}
else if (GetKeyState(&quot;2&quot;, &quot;P&quot;)) {
sleep 100
SendChat(&quot;/pm &quot; match1 &quot; У игрока RP nick&quot;)
}
else if (GetKeyState(&quot;3&quot;, &quot;P&quot;)) {
sleep 100
AddChatMessage(&quot;Отменено&quot;)
}
}
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[klimentijtrohin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42633</uri>
			</author>
			<updated>2023-07-26T17:18:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158890#p158890</id>
		</entry>
</feed>
