<?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=17882</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17882&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Не корректная работа скрипта».]]></description>
		<lastBuildDate>Fri, 21 Jul 2023 21:53:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Не корректная работа скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=158866#p158866</link>
			<description><![CDATA[<p>Способ, который вы выбрали для взаимодействия с браузером — отправка клавиш — он в принципе ненадёжный и не гарантирует результата. Почему именно у вас не срабатывает, едва ли можно сказать, может браузер фокус теряет, может плохо воспринимает нажатия через Send.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Fri, 21 Jul 2023 21:53:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=158866#p158866</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Не корректная работа скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=158855#p158855</link>
			<description><![CDATA[<p>Здравствуйте. Написал простенький скрипт который выполняет цикл действий (открытия ссылки, сохранения страницы сайта, ввод названия файла, закрытия вкладки). Но почему-то скрипт срабатывает через раз. А именно иногда открывает ссылку но не срабатывают остальные действия цикла, не могли б показать что я сделал не так? Заранее спасибо.<br /></p><div class="codebox"><pre><code>
Loop
{

if a_index &gt; 300000
break
if a_index &lt; 1
continue


Run, firefox.exe &quot;https://key-test.ru/&quot; &quot;--new-window&quot;
;Run, firefox.exe &quot;https://ahk-wiki.ru/%a_index%&quot; &quot;--new-window&quot;

sleep 3000
Send {Ctrl Down}{vk53 Down} ;ctrl + s
Send {Ctrl Up}{vk53 Up}		;ctrl + s

sleep 1000
Send %a_index%


sleep 3000
Send {vkD}			; enter

sleep 3000
Send {Ctrl Down}{vk57 Down}	; ctrl + w
Send {Ctrl Up}{vk57 Up}		; ctrl + w


sleep 1000

}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Publipor)]]></author>
			<pubDate>Fri, 21 Jul 2023 07:33:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=158855#p158855</guid>
		</item>
	</channel>
</rss>
