<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: RegExMatch()]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10882&amp;type=atom" />
	<updated>2015-08-19T16:13:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10882</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch()]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=96628#p96628" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>В исходном коде второй страницы указанные цифры отсутствуют, видимо, потом как-то подгружаются.</p></blockquote></div><p>Вытащить можно отсюда:<br /><a href="http://kurs.com.ua/ajax/mezhbank_table/all/2015-08-19">http://kurs.com.ua/ajax/mezhbank_table/all/2015-08-19</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2015-08-19T16:13:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=96628#p96628</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch()]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=96627#p96627" />
			<content type="html"><![CDATA[<p>По первой странице:<br /></p><div class="codebox"><pre><code>Pattern := &quot;&lt;/td&gt;\s+&lt;td\s+class=&quot;&quot;active&quot;&quot;&gt;([\d.]+).*?icon-(?:up|down)-open&quot;&quot;&gt;([\d.\+-]+)&quot;
html := UrlDownloadToVar(&quot;http://minfin.com.ua/currency/mb&quot;)

RegExMatch(html, &quot;is)&lt;td&gt;Покупка&quot; . Pattern, buy)
MsgBox, % buy1 &quot;`n&quot; buy2

RegExMatch(html, &quot;is)&lt;td&gt;Продажа&quot; . Pattern, sale)
MsgBox, % sale1 &quot;`n&quot; sale2


UrlDownloadToVar(URL, UserAgent = &quot;&quot;, ProxyServer = &quot;&quot;, UserName = 0, Password = &quot;&quot;)
{
   WebRequest := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
   ProxyServer ? WebRequest.SetProxy(HTTPREQUEST_PROXYSETTING_PROXY := 2, ProxyServer)
   WebRequest.Open(&quot;GET&quot;, Url)
   ProxyServer ? WebRequest.SetCredentials(UserName, Password, HTTPREQUEST_SETCREDENTIALS_FOR_PROXY := 1)
   UserAgent ? WebRequest.Option(WinHttpRequestOption_UserAgentString := 0) := UserAgent
   WebRequest.Send()
   Return WebRequest.ResponseText
}</code></pre></div><p>В исходном коде второй страницы указанные цифры отсутствуют, видимо, потом как-то подгружаются.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-08-19T13:46:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=96627#p96627</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch()]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=96626#p96626" />
			<content type="html"><![CDATA[<p>Извиняюсь. Исправил.</p>]]></content>
			<author>
				<name><![CDATA[MoZg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33153</uri>
			</author>
			<updated>2015-08-19T12:49:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=96626#p96626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch()]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=96625#p96625" />
			<content type="html"><![CDATA[<p>На указанной странице отсутствуют данные с первой картинки.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-08-19T12:47:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=96625#p96625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: RegExMatch()]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=96620#p96620" />
			<content type="html"><![CDATA[<p>Помогите с RegExMatch() не могу сделать нормальный шаблон для чтения...</p><p>Для начала скрипт скачивает вот <a href="http://minfin.com.ua/currency/mb/">эту</a> страницу и записывает в min.html<br />После чего считывает файл (FileRead, mf, min.html) и записывает в переменную mf<br />1. Надо чтобы скрипт считывал каждое значение, которое я указал на <a href="http://automeds.do.am/15848.png">картинке</a>, и записывал в отдельную переменную.<br />2. Далее скрипт качает вот <a href="http://kurs.com.ua/mejbank">эту</a> страницу опять считывает её в переменную, и считывает с этой страницы каждое значение, вот <a href="http://automeds.do.am/18484.png">картинка</a>, и записывал в отдельную переменную.</p>]]></content>
			<author>
				<name><![CDATA[MoZg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33153</uri>
			</author>
			<updated>2015-08-19T10:05:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=96620#p96620</id>
		</entry>
</feed>
