<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Получить содержимое документа с GoogleDrive]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11321&amp;type=atom" />
	<updated>2016-02-15T15:04:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11321</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить содержимое документа с GoogleDrive]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101107#p101107" />
			<content type="html"><![CDATA[<p><a href="http://www.labnol.org/internet/direct-links-for-google-drive/28356/">http://www.labnol.org/internet/direct-l … ive/28356/</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-02-15T15:04:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101107#p101107</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить содержимое документа с GoogleDrive]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101083#p101083" />
			<content type="html"><![CDATA[<div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;На секретной странице google (18+)</div><div class="fancy_spoiler"><p>Открываем ссылку → Файл → Скачать как → txt — Смотрим URL скачанного файла</p></div></div>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2016-02-15T08:40:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101083#p101083</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить содержимое документа с GoogleDrive]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101079#p101079" />
			<content type="html"><![CDATA[<p>Спасибо.<br />Использую так:<br /></p><div class="codebox"><pre><code>text:=WebRequest.Responsetext
msgbox % instr(text,&quot;errorMessage&quot;) ? 0 : text</code></pre></div><p><strong>Malcev</strong>, а где, если не секрет, можно посмотреть все варианты добавочных строк вроде этой: &quot;export?format=txt&amp;id=&quot;? Помню раньше уже обсуждали, но никак не найду.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2016-02-15T06:54:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101079#p101079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить содержимое документа с GoogleDrive]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101072#p101072" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>url := &quot;https://docs.google.com/document/export?format=txt&amp;id=14LyJ4jBopNCizmhM79mGR-2kqo5SqXErcMrzRmyD4zk&quot;
WebRequest := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
WebRequest.Open(&quot;GET&quot;, url, false)
WebRequest.Send()
msgbox % WebRequest.Responsetext</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-02-14T22:48:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101072#p101072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить содержимое документа с GoogleDrive]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101067#p101067" />
			<content type="html"><![CDATA[<p>Может пригодится <a href="http://forum.script-coding.com/viewtopic.php?id=11183">URLDownloadToVar</a>.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2016-02-14T17:22:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101067#p101067</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Получить содержимое документа с GoogleDrive]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101062#p101062" />
			<content type="html"><![CDATA[<p>Как оптимальней всего получить содержимое?</p><p>Пока-что пользуюсь таким вариантом:<br /></p><div class="codebox"><pre><code>msgbox,% CheckUpdate()

CheckUpdate()
{
  URL:=&quot;https://docs.google.com/document/d/14LyJ4jBopNCizmhM79mGR-2kqo5SqXErcMrzRmyD4zk&quot;
  loop,10
  {
    try
    {
      Request:=Request(URL)
      text:=Request.Responsetext()
      Request.close()
    }
    if text contains Moved Temporarily
    {
      regexmatch(text, &quot;HREF=&quot;&quot;(.*)&quot;&quot;&gt;here&quot;, HREF)
      URL:=HREF1
      continue
    }
    stringleft,text,text,700
    regexmatch(text, &quot;&lt;meta property=&quot;&quot;og:description&quot;&quot; content=&quot;&quot;Version=(.*)&quot;&quot;&gt;&lt;meta name=&quot;&quot;google&quot;&quot;&quot;, newversion)
    break
  }
  return newversion1 ? newversion1 : 0
}

Request(url)
{
    WebRequest := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
    WebRequest.Option(6) := False ; No redirects
    WebRequest.Open(&quot;GET&quot;, url, false)
    WebRequest.Send()
    Return, WebRequest
}

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2016-02-14T12:15:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101062#p101062</id>
		</entry>
</feed>
