<?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="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17033&amp;type=atom" />
	<updated>2022-06-25T12:29:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17033</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как правильно записать структуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153674#p153674" />
			<content type="html"><![CDATA[<p>Понял, хорошо.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-06-25T12:29:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153674#p153674</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как правильно записать структуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153673#p153673" />
			<content type="html"><![CDATA[<p>Гуглите структуры данных c++.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-06-25T12:26:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153673#p153673</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как правильно записать структуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153672#p153672" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Теперь узнайте ещё, что такое структура.</p></blockquote></div><p>Узнал, что это пропуск байтов какой-то. А где можно прочитать про структуры подробнее?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-06-25T12:16:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153672#p153672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как правильно записать структуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152623#p152623" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>Читерите, сударъ?</p></blockquote></div><p>Я нет.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-03-19T20:38:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152623#p152623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как правильно записать структуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152622#p152622" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong></p><div class="quotebox"><blockquote><p>csgo.writeRaw</p></blockquote></div><p>Читерите, сударъ?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-03-19T20:29:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152622#p152622</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как правильно записать структуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152621#p152621" />
			<content type="html"><![CDATA[<p>Если ничего не передаёт, то ничего передавать и не надо.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-03-19T20:21:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152621#p152621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как правильно записать структуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152620#p152620" />
			<content type="html"><![CDATA[<p>Вот моя структура:<br /></p><div class="codebox"><pre><code>struct glow {
    float red = 1.f;
    float green = 0.f;
    float blue = 0.f;
    float alpha = 1.f;
    uint8_t padding[8];
    float unknown = 1.f;
    uint8_t padding2[4];
    BYTE renderOccluded = true;
    BYTE renderUnoccluded = false;
    BYTE fullBloom = false;
}glow</code></pre></div><p>все хорошо работает так:<br /></p><div class="codebox"><pre><code>
    Process, Exist, test.exe
    PID := ErrorLevel
    ProcessHandle := DllCall(&quot;OpenProcess&quot;, &quot;int&quot;, 0x20, &quot;char&quot;, 0, &quot;UInt&quot;, PID, &quot;UInt&quot;)
    NumPut(1, struct, GLOWSTRUCT_glowColor_r, &quot;float&quot;)
	NumPut(1, struct, GLOWSTRUCT_glowColor_g, &quot;float&quot;)
	NumPut(1, struct, GLOWSTRUCT_glowColor_b, &quot;float&quot;)
	NumPut(1, struct, GLOWSTRUCT_glowColor_a, &quot;float&quot;)
	NumPut(1, struct, GLOWSTRUCT_renderWhenOccluded, &quot;char&quot;)
	NumPut(0, struct, GLOWSTRUCT_renderWhenUnoccluded, &quot;char&quot;)
	NumPut(0, struct, GLOWSTRUCT_fullBloomRender, &quot;char&quot;)
	NumPut(1, struct, GLOWSTRUCT_glowStyle, &quot;int&quot;)
    DllCall(&quot;WriteProcessMemory&quot;, &quot;PTR&quot;, ProcessHandle, &quot;Uint&quot;, glowObj+(index*0x38), &quot;Ptr&quot;, &amp;struct, &quot;Ptr&quot;, 0x38, &quot;Ptr&quot;, 0)
</code></pre></div><p>Структура может меняться и т.д. Я могу и сам подобрать, но просто интересно, как передать char, который ничего не передает.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-03-19T20:19:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152620#p152620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как правильно записать структуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152619#p152619" />
			<content type="html"><![CDATA[<p>Теперь узнайте ещё, что такое структура.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-03-19T19:49:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152619#p152619</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как правильно записать структуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152618#p152618" />
			<content type="html"><![CDATA[<p>Кто разбирается, не подскажите, как отправить структуру:<br /></p><div class="codebox"><pre><code>uint8_t padding[8];</code></pre></div><p>Узнал, что uint8_t - это char. Но эта строка ничего не передает.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-03-19T19:23:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152618#p152618</id>
		</entry>
</feed>
