<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: работа с консолью Firefox]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14554&amp;type=atom" />
	<updated>2019-04-02T22:59:46Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14554</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133303#p133303" />
			<content type="html"><![CDATA[<p>В общем, ради интереса получилось отобразить картинку капчи:<br />Получаем ее токен: <a href="https://egrul.nalog.ru/static/captcha.html">https://egrul.nalog.ru/static/captcha.html</a>, затем добавляем полученный токен после параметра a: <a href="https://egrul.nalog.ru/static/captcha.bin?a=полученный%20токен&amp;version=3">https://egrul.nalog.ru/static/captcha.b … ;version=3</a><br />И на самом деле получаем картинку капчи для данного токена.<br />Но, при получении vyp3CaptchaToken пишет: &quot;картинка не распознана&quot;.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2019-04-02T22:59:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133303#p133303</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=132005#p132005" />
			<content type="html"><![CDATA[<p>У меня нет.<br />Возможно, если постоянно отправлять в цикле запросы, либо заходить с левых айпи, то и покажет.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-02-07T02:01:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=132005#p132005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=132004#p132004" />
			<content type="html"><![CDATA[<p>А у вас отображается картинка капчи, у меня нет.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2019-02-07T01:40:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=132004#p132004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=132003#p132003" />
			<content type="html"><![CDATA[<p>Я не вижу там никакого апи.<br />Капча же должна приходить, когда сервер посчитает нужным вам ее послать.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-02-07T01:21:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=132003#p132003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=132002#p132002" />
			<content type="html"><![CDATA[<p>Плюс еще апи этого сайта нужно знать. Вот <a href="http://forum.infostart.ru/forum9/topic110605/message2125094/#message2125094/">здесь</a> человек объясняет, как работать с этим апи. Вроде все понятно, но у меня не получает никакую картинку капчи, только токен.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2019-02-07T00:46:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=132002#p132002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=132000#p132000" />
			<content type="html"><![CDATA[<p>Для получения информации с этого сайта IE не нужен.<br />Читайте про WinHttpRequest.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-02-06T15:53:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=132000#p132000</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131998#p131998" />
			<content type="html"><![CDATA[<p><strong>dmitry-semin</strong></p><div class="codebox"><pre><code>sleep 3000

loop % ie.document.getElementsByClassName(&quot;btn-with-icon btn-excerpt op-excerpt&quot;).length
{
ie.document.getElementsByClassName(&quot;btn-with-icon btn-excerpt op-excerpt&quot;)[A_index-1].click()
}	</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-02-06T14:09:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131998#p131998</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131997#p131997" />
			<content type="html"><![CDATA[<p><strong>inseption86</strong><br />Ваш код в части поиска классно работает! Спасибо!</p><p>Жаль я не программист по образованию, а HTML для меня темный лес. Не смог подобрать аналогичный код для кнопки &quot;Получить выписку&quot;.</p><p>Не смог в нее кликнуть)</p><p>коду добавил следующее:<br /></p><div class="codebox"><pre><code>
Sleep 2000
ie.document.getElementById(&quot;btnReference&quot;).click()
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[dmitry-semin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39549</uri>
			</author>
			<updated>2019-02-06T13:33:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131997#p131997</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131990#p131990" />
			<content type="html"><![CDATA[<p><strong>dmitry-semin</strong></p><p>У меня на работе почти такая же выгрузка, каждый день по 1000 строк нужно проверять в базе, я сделал через ie и excel</p><br /><div class="codebox"><pre><code>#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance force   

ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Visible := true
ie.Navigate(&quot;https://egrul.nalog.ru/index.html&quot;)
while ie.readystate &lt;&gt; 4
Sleep 500


ie.document.getElementById(&quot;query&quot;).value := &quot;Смирнов Александр Алексеевич&quot;

ie.document.getElementById(&quot;btnSearch&quot;).click()


^ESC::
{
Process,close,iexplore.exe
ExitApp
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-02-05T16:44:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131990#p131990</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131989#p131989" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?id=14411">Есть</a>, но здесь этим пока никто не занимался. Есть только по Хрому наработки.<br />Также ищите темы по &quot;Selenium&quot;.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-02-05T15:53:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131989#p131989</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: работа с консолью Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131988#p131988" />
			<content type="html"><![CDATA[<p>Добрый день!<br />Подскажите, пожалуйста, возможно ли посредством AHK нажать кнопку на сайте (не ссылка).<br />Сайт <a href="https://egrul.nalog.ru/index.html">https://egrul.nalog.ru/index.html</a>.<br />Интересует кнопка &quot;Найти&quot;.<br />В консоли Firefox этот элемент отображается вот так: <br />&lt;button type=&quot;submit&quot; id=&quot;btnSearch&quot; class=&quot;btn-with-icon btn-search&quot;&gt;Найти&lt;/button&gt;</p><p>Сейчас решаю проблему командами run, click. Возможно есть менее топорный вариант?</p>]]></content>
			<author>
				<name><![CDATA[dmitry-semin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39549</uri>
			</author>
			<updated>2019-02-05T15:14:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131988#p131988</id>
		</entry>
</feed>
