How to parse HTML in AutoHotKey?
<p>I have problems with parsing HTML files. The thing is that all the examples I have seen so for are so complicated for a beginner and I don't understand them at all. I have read GetNestedTag manual but it seems that there is a better way: using HTML Dom.</p>

<p>I have many tags (not sure if this is the correct word) like:</p>

<p><code>&lt;/span&gt; 3272&lt;/p&gt;</code></p>

<p><code>&lt;h1 class="articleTitle"&gt;Title of text&lt;/h1&gt;</code></p>

<p>How do I get the text: "3272" in the first case and "Title of text" in the second case?</p>

<p>I have tried so far:</p>

<pre><code>htmlCode = &lt;h1 class="articleTitle"&gt;Title of text&lt;/h1&gt;

html := ComObjCreate("HTMLFile")
html.write(htmlCode)

MsgBox % html.getElementsByClassName("articleTitle")[0].innerText\
</code></pre>

<p>And I have also tried:</p>

<pre><code>IE := ComObjCreate("InternetExplorer.Application")
IE.Visible := true

IE.Navigate("http://archiwum.rp.pl/artykul/473989-Miller-rezygnuje-z-kierowania-SLD.html#.VwkZz_mLTcs" PostCode)

    while IE.readyState!=4 || IE.document.readyState != "complete" || IE.busy
        continue

   Sleep 1000

Title_element  := Name_Elements[A_Index-1].parentElement.getElementsByClassName("articleTitle")[0]
Title_text     := Title_element.innertext

msgbox, % title_text


ExitApp
</code></pre>

<p>In each case <code>MsgBox</code> fails to show the correct value.</p>