<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Ошибка в коде]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12042</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12042&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Ошибка в коде».]]></description>
		<lastBuildDate>Wed, 28 Sep 2016 02:55:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Ошибка в коде]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108057#p108057</link>
			<description><![CDATA[<p>Версия ahk старая.<br />Обновить тут можно:<br /><a href="http://ahkscript.org">клик</a></p>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Wed, 28 Sep 2016 02:55:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108057#p108057</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ошибка в коде]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108054#p108054</link>
			<description><![CDATA[<p><strong>yalanne</strong> При запуске пишет Сall to nonexistent function c указанием на 5 строку.<br />Собственно, я уже сам со своим кодом разобрался, но спасибо за участие)</p>]]></description>
			<author><![CDATA[null@example.com (NektoN95)]]></author>
			<pubDate>Tue, 27 Sep 2016 19:05:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108054#p108054</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ошибка в коде]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108052#p108052</link>
			<description><![CDATA[<p>Этот результат должен быть?<br /></p><div class="codebox"><pre><code>String := &quot;75abdb0c192352a4097cd13faf107baaf361d53aac12&quot;
Const := 0x42
loop % StrLen(String)//2
{
	Out := Format(&quot;{:#x}&quot;, &quot;0x&quot;	SubStr(String, A_Index*2-1,2)	)
	toappend := Format(&quot;{:02x}&quot;,	out + const	)
	msgbox % Format(&quot;{:02x}&quot;,	out ) &quot;+&quot; Format(&quot;{:02x}&quot;,	const ) &quot;=&quot; toappend
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Tue, 27 Sep 2016 17:45:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108052#p108052</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Ошибка в коде]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108051#p108051</link>
			<description><![CDATA[<p>Вот кусок кода, шифрующий заданную строку:<br /></p><div class="codebox"><pre><code>String := &quot;75abdb0c192352a4097cd13faf107baaf361d53aac12&quot;
While Mod(StrLen(String), 2)
    String := &quot;0&quot; String
Loop % StrLen(String)/2
	{
	if toappend != &quot;&quot;
	LastOut := toappend ;сохраняем результат прошлой интерации цикла, если она не первая
   	Out := &quot;0x&quot; SubStr(String, A_Index*2-1, 2) ;группируем строку по 2 знака и добавляем префикс 16ричного числа
	const := 0x42 ;задаем константу для шифровки первой группы
	msgbox % out &quot;+&quot; const &quot;=&quot; out + const 
	if LastOut = &quot;&quot;
	toappend := out + const ;шифруем первую группу
	else
	toappend := out + LastOut ;шифруем все прочие
	msgbox %toappend%
	VarSetCapacity(toappend,65,0)
	DllCall(&quot;msvcrt\_i64toa&quot;, Int64,toappend, Str,toappend, Int,16) ;конвертируем результат в 16ричное число
	msgbox %toappend%
	RegExMatch(toappend, &quot;.{2,2}$&quot;, toappend) ;оставляем только последние 2 цифры и добавляем префикс
	toappend := &quot;0x&quot; toappend
	MsgBox %toappend%
	}</code></pre></div><p>Начиная со строки if LastOut = &quot;&quot; результат функции где-то теряется. Причем в предшествующем msgbox&#039;e все складывается чудно, а вот под if&#039;кой - нет. Что за хрень?</p><p>ЗЫ В строке предназначенной для обрезки 2 последних цифр была ошибка, исправил. Впрочем функция по-прежнему не работает.</p>]]></description>
			<author><![CDATA[null@example.com (NektoN95)]]></author>
			<pubDate>Tue, 27 Sep 2016 16:36:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108051#p108051</guid>
		</item>
	</channel>
</rss>
