<?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=9586&amp;type=atom" />
	<updated>2014-05-11T22:10:54Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9586</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с классами]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=82891#p82891" />
			<content type="html"><![CDATA[<p>Во, спасибо! Но оказывается экземпляр класса не нужен, просто синтаксис таков: <br /></p><div class="codebox"><pre><code>
class=MyClass
func=MyFunc  
 
%class%[func]()
Return

Class MyClass  { 
    MyFunc()  {   
        MsgBox MyClass.MyFunc 
    } 
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-11T22:10:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=82891#p82891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с классами]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=82890#p82890" />
			<content type="html"><![CDATA[<p>Нужно сначала создать экземпляр класса.<br /></p><div class="codebox"><pre><code>class=MyClass
func=MyFunc 

instance := New %class%()
instance[func]()
Return

Class MyClass  { 
    MyFunc()  {   
        MsgBox MyClass.MyFunc 
    } 
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-05-11T22:02:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=82890#p82890</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Работа с классами]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=82889#p82889" />
			<content type="html"><![CDATA[<p>Пока такой вопрос: как вызвать метод, имея в переменных названия класса и метода?</p><br /><div class="codebox"><pre><code>
class=MyClass
func=MyFunc 
MsgBox % IsFunc(class &quot;.&quot; func)  ; для проверки существования
%class%.%func%()
Return

Class MyClass  { 
    MyFunc()  {   
        MsgBox MyClass.MyFunc 
    } 
} 
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-11T21:42:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=82889#p82889</id>
		</entry>
</feed>
