<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: бинарная строка]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12878&amp;type=atom" />
	<updated>2017-08-05T18:39:42Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12878</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: бинарная строка]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=117866#p117866" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, уже ответили. А вообще мне все равно в какой, мне лишь бы пример показать, а дальше и сам разберусь. Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-08-05T18:39:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=117866#p117866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: бинарная строка]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=117865#p117865" />
			<content type="html"><![CDATA[<p><strong>YMP</strong>, Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-08-05T18:38:29Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=117865#p117865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: бинарная строка]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=117851#p117851" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2017-08-05T11:46:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=117851#p117851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: бинарная строка]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=117850#p117850" />
			<content type="html"><![CDATA[<p>А в какой кодировке вам нужно поместить строку?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-08-05T11:24:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=117850#p117850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: бинарная строка]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=117843#p117843" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-08-05T09:15:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=117843#p117843</id>
		</entry>
</feed>
