<?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=9455&amp;type=atom" />
	<updated>2014-04-08T10:59:29Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9455</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81578#p81578" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Странно... А так фокус устанавливает?<br /></p><div class="codebox"><pre><code>ControlFocus, Edit1, Вход в систему</code></pre></div></blockquote></div><p>Поставил срабатывание на клавишу, активно само окно авторизации и на нём нажимаю клавишу, то в окне AutoHotkey после refresh&#039;a ничего нет, а вот если окно авторизации не активно (например на блокноте) то после refresh&#039;a отображает что оно выполнилось, но в окне авторизации по прежнему ничего.</p><p><strong>UPD</strong><br />Решил всё же проблему почему не работало через<br /></p><div class="codebox"><pre><code>ControlSetText, Edit1, User, Вход в систему</code></pre></div><p>Вся проблема, в запуске от имени администратора.</p><p>Всем спасибо за советы.</p>]]></content>
			<author>
				<name><![CDATA[VRS95KZ]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32027</uri>
			</author>
			<updated>2014-04-08T10:59:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81578#p81578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81575#p81575" />
			<content type="html"><![CDATA[<p>Странно... А так фокус устанавливает?<br /></p><div class="codebox"><pre><code>ControlFocus, Edit1, Вход в систему</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-08T10:34:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81575#p81575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81574#p81574" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Тогда ControlSetText в помощь.</p></blockquote></div><p>Попробовал, но в никакую<br />1. </p><div class="codebox"><pre><code>ControlSetText, Edit1, User, ahk_class #32770</code></pre></div><p>2. </p><div class="codebox"><pre><code>ControlSetText, Edit1, User, Вход в систему</code></pre></div><p>Ни 1, ни 2, в ней отказываются, в блокноте работают нормально...</p>]]></content>
			<author>
				<name><![CDATA[VRS95KZ]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32027</uri>
			</author>
			<updated>2014-04-08T09:50:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81574#p81574</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81555#p81555" />
			<content type="html"><![CDATA[<p>Тогда ControlSetText в помощь.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-07T11:19:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81555#p81555</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81552#p81552" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>ClassNN не определяется?</p></blockquote></div><p>Если правильно понял, именно где вводится логин и пароль, то как ClassNN: Edit1 и ClassNN: Edit2</p>]]></content>
			<author>
				<name><![CDATA[VRS95KZ]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32027</uri>
			</author>
			<updated>2014-04-07T11:10:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81552#p81552</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81550#p81550" />
			<content type="html"><![CDATA[<p>ClassNN не определяется?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-07T11:03:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81550#p81550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81544#p81544" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>А что за окно?</p></blockquote></div><p>Окно авторизации в <a href="http://qsee.custhelp.com/app/answers/detail/a_id/1262">программе</a> для видеонаблюдения.</p>]]></content>
			<author>
				<name><![CDATA[VRS95KZ]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32027</uri>
			</author>
			<updated>2014-04-07T09:35:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81544#p81544</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81538#p81538" />
			<content type="html"><![CDATA[<p>А что за окно?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-07T09:00:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81538#p81538</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81537#p81537" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>misha_057 пишет:</cite><blockquote><p>Можно попробовать переместить курсор в нужное поле табуляцией:<br /></p><div class="codebox"><pre><code>Send, {TAB}
Send, login
Send, {TAB}
Send, password
Send, {ENTER}</code></pre></div><p>Если не будет успевать срабатывать, поставить после логина Sleep, 100</p></blockquote></div><p>Попробовал, но он не в какую не хочет, ни табуляция, и даже на Enter не работает, просто скрипт как бы выполнился, но окно по прежнему в том же состоянии, после запуска. Хотя использовав это на блокноте всё срабатывает.</p>]]></content>
			<author>
				<name><![CDATA[VRS95KZ]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32027</uri>
			</author>
			<updated>2014-04-07T08:40:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81537#p81537</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81483#p81483" />
			<content type="html"><![CDATA[<p>Можно попробовать переместить курсор в нужное поле табуляцией:<br /></p><div class="codebox"><pre><code>Send, {TAB}
Send, login
Send, {TAB}
Send, password
Send, {ENTER}</code></pre></div><p>Если не будет успевать срабатывать, поставить после логина Sleep, 100</p>]]></content>
			<author>
				<name><![CDATA[misha_057]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29511</uri>
			</author>
			<updated>2014-04-04T12:10:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81483#p81483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Ввод логина, пароля и нажатие кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81482#p81482" />
			<content type="html"><![CDATA[<p>Несколько дней пытался реализовать такую схему:<br />1. Запуск программы по истечению 10 секундной задержки;<br />2. Сделать фокус на вводе логина/пароля и ввести их;<br />3. Сделать фокус на кнопку ОК и нажатие её.</p><p>Первое сделал (Запуск, он и в Африке запуск), второе и третье не удаётся (может потому что находятся вроде в ClassNN), т.к. знаний нет как правильно это реализовать.</p><p>На данный момент:<br /></p><div class="codebox"><pre><code>sleep 10000
IfWinExist #32770
{
    WinActivate
}
else
{
    Run C:\Program Files\ControlCenter\ControlCenter.exe
    WinActivate
    Sleep 15000
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[VRS95KZ]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32027</uri>
			</author>
			<updated>2014-04-04T10:55:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81482#p81482</id>
		</entry>
</feed>
