<?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=15275&amp;type=atom" />
	<updated>2020-04-02T01:35:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15275</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138805#p138805" />
			<content type="html"><![CDATA[<p>Потестировал.<br />У фаерфокса алгоритм проверки немного другой, чем у хрома.<br />Перед отправлением JS надо отправить какую-либо клавишу, я отправляю f.<br />У пути 2 число меняется каждый раз при запуске нового хрома, 3 число может меняться в текущей сессии.<br /></p><div class="codebox"><pre><code>js=
(
navigator.clipboard.writeText(document.documentElement.outerHTML).then(function() {
}, function() {
alert(&#039;error&#039;);
});
)

f11::
Clipboard := &quot;&quot;
send f
AccAddrBar := Acc_Get(&quot;Object&quot;, &quot;4.25.6.1&quot;,, &quot;ahk_id 0x00f40810&quot;)
AccAddrBar.accValue(0) := &quot;javascript &quot; js
send {enter}
ClipWait
msgbox % clipboard</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-04-02T01:35:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138805#p138805</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138799#p138799" />
			<content type="html"><![CDATA[<p><a href="https://addons.mozilla.org/en-US/firefox/addon/save-selected-tabs-to-files">https://addons.mozilla.org/en-US/firefo … s-to-files</a><br /><a href="https://addons.mozilla.org/en-US/firefox/addon/savetabs">https://addons.mozilla.org/en-US/firefox/addon/savetabs</a><br /><a href="https://addons.mozilla.org/en-US/firefox/addon/save-tabs-to-html-file">https://addons.mozilla.org/en-US/firefo … -html-file</a><br /><a href="https://addons.mozilla.org/en-US/firefox/addon/save-open-tabs">https://addons.mozilla.org/en-US/firefo … -open-tabs</a><br /><a href="https://addons.mozilla.org/en-US/firefox/addon/scrapbee">https://addons.mozilla.org/en-US/firefox/addon/scrapbee</a><br /><a href="https://addons.mozilla.org/en-US/firefox/addon/scrapyard">https://addons.mozilla.org/en-US/firefo … /scrapyard</a></p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2020-04-01T21:58:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138799#p138799</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138797#p138797" />
			<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>2020-04-01T20:35:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138797#p138797</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138796#p138796" />
			<content type="html"><![CDATA[<p>Сейчас сработало. На некоторых работает, на некоторых нет (все https). На некоторых работает через раз.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-04-01T20:33:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138796#p138796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138795#p138795" />
			<content type="html"><![CDATA[<p>Странно. На сайте гугла тоже не работает?<br /><a href="https://www.google.com/">https://www.google.com/</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-04-01T20:25:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138795#p138795</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138794#p138794" />
			<content type="html"><![CDATA[<p>У меня почему-то не работает. Только в консоли пишет: uncaught exception: undefined</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-04-01T20:13:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138794#p138794</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138793#p138793" />
			<content type="html"><![CDATA[<p>А какой именно код?<br />Такой, на тех сайтах, где должен работать, у меня работает:<br /></p><div class="codebox"><pre><code>f11::
Clipboard := &quot;&quot;
Send ^l
Sendinput javascript navigator.clipboard.writeText(document.documentElement.outerHTML);
Send {Enter}
ClipWait
MsgBox, % Clipboard</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-04-01T19:51:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138793#p138793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138792#p138792" />
			<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>2020-04-01T19:31:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138792#p138792</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138791#p138791" />
			<content type="html"><![CDATA[<p>Этот код у меня сообщение выводит.<br /></p><div class="codebox"><pre><code>javascript alert(&#039;Hello World&#039;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-04-01T19:24:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138791#p138791</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138790#p138790" />
			<content type="html"><![CDATA[<p>Почему не знаю, если делать в цикле, у меня иногда просто s в поле ввода появляется. Лучше работает </p><div class="codebox"><pre><code>Send {LControl Down}s{LControl Up}</code></pre></div><p>Но перечисленные проблемы только часть того, что может выйти из под контроля. Попробуй лучше из адресной строки код запустить.<br /><a href="https://www.autohotkey.com/boards/viewtopic.php?p=248993#p248993">https://www.autohotkey.com/boards/viewt … 93#p248993</a><br />У меня вышло, но не работает.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-04-01T19:16:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138790#p138790</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138789#p138789" />
			<content type="html"><![CDATA[<p>С файлом понятно, а почему должен сбиться посыл клавиш?<br />У меня при нажатии f11 всегда появляется окно о сохранении:<br /></p><div class="codebox"><pre><code>f11:: send ^s</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-04-01T19:10:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138789#p138789</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138788#p138788" />
			<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>2020-04-01T18:52:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138788#p138788</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138787#p138787" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Собственно, такой алгоритм, который вы пытаетесь реализовать, годится как раз больше для обучения, на практике он скорее всего будет давать сбои</p></blockquote></div><p>А в чем сбои могут быть?<br />Разве что, определять, что вкладка закрыта можно через IAccessible.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-04-01T18:37:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138787#p138787</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138785#p138785" />
			<content type="html"><![CDATA[<p>Не проще расширение найти под задачу сохранения? Я например в FF пользуюсь таким для изображений, и при этом не нужно ждать, чтобы фокус не сбился и тп.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-04-01T18:15:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138785#p138785</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Скрипт сохранения страниц в ФФ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138783#p138783" />
			<content type="html"><![CDATA[<p>отписал еще раз</p>]]></content>
			<author>
				<name><![CDATA[andrewwallace1981]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40716</uri>
			</author>
			<updated>2020-04-01T17:23:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138783#p138783</id>
		</entry>
</feed>
