<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Internet Explorer Platform APIs]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13356&amp;type=atom" />
	<updated>2019-08-20T18:42:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13356</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135792#p135792" />
			<content type="html"><![CDATA[<p>waitForResponse - это метод не XMLHttpRequest, а ServerXmlHttpRequest.<br />А его в джаваскрипт использовать не выйдет:<br /><a href="https://www.c-amie.co.uk/technical/emulating-serverxmlhttprequest-with-xmlhttprequest-in-javascript/">https://www.c-amie.co.uk/technical/emul … avascript/</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-20T18:42:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135792#p135792</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135790#p135790" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Ну и вообще на Win10 IE глючнее.</p></blockquote></div><p>Да, это я сразу понял как поставил 10, и дело касается практически всего. Но что остаётся делать, через пол года поддержки 7 не будет. Новое не допилили, а прежнее выпиливают.<br /></p><div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>teadrinker на оффоруме привел более правильное получение результата с колбеков</p></blockquote></div><p>Засланный казачок, помогает только своим. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Но непонятно, зачем нужны такие гибриды. Почему то не работает waitForResponse, но при желании думаю это можно допилить, или установить кэлбек на анк функцию. Также не ясно почему java не может сразу вернуть объект, то есть почему так не работает<br /></p><div class="codebox"><pre><code>return new XMLHttpRequest();  </code></pre></div><p>Тут вроде про метод <span class="bbu">этого</span> объекта <a href="https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms765535(v=vs.85)">https://docs.microsoft.com/en-us/previo … 5(v=vs.85)</a>.<br /></p><div class="codebox"><pre><code>Ajax=
(
var xhr = new XMLHttpRequest();  
)

ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Visible := true
ie.Navigate(&quot;http://forum.script-coding.com/viewtopic.php?id=8336&quot;)
while ie.busy
   sleep 50

IID := &quot;{332C4427-26CB-11D0-B483-00C04FD90119}&quot;   ;// IID_IHTMLWindow2
window := ComObj(9,ComObjQuery(ie,IID,IID),1) 
window.eval(Ajax)
xhr := window.eval(&quot;xhr&quot;)  
xhr.open(&quot;GET&quot;, &quot;http://forum.script-coding.com/viewtopic.php?id=8336&quot;, 0)  
xhr.send()
xhr.waitForResponse()
MsgBox Wait
MsgBox % xhr.responseText
ie.quit()
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-20T15:32:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135790#p135790</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135784#p135784" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> на оффоруме привел более правильное получение результата с колбеков:<br /></p><div class="codebox"><pre><code>Ajax=
(
var xhr = new XMLHttpRequest();
xhr.open(&quot;GET&quot;, &#039;http://forum.script-coding.com/viewtopic.php?id=8336&#039;, true);
var response;
xhr.onload = function () {
  if(xhr.readyState === XMLHttpRequest.DONE &amp;&amp; xhr.status === 200)
    response = &#039;|&#039; + xhr.responseText + &#039;|&#039;;
};
xhr.send();
)

ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Visible := true
ie.Navigate(&quot;http://forum.script-coding.com/viewtopic.php?id=8336&quot;)
while ie.busy
   sleep 50

IID := &quot;{332C4427-26CB-11D0-B483-00C04FD90119}&quot;   ;// IID_IHTMLWindow2
window := ComObj(9,ComObjQuery(ie,IID,IID),1)
window.eval(Ajax)
while !res := window.eval(&quot;response&quot;)
   Sleep, 50
window.eval(&quot;response = &#039;&#039;;&quot;)
MsgBox, % res</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-20T07:30:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135784#p135784</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135777#p135777" />
			<content type="html"><![CDATA[<p>Ну и вообще на Win10 IE глючнее.<br />Например если следующий код запустить на Win7 и во время его выполнения вручную потыкать по ссылкам, то он будет работать.<br />На Win10 выдаст ошибку: 0x800700AA - The requested resource is in use.<br /></p><div class="codebox"><pre><code>ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Visible := true
loop
{
   ie.Navigate(&quot;http://forum.script-coding.com/&quot;)
   while ie.busy
      sleep 50
   sleep 3000
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-19T18:44:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135777#p135777</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135775#p135775" />
			<content type="html"><![CDATA[<p>И раньше, до его редизайна, такого требования не было.<br />Ну или взять filemail.com.<br />Больше года скрипт работал исправно и пару недель назад перестал.<br />Пришлось заново смотреть отправляемые заголовки и оказалось, что теперь сервер требует отправлять:<br /></p><div class="codebox"><pre><code>HTTP.SetRequestHeader(&quot;Source&quot;, &quot;Web&quot;)</code></pre></div><p>Так что, дело не всегда в MSDN.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-19T17:01:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135775#p135775</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135772#p135772" />
			<content type="html"><![CDATA[<p>Для успешного логина требования в реферере я встретил только на inbox.lv, хотя имел дело с достаточно большим количеством сайтов.<br />А так как Msxml2.XMLHTTP не использую, то и забыл, что у него referer не отсылается.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-19T16:45:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135772#p135772</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135769#p135769" />
			<content type="html"><![CDATA[<p>Ну и с этими запросами всё как то сложно, может тут реферер&nbsp; работает, а другое что то не работает, и результат тот же, в каком то случае. В общем MSDN это не для всех. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-19T16:36:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135769#p135769</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135768#p135768" />
			<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>2019-08-19T16:32:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135768#p135768</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135764#p135764" />
			<content type="html"><![CDATA[<p>Ну так проверь.<br />Сайт, где показывается реферер я уже постил.<br />Пример с вызовами ajax тоже есть.<br />Осталось в код вставить какой-нибудь referer и посмотреть ответ сервера.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-19T15:06:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135764#p135764</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135763#p135763" />
			<content type="html"><![CDATA[<p>В смысле в XMLHttpRequest есть referer, в отличие от Msxml2?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-19T14:42:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135763#p135763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135759#p135759" />
			<content type="html"><![CDATA[<p>Значит я старые примеры смотрел, но оно и на 11 работает. <br />А плюшки есть?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-19T09:53:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135759#p135759</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135755#p135755" />
			<content type="html"><![CDATA[<p>На старых IE 6 версии и ниже использовался ActiveXObject(&quot;Msxml2.XMLHTTP&quot;).</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-19T01:11:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135755#p135755</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135753#p135753" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>new XMLHttpRequest();</code></pre></div><p>По моему это аналог<br /></p><div class="codebox"><pre><code>ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-19T00:41:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135753#p135753</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135752#p135752" />
			<content type="html"><![CDATA[<p>У меня таких ошибок нету. <br />Можно и дальше отлавливать ошибки и разбираться в их причине, но на кривом IE в этом нету смысла.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-19T00:01:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135752#p135752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Internet Explorer Platform APIs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135751#p135751" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Ты запускаешь скрипт, после появления сайта сам ручками логинишься</p></blockquote></div><p>Хорошо что уточнил.&nbsp; У меня видимо из за того что висела копия IE на которой тоже был вход, что то было не так. Если ввести ручками, то 9 из 10 по нажатию вылазят ошибки, потом посмотрю, но бывает что выскакивает авторизованная страница. Если ввести пароли, закрыть скрипт, запустить, то сразу авторизованный, по кнопке тоже.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-18T23:57:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135751#p135751</id>
		</entry>
</feed>
