<?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=16948&amp;type=atom" />
	<updated>2022-02-09T12:22:36Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16948</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152116#p152116" />
			<content type="html"><![CDATA[<p>Такое бывает, используйте querySelectorAll.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-09T12:22:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152116#p152116</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152115#p152115" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />В элементах разработчика я стрелочкой кликаю на элемент и мне подсвечивает тег по которму, если правой кнопкой клацнуть можно скопировать селектор. Так для этих 2-х элементов этот метод не работает.</p>]]></content>
			<author>
				<name><![CDATA[Ander]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42151</uri>
			</author>
			<updated>2022-02-09T12:20:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152115#p152115</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152108#p152108" />
			<content type="html"><![CDATA[<p><strong>Ander</strong>, гуглите <em>querySelector</em> и <em>querySelectorAll</em>. Собственно по селекторам хорошая статья, например, <a href="http://www.codeharmony.ru/materials/42">вот</a>, там для CSS, но то же самое подойдёт и для <em>querySelector</em>. Тестировать применение <em>querySelector </em>и <em>querySelectorAll</em> удобно в консоли инструментов разработчика: вв<strong>о</strong>дите <em>document.querySelector(&#039;здесь селектор&#039;)</em> (или <em>document.querySelectorAll(&#039;здесь селектор&#039;)[индекс]</em>), если селектор верный — элемент должен выделиться на странице.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-09T10:11:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152108#p152108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152106#p152106" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Большое спасибо, вы очень помогли. Есть еще 2 поля, где не проходит Ваш вариант, посмотрите пожалуйста:<br /><a href="https://ibb.co/VvSzz4R"><span class="postimg"><img src="https://i.ibb.co/LCtcc7m/2.png" alt="https://i.ibb.co/LCtcc7m/2.png" /></span></a><br /><a href="https://ibb.co/z5yNn3c"><span class="postimg"><img src="https://i.ibb.co/qntxyHG/3.png" alt="https://i.ibb.co/qntxyHG/3.png" /></span></a><br />Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Ander]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42151</uri>
			</author>
			<updated>2022-02-09T08:37:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152106#p152106</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152099#p152099" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Ander пишет:</cite><blockquote><p>Выведу значение переменной html</p></blockquote></div><p>Так в браузере есть же эти данные. Может эти данные и подтягиваются каким-нибудь скриптом, но что выводится в переменную html при get запросе вообще непонятно.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-02-08T20:39:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152099#p152099</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152090#p152090" />
			<content type="html"><![CDATA[<p>А, ну вы бы написали, что используете Chrome.ahk, как это можно было понять?<br />Тогда проще, по идее должно работать так:<br /></p><div class="codebox"><pre><code>PageInst.Evaluate(&quot;document.querySelector(&#039;input[formcontrolname=&quot;&quot;firstName&quot;&quot;]&#039;).value&quot;).value</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-08T17:27:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152090#p152090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152089#p152089" />
			<content type="html"><![CDATA[<p>У меня нужные поля достаются с помощю подобных выражений: </p><div class="codebox"><pre><code>Item_SKU := PageInst.Evaluate(&quot;document.querySelector(&#039;СЕЛЕКТОР&#039;).innerHTML&quot;).value </code></pre></div><p>В этих 5 полях нет или я не знаю как раздобыть селектор. В принипе это и вся загвоздка со скриптом.</p>]]></content>
			<author>
				<name><![CDATA[Ander]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42151</uri>
			</author>
			<updated>2022-02-08T17:18:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152089#p152089</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152088#p152088" />
			<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>2022-02-08T16:53:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152088#p152088</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152084#p152084" />
			<content type="html"><![CDATA[<p>Та у меня все уперлось именно в эти 5 полей, все остальное уже работает. Потому и обратился за помощью сюда.</p>]]></content>
			<author>
				<name><![CDATA[Ander]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42151</uri>
			</author>
			<updated>2022-02-08T16:34:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152084#p152084</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152080#p152080" />
			<content type="html"><![CDATA[<p>Тогда, боюсь, вы взялись за непосильную задачу. Начните изучение AHK с чего-то более простого.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-08T13:40:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152080#p152080</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152079#p152079" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Вообще не стыкался с JavaScript.</p>]]></content>
			<author>
				<name><![CDATA[Ander]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42151</uri>
			</author>
			<updated>2022-02-08T13:00:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152079#p152079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152078#p152078" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Ander пишет:</cite><blockquote><p>это первый мой скрипт на AHK</p></blockquote></div><p>А на javascript?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-08T12:53:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152078#p152078</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152076#p152076" />
			<content type="html"><![CDATA[<p>С ahk ваша тема никак не связана.<br />У тага input есть атрибут value.<br />Его и получайте.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-02-08T12:46:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152076#p152076</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152072#p152072" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Пожалуйста поясните, я не понимаю как Ваша ссылка относится к получаемому html документу. Вы меня сильно не пинайте - это первый мой скрипт на AHK.</p>]]></content>
			<author>
				<name><![CDATA[Ander]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42151</uri>
			</author>
			<updated>2022-02-08T12:38:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152072#p152072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение динамически формируемого текста в переменную]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152068#p152068" />
			<content type="html"><![CDATA[<p><a href="https://www.w3schools.com/tags/att_input_value.asp">https://www.w3schools.com/tags/att_input_value.asp</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-02-08T11:12:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152068#p152068</id>
		</entry>
</feed>
