<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS Страница сайта с выбором элемента]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14946&amp;type=atom" />
	<updated>2019-09-06T06:20:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14946</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135962#p135962" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, подозрительными вещами занимаетесь, коллега. <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><span class="postimg"><img src="http://memesmix.net/media/created/0d4tda.jpg" alt="http://memesmix.net/media/created/0d4tda.jpg" /></span></p></div></div>]]></content>
			<author>
				<name><![CDATA[Xameleon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=8836</uri>
			</author>
			<updated>2019-09-06T06:20:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135962#p135962</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135956#p135956" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, разве ж я спорю с очевидным? Надо — так надо.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2019-09-05T16:43:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135956#p135956</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135947#p135947" />
			<content type="html"><![CDATA[<p>Когда мне надо было зарегистрировать 50000 имейлов с капчей, я таки потратил 50 евро, хоть и не контора. <br />К тому же есть сервисы с подпиской и наверняка есть народные версии платных решений.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-09-05T11:00:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135947#p135947</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135946#p135946" />
			<content type="html"><![CDATA[<p><strong>alexii</strong>, вынужден согласиться. ) Видимо Вы правы.</p>]]></content>
			<author>
				<name><![CDATA[Xameleon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=8836</uri>
			</author>
			<updated>2019-09-05T07:41:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135946#p135946</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135876#p135876" />
			<content type="html"><![CDATA[<p><strong>Xameleon</strong>, <strong>Malcev</strong>, если честно, я слабо верю, что контора, где 1С-ники, пусть опосредованно, решают простую задачу на бесплатном форуме, станет тратить деньги на закупку таких приложений/сервисов (<strong>Xameleon</strong>, по ссылке — не бесплатно).</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2019-08-26T13:59:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135876#p135876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135875#p135875" />
			<content type="html"><![CDATA[<p>Если сервис не сработает, то можно отправлять на платные сервисы китайцам. Там копейки стоит.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-26T08:15:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135875#p135875</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135874#p135874" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Xameleon пишет:</cite><blockquote><p>alexii, а в чём беда ? )<br />1) Можно распарсив документ через HTMLDocument (htmlfile) найти ссылку на капчу, выкачать её и показать в окне юзеру, теми же средствами 1C.<br />2) Можно воспользоваться бесплатными сервисами для распознавания капчи типа ссылка.<br />И тогда от юзера вообще ничего не потребуется.</p><p>Наверное как-то так )</p></blockquote></div><p>Не сталкивался еще с сервисами распознавания капч, спасибо. Попробуем, очень интересно.</p>]]></content>
			<author>
				<name><![CDATA[KoTzzz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40365</uri>
			</author>
			<updated>2019-08-26T03:55:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135874#p135874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135873#p135873" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p>Вот код на WSH:<br /></p><div class="codebox"><pre><code>Option Explicit

Const READYSTATE_COMPLETE = 4


With WScript.CreateObject(&quot;InternetExplorer.Application&quot;)
	.Navigate &quot;https://check1.fsrar.ru/&quot;
	
	Do
		WScript.Sleep 100
	Loop Until Not .Busy And .ReadyState = READYSTATE_COMPLETE
	
	With .document
		.getElementById(&quot;tab-title2&quot;).click()
		.getElementById(&quot;code_wb&quot;).value = &quot;0123456789&quot;
		.getElementById(&quot;owner_r1&quot;).value = &quot;9876543210&quot;
		.getElementById(&quot;CaptchaCode&quot;).focus()
	End With
	
	.Visible = True
End With

WScript.Quit 0
</code></pre></div><p>Вы можете напрячь своих программистов 1С, чтобы они тупо перевели это на язык 1С. Кроме того, можно в саму форму 1С вставить элемент управления WebControl в форму 1С и получить готовую страницу прямо на форме 1С.</p></blockquote></div><p>Спасибо большое.</p>]]></content>
			<author>
				<name><![CDATA[KoTzzz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40365</uri>
			</author>
			<updated>2019-08-26T03:54:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135873#p135873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135871#p135871" />
			<content type="html"><![CDATA[<p><strong>alexii</strong>, а в чём беда ? )<br />1) Можно распарсив документ через HTMLDocument (htmlfile) найти ссылку на капчу, выкачать её и показать в окне юзеру, теми же средствами 1C.<br />2) Можно воспользоваться бесплатными сервисами для распознавания капчи типа <a href="http://webmasters.ru/forum/f26/besplatnyi-xevil-demo-raspoznayot-suschestvuyuschih-v-mire-tipov-kapch-79710/">ссылка</a>.<br />И тогда от юзера вообще ничего не потребуется.</p><p>Наверное как-то так )</p>]]></content>
			<author>
				<name><![CDATA[Xameleon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=8836</uri>
			</author>
			<updated>2019-08-25T17:07:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135871#p135871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135870#p135870" />
			<content type="html"><![CDATA[<p><strong>Xameleon</strong>, а капчу кто распознавать будет?</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2019-08-25T16:11:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135870#p135870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135869#p135869" />
			<content type="html"><![CDATA[<p><strong>alexii</strong>, а еще можно создать wsc (Windows Script Component) и вызвать его из кода 1С. Тогда еще проще <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /> Ну и вдобавок можно попробовать обойтись без ie заменив ее отправкой http запросов через xmlhttp / winhttp</p>]]></content>
			<author>
				<name><![CDATA[Xameleon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=8836</uri>
			</author>
			<updated>2019-08-25T14:00:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135869#p135869</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135868#p135868" />
			<content type="html"><![CDATA[<p>Вот код на WSH:<br /></p><div class="codebox"><pre><code>Option Explicit

Const READYSTATE_COMPLETE = 4


With WScript.CreateObject(&quot;InternetExplorer.Application&quot;)
	.Navigate &quot;https://check1.fsrar.ru/&quot;
	
	Do
		WScript.Sleep 100
	Loop Until Not .Busy And .ReadyState = READYSTATE_COMPLETE
	
	With .document
		.getElementById(&quot;tab-title2&quot;).click()
		.getElementById(&quot;code_wb&quot;).value = &quot;0123456789&quot;
		.getElementById(&quot;owner_r1&quot;).value = &quot;9876543210&quot;
		.getElementById(&quot;CaptchaCode&quot;).focus()
	End With
	
	.Visible = True
End With

WScript.Quit 0
</code></pre></div><p>Вы можете напрячь своих программистов 1С, чтобы они тупо перевели это на язык 1С. Кроме того, можно в саму форму 1С вставить элемент управления WebControl в форму 1С и получить готовую страницу прямо на форме 1С.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2019-08-25T10:55:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135868#p135868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135862#p135862" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>wisgest пишет:</cite><blockquote><p><strong>KoTzzz</strong>, оформляй код соответствующим тегом!<br /></p><div class="quotebox"><cite>KoTzzz пишет:</cite><blockquote><div class="codebox"><pre><code>For Each a In ie.document.getElementById(&quot;tab-title2&quot;)
If InStr(a.href, &quot;viewtopic.php&quot;) &gt; 0 Then
      a.click
  Exit For
  End If
  next</code></pre></div></blockquote></div><p><em>document.getElementById()</em> возвращает элемент, а не коллекцию, какое <strong>For Each</strong>?!<br /></p><div class="codebox"><pre><code>Set a = ie.document.getElementById(&quot;tab-title2&quot;)
If InStr(a.href, &quot;viewtopic.php&quot;) &gt; 0 Then a.click()</code></pre></div></blockquote></div><p>Я тупень, извиняюсь.</p><p>Ошибка: Требуется объект &#039;document&#039;<br />Код 800А01А8</p>]]></content>
			<author>
				<name><![CDATA[KoTzzz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40365</uri>
			</author>
			<updated>2019-08-24T19:38:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135862#p135862</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135859#p135859" />
			<content type="html"><![CDATA[<p><strong>KoTzzz</strong>, оформляй код соответствующим тегом!<br /></p><div class="quotebox"><cite>KoTzzz пишет:</cite><blockquote><div class="codebox"><pre><code>For Each a In ie.document.getElementById(&quot;tab-title2&quot;)
If InStr(a.href, &quot;viewtopic.php&quot;) &gt; 0 Then
      a.click
  Exit For
  End If
  next</code></pre></div></blockquote></div><p><em>document.getElementById()</em> возвращает элемент, а не коллекцию, какое <strong>For Each</strong>?!<br /></p><div class="codebox"><pre><code>Set a = ie.document.getElementById(&quot;tab-title2&quot;)
If InStr(a.href, &quot;viewtopic.php&quot;) &gt; 0 Then a.click()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[wisgest]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=3850</uri>
			</author>
			<updated>2019-08-24T15:50:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135859#p135859</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS Страница сайта с выбором элемента]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135853#p135853" />
			<content type="html"><![CDATA[<p>Страница открывается, но пока не тыкается на элемент) </p><br /><br /><p>Set ie = CreateObject(&quot;InternetExplorer.Application&quot;)<br />Set WshShell = WScript.CreateObject(&quot;WScript.Shell&quot;)<br />ie.Visible = True<br />ie.Navigate &quot;https://check1.fsrar.ru&quot;</p><p>While ie.ReadyState &lt;&gt; 4 : WScript.Sleep 100 : Wend</p><p>For Each a In ie.document.getElementById(&quot;tab-title2&quot;)<br />If InStr(a.href, &quot;viewtopic.php&quot;) &gt; 0 Then<br />&nbsp; &nbsp; &nbsp; a.click<br />&nbsp; Exit For<br />&nbsp; End If<br />&nbsp; next</p>]]></content>
			<author>
				<name><![CDATA[KoTzzz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40365</uri>
			</author>
			<updated>2019-08-24T12:20:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135853#p135853</id>
		</entry>
</feed>
