<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Как можно нажать кнопку submit через ComObjCreate]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12756&amp;type=atom" />
	<updated>2017-06-16T15:06:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12756</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как можно нажать кнопку submit через ComObjCreate]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116672#p116672" />
			<content type="html"><![CDATA[<p><strong>Turambar</strong>, читайте тут:<br /><a href="http://forum.script-coding.com/viewtopic.php?id=9108">http://forum.script-coding.com/viewtopic.php?id=9108</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-06-16T15:06:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116672#p116672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как можно нажать кнопку submit через ComObjCreate]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116671#p116671" />
			<content type="html"><![CDATA[<p>По ClassName можно? У меня так работает, например:<br /></p><div class="codebox"><pre><code>F3::
If !IsObject(ie)
	ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Visible := true
ie.Navigate(&quot;https://www.yandex.by/&quot;)
IELoad(ie)
ie.document.getElementsByClassName(&quot;home-link list__item-content home-link_black_yes&quot;)[2].Click(&quot;&quot;)
Sleep, 300
Return


IELoad(Pwb)
{
	While !(Pwb.busy)
		Sleep, 100
	While (Pwb.busy)
		Sleep, 100
	While !(Pwb.document.Readystate = &quot;Complete&quot;)
		Sleep, 100
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-06-16T12:12:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116671#p116671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как можно нажать кнопку submit через ComObjCreate]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116670#p116670" />
			<content type="html"><![CDATA[<p><strong>Turambar</strong><br /><span style="color: green"> Префикс</span>.</p>]]></content>
			<author>
				<name><![CDATA[JSmаn]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24434</uri>
			</author>
			<updated>2017-06-16T12:08:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116670#p116670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как можно нажать кнопку submit через ComObjCreate]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116669#p116669" />
			<content type="html"><![CDATA[<p>Здравствуйте. Проблема в следующем: на веб-странице имеется некая форма, которую нужно заполнить и отправить.<br />Кнопка &quot;Отправить&quot; однако не имеет ни имени (name), ни идентификатора (id). Как в этом случае к ней можно обратиться для исполнения команды click()?</p><div class="codebox"><pre><code>
&lt;div style=&quot;width:100%;&quot;&gt;&lt;textarea rows=&quot;9&quot; id=&quot;msg&quot; name=&quot;msg&quot; style=&quot;width:100%&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;
&lt;input type=&#039;submit&#039; value=&#039;Отправить&#039;&gt;</code></pre></div><div class="codebox"><pre><code>
ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Visible := true
ie.Navigate(url)
Sleep, 1000
ie.document.GetElementByID(&quot;msg&quot;).value := &quot;Всем привет!&quot;
&lt;кнопка Отправить?&gt;click()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Turambar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33097</uri>
			</author>
			<updated>2017-06-16T11:30:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116669#p116669</id>
		</entry>
</feed>
