<?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=8768&amp;type=atom" />
	<updated>2015-09-16T13:22:22Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8768</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97512#p97512" />
			<content type="html"><![CDATA[<p>Короче это просто первый байт памяти по указанному адресу.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-09-16T13:22:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97512#p97512</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97511#p97511" />
			<content type="html"><![CDATA[<p>Если пока не понятно, то вот ещё:<br /></p><div class="codebox"><pre><code>VarSetCapacity(var, 2)
NumPut(0x1234, var)
SetFormat, IntegerFast, H
MsgBox, % NumGet(var, &quot;UShort&quot;) &quot;`n&quot; *&amp;var &quot;`n&quot; NumGet(var, &quot;UChar&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-09-16T13:16:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97511#p97511</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97510#p97510" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>setformat,integer,h
var=0x1
Var1 := &amp;var
msgbox % &quot;адрес`t`t&quot; &amp;Var1 &quot;`nкакой-то там первый байт (судя по справке)`t`t&quot; *Var1 &quot;`nсодержимое`t`t&quot; Var1  &quot;`n`nадрес`t`t&quot; &amp;Var &quot;`nкакой-то там первый байт (судя по справке)`t`t&quot; *var &quot;`nсодержимое`t`t&quot; Var
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2015-09-16T13:16:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97510#p97510</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97509#p97509" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Может так:</p></blockquote></div><p>Операндом Dereference может служить только адрес.</p><p><strong>teadrinker </strong>а о чём говорит последний пример?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-09-16T13:08:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97509#p97509</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97508#p97508" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>VarSetCapacity(var, 2)
NumPut(0x1234, var)
SetFormat, IntegerFast, H
MsgBox, % NumGet(var, &quot;UShort&quot;) &quot;`n&quot; *&amp;var</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-09-16T13:06:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97508#p97508</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97507#p97507" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Dereference1 := *&amp;Var1
</code></pre></div><p>Может так:<br /></p><div class="codebox"><pre><code>Dereference1 := *Var1
</code></pre></div><p>?</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2015-09-16T13:04:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97507#p97507</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97506#p97506" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Var1 := 123
Var2 := &quot;abc&quot;
Dereference1 := *&amp;Var1
Dereference2 := *&amp;Var2

msgbox % &amp;Var1 &quot; | &quot; Dereference1 &quot;`n&quot; &amp;Var2 &quot; | &quot; Dereference2</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-09-16T12:46:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97506#p97506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97505#p97505" />
			<content type="html"><![CDATA[<p>Раз уже такую тему подняли, для чего нужен оператор разадрессации &quot;*&quot;? Как это используется на практике?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-09-16T12:42:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97505#p97505</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97504#p97504" />
			<content type="html"><![CDATA[<p>Во всяком случае, я заметил, что она разная для х32 и х64.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-09-16T12:19:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97504#p97504</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97503#p97503" />
			<content type="html"><![CDATA[<p>Наверняка есть какая то логика.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-09-16T12:18:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97503#p97503</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97502#p97502" />
			<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>2015-09-16T12:09:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97502#p97502</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97501#p97501" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Вопрос вроде был - найти имя переменной по содержимому, нет?</p></blockquote></div><p>Нет.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-09-16T12:08:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97501#p97501</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97500#p97500" />
			<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>2015-09-16T12:07:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97500#p97500</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97499#p97499" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Не понял последнее. Переменная ищется в памяти по адресу, а не по содержимому.</p></blockquote></div><p>Вопрос вроде был - найти имя переменной по содержимому, нет?</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2015-09-16T12:05:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97499#p97499</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как получить имя переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97498#p97498" />
			<content type="html"><![CDATA[<p>По адресу переменной её имени нет, там только значение. В определённом месте скрипта записано имя переменной и через какое-то смещение её адрес в виде последовательности байтов, соответствующей его числовому значению. Это число и ищем в адресном пространстве. Ради оптимизации отсечено<br /></p><div class="codebox"><pre><code>      if (BaseAddress &lt; 0xFFFFF &amp;&amp; A_PtrSize = 8) || (BaseAddress &lt; 0x7FFFFF &amp;&amp; A_PtrSize = 4)
         continue</code></pre></div><p>но более точно указать область поиска я не знаю как.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-09-16T12:05:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97498#p97498</id>
		</entry>
</feed>
