<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: data-time. unknown name]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15344&amp;type=atom" />
	<updated>2020-05-06T16:01:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15344</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: data-time. unknown name]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139363#p139363" />
			<content type="html"><![CDATA[<p>Лучше так:<br /></p><div class="codebox"><pre><code>html = &lt;abbr class=\&quot;DateTime muted\&quot; data-time=\&quot;1588758983\&quot; data-diff=\&quot;4771\&quot; data-datestring=\&quot;6 май 2020\&quot; data-timestring=\&quot;13:56\&quot; title=\&quot;6 май 2020 в 13:56\&quot;&gt;Сегодня, в 13:56&lt;/abbr&gt;
RegExMatch(html, &quot;data-time=\\&quot;&quot;\K\d+&quot;, time)
MsgBox, % time</code></pre></div><p><em>data-diff</em> скорее всего здесь всегда будет, но не обязано.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-05-06T16:01:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139363#p139363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: data-time. unknown name]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139362#p139362" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>var = &lt;abbr class=\&quot;DateTime muted\&quot; data-time=\&quot;1588758983\&quot; data-diff=\&quot;4771\&quot; data-datestring=\&quot;6 май 2020\&quot; data-timestring=\&quot;13:56\&quot; title=\&quot;6 май 2020 в 13:56\&quot;&gt;Сегодня, в 13:56&lt;/abbr&gt;
NewStr := RegExReplace(var, &quot;(.*)data-time=\\&quot;&quot;(.*)\\&quot;&quot; data-diff(.*)&quot;, &quot;$2&quot;)
MsgBox, %NewStr%
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-05-06T13:30:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139362#p139362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: data-time. unknown name]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139361#p139361" />
			<content type="html"><![CDATA[<p>Подскажите, как вывести число 1588758983 в data-time из строки?<br /></p><div class="codebox"><pre><code>&lt;abbr class=\&quot;DateTime muted\&quot; data-time=\&quot;1588758983\&quot; data-diff=\&quot;4771\&quot; data-datestring=\&quot;6 май 2020\&quot; data-timestring=\&quot;13:56\&quot; title=\&quot;6 май 2020 в 13:56\&quot;&gt;Сегодня, в 13:56&lt;/abbr&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[aswaggmraneal]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40800</uri>
			</author>
			<updated>2020-05-06T11:20:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139361#p139361</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: data-time. unknown name]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139360#p139360" />
			<content type="html"><![CDATA[<p>Оказалось, что ахк использует старую версию ие, ладно, поищу другой метод</p>]]></content>
			<author>
				<name><![CDATA[aswaggmraneal]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40800</uri>
			</author>
			<updated>2020-05-06T09:59:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139360#p139360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: data-time. unknown name]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139354#p139354" />
			<content type="html"><![CDATA[<p>Сразу добавлю, что этой строкой в самом браузере всё отлично получается<br /></p><div class="codebox"><pre><code>document.getElementsByClassName(&quot;DateTime muted&quot;)[0].dataset.time</code></pre></div>]]></content>
			<author>
				<name><![CDATA[aswaggmraneal]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40800</uri>
			</author>
			<updated>2020-05-06T01:05:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139354#p139354</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: data-time. unknown name]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139353#p139353" />
			<content type="html"><![CDATA[<p>Доброго времени суток. Решил написать небольшой скрипт, чтобы получать пару элементов со страницы.<br /></p><div class="codebox"><pre><code>
ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.visible := false
ie.Navigate(&quot;https://site.ru&quot;)
while ie.readystate &lt;&gt; 4
	continue
sleep 1000
hmm := ie.document.getElementsByClassName(&quot;DateTime muted&quot;)[0].dataset.time</code></pre></div><p>В итоге получаю ошибку на последнюю строку с текстом &quot;0x80020006 - Неизвестное имя. Specifically: time.<br />И мне нужно получить именно этот элемент со страницы</p>]]></content>
			<author>
				<name><![CDATA[aswaggmraneal]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40800</uri>
			</author>
			<updated>2020-05-06T01:02:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139353#p139353</id>
		</entry>
</feed>
