<?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>http://forum.script-coding.com/viewtopic.php?id=12878</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12878&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: бинарная строка».]]></description>
		<lastBuildDate>Sat, 05 Aug 2017 18:39:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: бинарная строка]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=117866#p117866</link>
			<description><![CDATA[<p><strong>teadrinker</strong>, уже ответили. А вообще мне все равно в какой, мне лишь бы пример показать, а дальше и сам разберусь. Спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (MandarinKa02)]]></author>
			<pubDate>Sat, 05 Aug 2017 18:39:42 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=117866#p117866</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: бинарная строка]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=117865#p117865</link>
			<description><![CDATA[<p><strong>YMP</strong>, Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (MandarinKa02)]]></author>
			<pubDate>Sat, 05 Aug 2017 18:38:29 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=117865#p117865</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: бинарная строка]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=117851#p117851</link>
			<description><![CDATA[<div class="codebox"><pre><code>
sText := &quot;{hi}{im info:)}&quot;
aSockets%i%_iPackets  := 1337
iLength := StrPut(sText, &quot;CP0&quot;)
msgbox % iLength
VarSetCapacity(bText, iLength, 0)
StrPut(sText, &amp;bText, &quot;CP0&quot;)
VarSetCapacity(bData, 24 + iLength, 0)
NumPut(aSockets%i%_iPackets, bData, 0, &quot;int64&quot;)
NumPut(1, bData, 8, &quot;int64&quot;)
NumPut(iLength, bData, 16, &quot;int64&quot;)

CopyBinData(&amp;bText, &amp;bData + 24, iLength)
Msgbox % NumGet(bData, 0, &quot;int64&quot;) &quot;`n&quot; NumGet(bData, 8, &quot;int64&quot;) &quot;`n&quot; NumGet(bData, 16, &quot;int64&quot;) &quot;`n&quot; StrGet(&amp;bData + 24, &quot;CP0&quot;)
Msgbox End
Reload


CopyBinData(ptrSource, ptrDestination, iLength) {
    If iLength ;Only do it if there&#039;s anything to copy
        DllCall(&quot;RtlMoveMemory&quot;, &quot;Ptr&quot;, ptrDestination, &quot;Ptr&quot;, ptrSource, &quot;UInt&quot;, iLength)
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Sat, 05 Aug 2017 11:46:12 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=117851#p117851</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: бинарная строка]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=117850#p117850</link>
			<description><![CDATA[<p>А в какой кодировке вам нужно поместить строку?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 05 Aug 2017 11:24:19 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=117850#p117850</guid>
		</item>
		<item>
			<title><![CDATA[AHK: бинарная строка]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=117843#p117843</link>
			<description><![CDATA[<p>Привет форум. Помогите пожалуйста с бинарной строкой. Не могу её впихнуть в bData с offset&#039;oм 24.<br />Может не правильно перекодирую, точно не знаю.<br /></p><div class="codebox"><pre><code>
sText := &quot;{hi}{im info:)}&quot;
aSockets%i%_iPackets  := 1337
iLength := StrPut(sText, &amp;bText, &quot;CP0&quot;)
msgbox % iLength
VarSetCapacity(bData, 24 + iLength, 0)
NumPut(aSockets%i%_iPackets, bData, 0, &quot;int64&quot;)
NumPut(1, bData, 8, &quot;int64&quot;)
NumPut(iLength, bData, 16, &quot;int64&quot;)


CopyBinData(&amp;bText, &amp;bData + 24, iLength)
Msgbox % NumGet(bData, 0, &quot;int64&quot;) &quot;`n&quot; NumGet(bData, 8, &quot;int64&quot;) &quot;`n&quot; NumGet(bData, 16, &quot;int64&quot;) &quot;`n&quot; StrGet(&amp;bData, &quot;UTF-16&quot;)
Msgbox End
Reload


CopyBinData(ptrSource, ptrDestination, iLength) {
	If iLength ;Only do it if there&#039;s anything to copy
		DllCall(&quot;RtlMoveMemory&quot;, &quot;Ptr&quot;, ptrDestination, &quot;Ptr&quot;, ptrSource, &quot;UInt&quot;, iLength)
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (MandarinKa02)]]></author>
			<pubDate>Sat, 05 Aug 2017 09:15:43 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=117843#p117843</guid>
		</item>
	</channel>
</rss>
