<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: getElementsByClassName]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13694&amp;type=atom" />
	<updated>2018-05-08T21:42:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13694</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: getElementsByClassName]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125256#p125256" />
			<content type="html"><![CDATA[<p>Вот простой пример:<br /></p><div class="codebox"><pre><code>html =
(
&lt;!doctype html&gt;
&lt;body&gt;
   &lt;div class=&quot;MyClass&quot;&gt;
      &lt;p&gt;Привет!&lt;/p&gt;
   &lt;/div&gt;
&lt;/body&gt;
)

oDoc := ComObjCreate(&quot;htmlfile&quot;)
oDoc.write(&quot;&lt;meta http-equiv=&quot;&quot;X-UA-Compatible&quot;&quot; content=&quot;&quot;IE=9&quot;&quot;&gt;&quot;)
oDoc.write(html)

MsgBox, % oDoc.getElementsByClassName(&quot;MyClass&quot;)[0].innerText</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-08T21:42:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125256#p125256</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: getElementsByClassName]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125253#p125253" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, мне надо получить изображение из поста ВКонтакте, получение текста есть, а получения изображений нет.</p>]]></content>
			<author>
				<name><![CDATA[timk50]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39092</uri>
			</author>
			<updated>2018-05-08T20:57:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125253#p125253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: getElementsByClassName]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125252#p125252" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, а что, собственно, не так в синтаксисе? С ним я по мере пользования AHK ознакомлюсь, мне сейчас интересно, что не так с HTMLfile, да и вообще, возможно ли в данной ситуации работать с &lt;div class.</p>]]></content>
			<author>
				<name><![CDATA[timk50]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39092</uri>
			</author>
			<updated>2018-05-08T20:52:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125252#p125252</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: getElementsByClassName]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125251#p125251" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>timk50 пишет:</cite><blockquote><p>хотел попробовать с сайта получить то, что содержится в class</p></blockquote></div><p>Вам сильно рановато ещё браться за COM-объекты, я бы советовал изучить сперва элементарный синтаксис.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-08T20:42:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125251#p125251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: getElementsByClassName]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125249#p125249" />
			<content type="html"><![CDATA[<p>Здравствуйте, хотел попробовать с сайта получить то, что содержится в class, но AHK нелестно высказывается о getElementsByClassName, пишет, якобы неизвестное имя. Как их сдружить-то, или есть альтернатива? Или я косяк? Подскажите, пожалуйста. <br /></p><div class="codebox"><pre><code>
document := ComObjCreate(&quot;HTMLfile&quot;)
...
test%k% := document.getElementById(%elementid2%).getElementsByClassName(&quot;page_post_sized_thumbs  clear_fix&quot;)
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[timk50]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39092</uri>
			</author>
			<updated>2018-05-08T20:14:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125249#p125249</id>
		</entry>
</feed>
