<?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=17882&amp;type=atom" />
	<updated>2023-07-21T21:53:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17882</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не корректная работа скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158866#p158866" />
			<content type="html"><![CDATA[<p>Способ, который вы выбрали для взаимодействия с браузером — отправка клавиш — он в принципе ненадёжный и не гарантирует результата. Почему именно у вас не срабатывает, едва ли можно сказать, может браузер фокус теряет, может плохо воспринимает нажатия через Send.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-07-21T21:53:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158866#p158866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Не корректная работа скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158855#p158855" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Publipor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41811</uri>
			</author>
			<updated>2023-07-21T07:33:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158855#p158855</id>
		</entry>
</feed>
