<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Как переключать вкладки без активации окна хрома?]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=17424</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17424&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Как переключать вкладки без активации окна хрома?».]]></description>
		<lastBuildDate>Wed, 19 Oct 2022 05:38:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155340#p155340</link>
			<description><![CDATA[<p><strong>Gh0sTG0</strong><br />Ты бы задал этот вопрос автору расширения, он бы ответил.</p>]]></description>
			<author><![CDATA[null@example.com (Вася_01)]]></author>
			<pubDate>Wed, 19 Oct 2022 05:38:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155340#p155340</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155336#p155336</link>
			<description><![CDATA[<p><strong>Вася_01</strong><br />Ну, типа просто прям все вкладки перевести. Вот их открыто типа 50, и чтобы расширение перевело первую, потом вторую, потом и.т.д. до 50.</p>]]></description>
			<author><![CDATA[null@example.com (Gh0sTG0)]]></author>
			<pubDate>Tue, 18 Oct 2022 07:38:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155336#p155336</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155335#p155335</link>
			<description><![CDATA[<div class="quotebox"><cite>Gh0sTG0 пишет:</cite><blockquote><p>перевести не текущую страницу, а прям просто все</p></blockquote></div><p>Это как?</p>]]></description>
			<author><![CDATA[null@example.com (Вася_01)]]></author>
			<pubDate>Tue, 18 Oct 2022 04:57:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155335#p155335</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155329#p155329</link>
			<description><![CDATA[<div class="quotebox"><cite>Gh0sTG0 пишет:</cite><blockquote><p>PS как вариант, а возможно как то заставить вот это расширение перевести не текущую страницу, а прям просто все?</p></blockquote></div><p>Свяжитесь с автором и узнайте.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 17 Oct 2022 18:35:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155329#p155329</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155310#p155310</link>
			<description><![CDATA[<p><strong>Malcev</strong><br />Мдя, чудеса <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (Gh0sTG0)]]></author>
			<pubDate>Mon, 17 Oct 2022 09:42:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155310#p155310</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155309#p155309</link>
			<description><![CDATA[<div class="quotebox"><cite>Gh0sTG0 пишет:</cite><blockquote><p>Так тоже вызывает хром вперед и фокусит весь браузер.</p></blockquote></div><p>У меня нет.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 17 Oct 2022 09:40:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155309#p155309</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155308#p155308</link>
			<description><![CDATA[<p><strong>Malcev</strong><br /></p><div class="codebox"><pre><code>PageInst.Call(&quot;Page.bringToFront&quot;)</code></pre></div><p>Так тоже вызывает хром вперед и фокусит весь браузер.<br />PS как вариант, а возможно как то заставить вот это <a href="https://github.com/FilipePS/Traduzir-paginas-web">расширение</a> перевести не текущую страницу, а прям просто все? Это было бы просто на 1трлн% удобнее, чем переключаться между вкладками и тыкать сочетание клавиш.<br />PS да, там есть автоперевод, но оно... в общем работает где то раз через 5-6.</p>]]></description>
			<author><![CDATA[null@example.com (Gh0sTG0)]]></author>
			<pubDate>Mon, 17 Oct 2022 08:19:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155308#p155308</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155306#p155306</link>
			<description><![CDATA[<p>Не правильно.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 17 Oct 2022 08:12:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155306#p155306</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155305#p155305</link>
			<description><![CDATA[<p><strong>Malcev</strong><br />Если я правильно все написал, то нет, работает 1-в-1 с activateTarget:<br /></p><div class="codebox"><pre><code>
	for vKey, oPage in Chrome.GetPageList()
		if oPage.type = &quot;page&quot;
		{
			PageInst := Chrome.GetPageBy(&quot;id&quot;, oPage.id)
			PageInst.Call(&quot;Page.bringToFront&quot;, {targetId: oPage.id}) ; Хром вылезает поверх открытого блокнота
			PageInst.Disconnect()
			Sleep, 1000
		}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Gh0sTG0)]]></author>
			<pubDate>Mon, 17 Oct 2022 07:36:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155305#p155305</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155304#p155304</link>
			<description><![CDATA[<p>Пробуйте:<br /></p><div class="codebox"><pre><code>Page.bringToFront</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sun, 16 Oct 2022 23:54:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155304#p155304</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155303#p155303</link>
			<description><![CDATA[<p><strong>Clannad5</strong><br />Да это то, в общем то, и так понятно.<br />Я про это так написал, вдруг там ему какой аргумент передать можно, особенность какая, и.т.п., а я проглядел.<br />Просто в голову ничего не приходит как это еще реализовать можно, чтобы не через activateTarget, хм..?</p>]]></description>
			<author><![CDATA[null@example.com (Gh0sTG0)]]></author>
			<pubDate>Sun, 16 Oct 2022 22:19:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155303#p155303</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155302#p155302</link>
			<description><![CDATA[<div class="quotebox"><cite>Gh0sTG0 пишет:</cite><blockquote><p>PageInst.Call(&quot;Target.activateTarget&quot;, {targetId: oPage.id}) ; вот тут окно становится активным и вылезает наверх</p></blockquote></div><p>Метод <a href="https://chromedevtools.github.io/devtools-protocol/tot/Target/#method-activateTarget">activateTarget</a> сам говорит за себя, даёт фокус.</p>]]></description>
			<author><![CDATA[null@example.com (Clannad5)]]></author>
			<pubDate>Sun, 16 Oct 2022 21:45:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155302#p155302</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Как переключать вкладки без активации окна хрома?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155295#p155295</link>
			<description><![CDATA[<p>Добрый день.<br />Реализовал на chrome.ahk переключение вкладок по нужному мне шаблону.</p><p>Может быть, у кого-нибудь есть идеи как модифицировать код ниже, чтобы при активации вкладки окно хрома не вылезало наверх?<br />Не обязательно переключаться через chrome.ahk, но мне нужно будет дальше работать со страницей через него.</p><p>Мой текущий код:<br /></p><div class="codebox"><pre><code>
for vKey, oPage in Chrome.GetPageList()
	if oPage.type = &quot;page&quot;
	{
		PageInst := Chrome.GetPageBy(&quot;id&quot;, oPage.id)
		Sleep, 10000 ; Воткнул sleep&#039;ы, с ними я точно знаю в какой момент происходит активация окна
		
		PageInst.Call(&quot;Target.activateTarget&quot;, {targetId: oPage.id}) ; вот тут окно становится активным и вылезает наверх
		
		Sleep, 10000
		; и еще какой то код.
		
		PageInst.Disconnect()
	}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Gh0sTG0)]]></author>
			<pubDate>Sun, 16 Oct 2022 11:10:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155295#p155295</guid>
		</item>
	</channel>
</rss>
