<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK. Выделение id из html кода.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13262&amp;type=atom" />
	<updated>2017-12-01T15:22:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13262</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK. Выделение id из html кода.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=121870#p121870" />
			<content type="html"><![CDATA[<p><strong>sememix</strong></p><p>Раз разобрались напишите пожалуйста рабочий код.</p>]]></content>
			<author>
				<name><![CDATA[vlad1986]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38788</uri>
			</author>
			<updated>2017-12-01T15:22:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=121870#p121870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK. Выделение id из html кода.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=121868#p121868" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, разобрался, спасибо!</p>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2017-12-01T11:31:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=121868#p121868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK. Выделение id из html кода.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=121854#p121854" />
			<content type="html"><![CDATA[<p>Вы забыли учесть кавычку после 765&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-11-30T23:41:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=121854#p121854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK. Выделение id из html кода.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=121853#p121853" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br /></p><div class="codebox"><pre><code>while RegExMatch( html, &quot;O)links_dropdown_([0-9]+)\s*style&quot;, price, A_Index = 1 ? 1 : price.Pos(1) + price.Len(1) )</code></pre></div><p>Тоже не работает,&nbsp; из-за того, что страницу подгружает неправильно.</p>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2017-11-30T23:30:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=121853#p121853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK. Выделение id из html кода.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=121851#p121851" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>sememix пишет:</cite><blockquote><p>RegExMatch( html, &quot;O)links_dropdown_\<strong>$</strong>([0-9]+)\s*style&quot;, price, A_Index = 1 ? 1 : price.Pos(1) + price.Len(1) )</p></blockquote></div><p>Так в исходном коде знака &quot;$&quot; нету, вроде?</p><div class="quotebox"><blockquote><p>&lt;div class=&quot;popup_block2&quot; id=&quot;links_dropdown<strong>_765</strong>&quot; style=&quot;display: none;&quot;&gt;</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-11-30T22:38:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=121851#p121851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK. Выделение id из html кода.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=121848#p121848" />
			<content type="html"><![CDATA[<p>У меня есть функция которая получает html код страницы. Мне нужно получить все ид игр со страницы, но почему-то не работает.<br />Пример кода для выделения ид<br /></p><div class="codebox"><pre><code>&lt;div class=&quot;popup_block2&quot; id=&quot;links_dropdown_765&quot; style=&quot;display: none;&quot;&gt;	&lt;div class=&quot;shadow_ul&quot;&gt;&lt;/div&gt;&lt;div class=&quot;shadow_top&quot;&gt;</code></pre></div><p>Нам требуется число 765, а таких строк с ид 500+.<br />Сам мой код:<br /></p><div class="codebox"><pre><code>#NoEnv 
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir% 
SetNumlockState, on
SetKeyDelay 300


	site := &quot;http://steamcommunity.com/id/semelins/games/?tab=all&quot;
	
	html := QueryResponseWebsite(site)
	prices := []

	while RegExMatch( html, &quot;O)links_dropdown_\$([0-9]+)\s*style&quot;, price, A_Index = 1 ? 1 : price.Pos(1) + price.Len(1) )
		prices.Push(price[1])

	for k, v in prices
	{
		Num++
		MsgBox, v
	}
	



QueryResponseWebsite(url)
{
	HttpObj := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
	ComObjError(false)
	HttpObj.Open(&quot;GET&quot;, Url) 
	HttpObj.Send()	
	HttpObj.WaitForResponse()
	return HttpObj.ResponseText
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2017-11-30T21:54:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=121848#p121848</id>
		</entry>
</feed>
