<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13289&amp;type=atom" />
	<updated>2017-12-13T22:06:22Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13289</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122263#p122263" />
			<content type="html"><![CDATA[<p>Все дело в плагинах к IE.<br />Должен быть установлен либо Adobe Acrobat и соответственно в Current loaded add-ons быть запущенным Adobe PDF Link Helper либо установлен оффис и соответственно в Current loaded add-ons быть запущенным Office Document Cache Handler.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-12-13T22:06:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122263#p122263</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122260#p122260" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, полностью скопировал ваш код в отдельный файлики и никаких изменений не сделал - у меня не работает...</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-12-13T20:25:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122260#p122260</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122250#p122250" />
			<content type="html"><![CDATA[<p>У меня работает.<br />Выводы уж сделайте сами.<br /></p><div class="codebox"><pre><code>oie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
oie.Visible := true
oie.Navigate(&quot;http://store.steampowered.com/search/?term=Dirty+Bomb&quot;)
While oIE.readyState != 4 || oIE.document.readyState != &quot;complete&quot; || oIE.busy  
   Sleep, 20  
oie.document.getElementsByClassName(&quot;search_result_row ds_collapse_flag app_impression_tracked&quot;)[0].click()
While oIE.readyState != 4 || oIE.document.readyState != &quot;complete&quot; || oIE.busy  
   Sleep, 20  
asd := oie.document.getElementsByClassName(&quot;game_description_snippet&quot;)[0].innerText
MsgBox,,, %asd%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-12-13T18:33:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122250#p122250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122249#p122249" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, а какой вывод сделать? Если даже переменную choice назначить, а не через InputBox спрашивать, то всё равно не работает...</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-12-13T18:12:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122249#p122249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122182#p122182" />
			<content type="html"><![CDATA[<p>Значит делайте выводы.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-12-11T18:52:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122182#p122182</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122181#p122181" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, всё, что я добавил, это </p><div class="codebox"><pre><code>InputBox, choice, Game, Enter game name:</code></pre></div><p> в самое начало, но у меня не работает...</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-12-11T18:27:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122181#p122181</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122169#p122169" />
			<content type="html"><![CDATA[<p>У меня работает:<br /></p><div class="codebox"><pre><code>oie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
oie.Visible := true
oie.Navigate(&quot;http://store.steampowered.com/search/?term=&quot; + choice)
While oIE.readyState != 4 || oIE.document.readyState != &quot;complete&quot; || oIE.busy  
   Sleep, 20  
oie.document.getElementsByClassName(&quot;search_result_row ds_collapse_flag app_impression_tracked&quot;)[0].click()
While oIE.readyState != 4 || oIE.document.readyState != &quot;complete&quot; || oIE.busy  
   Sleep, 20  
asd := oie.document.getElementsByClassName(&quot;game_description_snippet&quot;)[0].innerText
MsgBox,,, %asd%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-12-10T18:05:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122169#p122169</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122168#p122168" />
			<content type="html"><![CDATA[<p>Дада, всё так же, не сработало.</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-12-10T17:53:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122168#p122168</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122165#p122165" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, немного позже попробую, но не думаю, что это решит проблему, ибо пробовал и с sleepом.</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-12-10T17:10:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122165#p122165</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122157#p122157" />
			<content type="html"><![CDATA[<p>Не успевает загрузиться.<br />Используйте такую проверку:<br /></p><div class="codebox"><pre><code>While oIE.readyState != 4 || oIE.document.readyState != &quot;complete&quot; || oIE.busy  
   Sleep, 20  </code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-12-10T15:56:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122157#p122157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Проблема получения элементов после перехода на другую страницу]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122156#p122156" />
			<content type="html"><![CDATA[<p>Здравствуйте!</p><p>Захотел сделать скрипт, что позволяет в InputBox вводить значение для поиска по магазину Steam. В ответ же я показываю картинку и ещё некоторую информацию об игре.<br /></p><div class="codebox"><pre><code>InputBox, choice, Game, Enter game name:

ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Visible := true
ie.Navigate(&quot;http://store.steampowered.com/search/?term=&quot; + choice)
while ie.readystate &lt;&gt; 4
	continue
ie.document.getElementsByClassName(&quot;search_result_row ds_collapse_flag app_impression_tracked&quot;)[0].click()
while ie.readystate &lt;&gt; 4
	continue

asd := ie.document.getElementsByClassName(&quot;game_description_snippet&quot;)[0].innerText
MsgBox,,, %asd%</code></pre></div><p>По какой-то причине ему не удаётся найти значение asd. Если пробовать в той же вкладке, что открыл AHK, но вручную через консоль - всё выводит (Без &quot;ie.&quot;, соответственно). Если сразу в Navigate вписать страницу случайной игры - тоже находит, но именно в данном решений не находит. Возможно, есть какие-то ошибки в коде, которые я не вижу, или я чего-то не понимаю. Подскажите, пожалуйста</p>]]></content>
			<author>
				<name><![CDATA[Alex_Lexon]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32135</uri>
			</author>
			<updated>2017-12-10T15:36:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122156#p122156</id>
		</entry>
</feed>
