<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Как вычислить адрес переменной в процессе?]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=8241&amp;type=atom" />
	<updated>2014-04-16T18:31:22Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=8241</id>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81855#p81855" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Итоги эксперимента</div><div class="fancy_spoiler"><p>...</p></div></div></blockquote></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Итоги эксперимента c точки зрения отдельно взятого меня</div><div class="fancy_spoiler"><p>Описанный процесс абсолютно не помешал мне пользоваться форумом, не вызвал негативных эмоций и вообще не был мной замечен, в отличие от некоторых других форумных явлений, которые и помешали и вызвали и в глаза бросились. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Допускаю, что реакция тех, кто по любопытству, принципиальности или другим причинам читает ВСЕ, может быть кардинально иной. Но тут уж симптом по диагнозу и вылезет независимо от преобладающей тематики. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></div></div>]]></content>
			<author>
				<name><![CDATA[многобанофф]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31830</uri>
			</author>
			<updated>2014-04-16T18:31:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81855#p81855</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81848#p81848" />
			<content type="html"><![CDATA[<p>OFF: Картинки, приаттаченные к форуму, обычно грузятся очень медленно, лучше пользоваться сторонними ресурсами.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-04-16T16:01:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81848#p81848</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81846#p81846" />
			<content type="html"><![CDATA[<div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Итоги эксперимента</div><div class="fancy_spoiler"><p>Количество тем, напрямую связанных с играми, плавно нарастало до конца лета. В сентябре резкий спад (из чего следует, что большая часть авторов - школьники), в октябре зафиксирован пик активности. Примерно после этого момента игры упоминались не столь явно.</p><p><span class="postimg"><img src="http://forum.script-coding.com/misc.php?action=pun_attachment&amp;item=703&amp;download=0" alt="http://forum.script-coding.com/misc.php?action=pun_attachment&amp;amp;item=703&amp;amp;download=0" /></span></p></div></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-04-16T15:52:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81846#p81846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77778#p77778" />
			<content type="html"><![CDATA[<p>А эксперимент только игроманов касается? <img src="//forum.script-coding.com/img/smilies/cool.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Korobkoff]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30703</uri>
			</author>
			<updated>2013-12-02T17:16:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77778#p77778</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77776#p77776" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p><strong>YMP</strong><br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="quotebox"><cite>YMP пишет:</cite><blockquote><p><strong>ypppu</strong></p><div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Могу прекратить гонения и посмотрим, что будет с форумом через год. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p>Поддерживаю. Критерий истины — практика.</p></blockquote></div><p>Эксперимент объявляю начатым.</p></div></div></blockquote></div><p>Off: Помоему года ждать ненужно. Все и так очевидно...</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-12-02T16:54:35Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77776#p77776</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=76019#p76019" />
			<content type="html"><![CDATA[<p>Ну, мало ли какие моменты бывают. Засилия игроманов вроде нет.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-10-14T17:37:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=76019#p76019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=76018#p76018" />
			<content type="html"><![CDATA[<p>OFF:<br /></p><div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>Вопросы про игры были всегда, но люди с такими вопросами на форуме не задерживаются. Появился, спросил и исчез.</p></blockquote></div><p>Интересный момент за время наблюдений. Сегодня начато три новых темы в ветке AutoHotkey, посвящённых играм.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-10-14T17:33:24Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=76018#p76018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=71529#p71529" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><div class="codebox"><pre><code>processName := &quot;имя процесса&quot;
readAddress := 0x2ECD0254

Numpad0::
    if ProcessReadMemory(readAddress, processName) &lt; 10
        Click 123 234
    return


ProcessReadMemory(address, processIDorName, type := &quot;Int&quot;, numBytes := 4) {
    VarSetCapacity(buf, numBytes, 0)

    Process Exist, %processIDorName%
    if !processID := ErrorLevel
        throw Exception(&quot;Invalid process name or process ID:`n`n&quot;&quot;&quot; . processIDorName . &quot;&quot;&quot;&quot;)

    if !processHandle := DllCall(&quot;OpenProcess&quot;, &quot;Int&quot;, 24, &quot;UInt&quot;, 0, &quot;UInt&quot;, processID, &quot;Ptr&quot;)
        throw Exception(&quot;Failed to open process.`n`nError code:`t&quot; . A_LastError)

    result := DllCall(&quot;ReadProcessMemory&quot;, &quot;Ptr&quot;, processHandle, &quot;Ptr&quot;, address, &quot;Ptr&quot;, &amp;buf, &quot;Ptr&quot;, numBytes, &quot;PtrP&quot;, numBytesRead, &quot;UInt&quot;)

    if !DllCall(&quot;CloseHandle&quot;, &quot;Ptr&quot;, processHandle, &quot;UInt&quot;) &amp;&amp; !result
        throw Exception(&quot;Failed to close process handle.`n`nError code:`t&quot; . A_LastError)

    if !result
        throw Exception(&quot;Failed to read process memory.`n`nError code:`t&quot; . A_LastError)

    if !numBytesRead
        throw Exception(&quot;Read 0 bytes from the`n`nprocess:`t&quot; . processIDorName . &quot;`naddress:`t&quot; . address)

    return (type = &quot;Str&quot;)
        ? StrGet(&amp;buf, numBytes)
        : NumGet(buf, type)
}
</code></pre></div></blockquote></div><p>попробовал... никакой реакции... бида</p>]]></content>
			<author>
				<name><![CDATA[AlexMK]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26922</uri>
			</author>
			<updated>2013-04-18T14:10:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=71529#p71529</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=71484#p71484" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="quotebox"><cite>YMP пишет:</cite><blockquote><p><strong>ypppu</strong></p><div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Могу прекратить гонения и посмотрим, что будет с форумом через год. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p>Поддерживаю. Критерий истины — практика.</p></blockquote></div><p>Эксперимент объявляю начатым.</p></div></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-04-17T03:12:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=71484#p71484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=71483#p71483" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong><br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;offtopic</div><div class="fancy_spoiler"><div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Стараюсь сдерживать поток вопросов по играм, но они появляются всё чаще</p></blockquote></div><p>У меня нет такого ощущения. Всё как всегда было. Если не ошибаюсь, я тут с 2006 года. Вопросы про игры были всегда, но люди с такими вопросами на форуме не задерживаются. Появился, спросил и исчез.</p><div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Могу прекратить гонения и посмотрим, что будет с форумом через год. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p>Поддерживаю. Критерий истины — практика.</p></div></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-04-17T02:53:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=71483#p71483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=71476#p71476" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>processName := &quot;имя процесса&quot;
readAddress := 0x2ECD0254

Numpad0::
    if ProcessReadMemory(readAddress, processName) &lt; 10
        Click 123 234
    return


ProcessReadMemory(address, processIDorName, type := &quot;Int&quot;, numBytes := 4) {
    VarSetCapacity(buf, numBytes, 0)

    Process Exist, %processIDorName%
    if !processID := ErrorLevel
        throw Exception(&quot;Invalid process name or process ID:`n`n&quot;&quot;&quot; . processIDorName . &quot;&quot;&quot;&quot;)

    if !processHandle := DllCall(&quot;OpenProcess&quot;, &quot;Int&quot;, 24, &quot;UInt&quot;, 0, &quot;UInt&quot;, processID, &quot;Ptr&quot;)
        throw Exception(&quot;Failed to open process.`n`nError code:`t&quot; . A_LastError)

    result := DllCall(&quot;ReadProcessMemory&quot;, &quot;Ptr&quot;, processHandle, &quot;Ptr&quot;, address, &quot;Ptr&quot;, &amp;buf, &quot;Ptr&quot;, numBytes, &quot;PtrP&quot;, numBytesRead, &quot;UInt&quot;)

    if !DllCall(&quot;CloseHandle&quot;, &quot;Ptr&quot;, processHandle, &quot;UInt&quot;) &amp;&amp; !result
        throw Exception(&quot;Failed to close process handle.`n`nError code:`t&quot; . A_LastError)

    if !result
        throw Exception(&quot;Failed to read process memory.`n`nError code:`t&quot; . A_LastError)

    if !numBytesRead
        throw Exception(&quot;Read 0 bytes from the`n`nprocess:`t&quot; . processIDorName . &quot;`naddress:`t&quot; . address)

    return (type = &quot;Str&quot;)
        ? StrGet(&amp;buf, numBytes)
        : NumGet(buf, type)
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2013-04-16T18:05:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=71476#p71476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=71475#p71475" />
			<content type="html"><![CDATA[<p>И так, я всё же нашел адрес нужной переменной, но она оказалась суммой двух других.&nbsp; х)</p><p>Я не силен в синтаксисе, но попробую.<br /></p><div class="codebox"><pre><code>
#NoEnv

ProcessName = urpa.exe         ; Имя процесса. &lt;----- тут мне понятно
ReadAddress = 2ECD0254          ; Адрес, откуда читать. &lt;-----адрес моей переменной
ReadSize = 4                      ; Сколько байт читать.
VarSetCapacity(Buf, ReadSize, 0)  ; Буфер, куда считывать.&lt;------ вот тут мне не понятно
</code></pre></div><p>Если мне правильно ясна логика:<br />1. весь скрипт нужно привязать на клавишу, допустим Numpad0<br />2. указать имя процесса, адрес переменной<br />3. присвоить переменной символ, допустим X<br />4. кликать мышкой в определенные координаты, если X&lt;10(допустим)</p><p>Я верно мыслю?</p>]]></content>
			<author>
				<name><![CDATA[AlexMK]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26922</uri>
			</author>
			<updated>2013-04-16T18:01:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=71475#p71475</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=71474#p71474" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>не нашел я эту цифру в процессе</p></blockquote></div><p>Возможно, отображаемые на иконке цифры — лишь текстуры, а в памяти факт привязки к предмету некого «уровня улучшения» хранится в неявном виде. Как наиболее эффективно искать подобные значения я, увы, подсказать не могу.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2013-04-16T17:48:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=71474#p71474</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=71471#p71471" />
			<content type="html"><![CDATA[<p>Ладно, если теме быть - я продолжу, а нет - удаляйте. Не поможете, то и смысла пользоваться АХК для меня нет, всяко мне неоткуда помощи ждать. На форуме тогда не появлюсь, но думаю здесь и без меня всё будет хорово. </p><p>Буду говорить туманно, что бы не обвинили еще и в рекламе.</p><p>И так скачав СЕ попробовал на внутренней валюте, адрес перенес, всё отображается четко. Но не валюта моя цель. </p><p>Цель - некий предмет который, с шансом 50/50, можно улучшить на +1 или сбросить текущее значение на 0.<br />Шанс сделать с нуля:<br />+1=100/2^1<br />+2=100/2^2<br />+3=100/2^3<br />и т.д.</p><p>Если предмет не улучшен, то на его иконке не отображается цифр, а если улучшен то начиная с единицы ему присваивается цифра. Так вот не нашел я эту цифру в процессе, искал разными способами, в общем я в тупике.</p>]]></content>
			<author>
				<name><![CDATA[AlexMK]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26922</uri>
			</author>
			<updated>2013-04-16T17:26:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=71471#p71471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как вычислить адрес переменной в процессе?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=71467#p71467" />
			<content type="html"><![CDATA[<p>Тема популярна. Стараюсь сдерживать поток вопросов по играм, но они появляются всё чаще, кто-то даже предлагал создать специальный раздел. Эта тема - живой пример: что-то потребовалось для игры --&gt; зашёл на script-coding.com --&gt; задал вопрос и жду помощи. В этой цепочке просматривается прочная ассоциация между &quot;хитростями в играх&quot; и AutoHotkey среди геймеров.<br />А может у меня что-то с головой? Могу прекратить гонения и посмотрим, что будет с форумом через год. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-04-16T16:22:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=71467#p71467</id>
		</entry>
</feed>
