<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK. Выделение id из html кода.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13262</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13262&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK. Выделение id из html кода.».]]></description>
		<lastBuildDate>Fri, 01 Dec 2017 15:22:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK. Выделение id из html кода.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=121870#p121870</link>
			<description><![CDATA[<p><strong>sememix</strong></p><p>Раз разобрались напишите пожалуйста рабочий код.</p>]]></description>
			<author><![CDATA[null@example.com (vlad1986)]]></author>
			<pubDate>Fri, 01 Dec 2017 15:22:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=121870#p121870</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK. Выделение id из html кода.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=121868#p121868</link>
			<description><![CDATA[<p><strong>Malcev</strong>, разобрался, спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Fri, 01 Dec 2017 11:31:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=121868#p121868</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK. Выделение id из html кода.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=121854#p121854</link>
			<description><![CDATA[<p>Вы забыли учесть кавычку после 765&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Thu, 30 Nov 2017 23:41:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=121854#p121854</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK. Выделение id из html кода.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=121853#p121853</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Thu, 30 Nov 2017 23:30:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=121853#p121853</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK. Выделение id из html кода.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=121851#p121851</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Thu, 30 Nov 2017 22:38:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=121851#p121851</guid>
		</item>
		<item>
			<title><![CDATA[AHK. Выделение id из html кода.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=121848#p121848</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Thu, 30 Nov 2017 21:54:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=121848#p121848</guid>
		</item>
	</channel>
</rss>
