<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: GUI_Shell.Explorer]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15280&amp;type=atom" />
	<updated>2020-04-04T14:54:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15280</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI_Shell.Explorer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138853#p138853" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>Спасибо!!<br /></p><div class="codebox"><pre><code>WB.document.getElementsByClassName(&quot;r-covid-19__date js-covid-date&quot;)[0].hidden := 1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2020-04-04T14:54:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138853#p138853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI_Shell.Explorer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138851#p138851" />
			<content type="html"><![CDATA[<p>У меня и так белый. Вот так у меня выглядит более похоже на то, что на сайте:<br /></p><div class="codebox"><pre><code>URL := &quot;https://www.rbc.ru/society/03/04/2020/5e2fe9459a79479d102bada6&quot;

Gui,Add, ActiveX, w750 h450 vWB, about:&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
ComObjConnect(WB, new wbEvent)
WB.silent := true
WB.Navigate(URL)
return

GuiClose:
WB := &quot;&quot;
ExitApp 

class wbEvent
{
   __Call(Name, Params*) {
      static processed
      WB := Params.Pop()
      if node := WB.document.querySelector(&quot;.r-covid-19&quot;) {
         ComObjConnect(WB)
         ; WB.Stop()
         if !processed {
            processed := true
            coll := WB.document.body.children
            Loop % coll.length {
               elem := coll[A_Index - 1]
               elem.style.visibility := &quot;hidden&quot;
            }
            WB.document.body.style.background := &quot;white&quot;
            style := node.style
            style.position := &quot;fixed&quot;
            style.left := style.top := 0
            style.width := &quot;750px&quot;
            style.height := &quot;450px&quot;
            style.visibility := &quot;visible&quot;
            style.background := &quot;url(https://s.rbk.ru/files_static/edd/2020/covid-19/15/images/bg_2x.png) no-repeat top right&quot;
            style.backgroundSize := &quot;240px 240px&quot;
            Gui, Show
         }
      }         
   }
}</code></pre></div><div class="quotebox"><cite>inseption86 пишет:</cite><blockquote><p>убрать дату и время</p></blockquote></div><p>Это вам задача для самостоятельного изучения.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-04-04T14:32:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138851#p138851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI_Shell.Explorer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138833#p138833" />
			<content type="html"><![CDATA[<p>А как фон на белый, как на сайте? и убрать дату и время</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2020-04-03T18:34:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138833#p138833</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI_Shell.Explorer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138826#p138826" />
			<content type="html"><![CDATA[<p>Лучше так, по-моему, без WB.Stop()<br /></p><div class="codebox"><pre><code>URL := &quot;https://www.rbc.ru/society/03/04/2020/5e2fe9459a79479d102bada6&quot;

Gui,Add, ActiveX, w600 h500 vWB, about:&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
ComObjConnect(WB, new wbEvent)
WB.silent := true
WB.Navigate(URL)
return

GuiClose:
WB := &quot;&quot;
ExitApp 

class wbEvent
{
   __Call(Name, Params*) {
      static processed
      WB := Params.Pop()
      if node := WB.document.querySelector(&quot;.r-covid-19&quot;) {
         ComObjConnect(WB)
         if !processed {
            processed := true
            coll := WB.document.body.children
            Loop % coll.length {
               elem := coll[A_Index - 1]
               elem.style.visibility := &quot;hidden&quot;
            }
            style := node.style
            style.position := &quot;fixed&quot;
            style.left := style.top := 0
            style.width := &quot;600px&quot;
            style.height := &quot;500px&quot;
            style.visibility := &quot;visible&quot;
            Gui, Show
         }
      }         
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-04-03T16:12:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138826#p138826</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI_Shell.Explorer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138824#p138824" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>Ооо, спасибо!</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2020-04-03T15:33:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138824#p138824</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI_Shell.Explorer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138822#p138822" />
			<content type="html"><![CDATA[<p>Примерно так:<br /></p><div class="codebox"><pre><code>URL := &quot;https://www.rbc.ru/society/03/04/2020/5e2fe9459a79479d102bada6&quot;

Gui,Add, ActiveX, w600 h500 vWB, about:&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
ComObjConnect(WB, new wbEvent)
WB.silent := true
WB.Navigate(URL)
return

GuiClose:
WB := &quot;&quot;
ExitApp 

class wbEvent
{
   __Call(Name, Params*) {
      static cloned
      WB := Params[Params.MaxIndex()]
      if node := WB.document.querySelector(&quot;.r-covid-19&quot;) {
         WB.Stop()
         ComObjConnect(WB)
         if !cloned {
            cloned := true
            coll := WB.document.body.children
            Loop % coll.length {
               elem := coll[A_Index - 1]
               elem.style.visibility := &quot;hidden&quot;
            }
            style := node.style
            style.position := &quot;fixed&quot;
            style.left := style.top := 0
            style.width := &quot;600px&quot;
            style.height := &quot;500px&quot;
            style.visibility := &quot;visible&quot;
            Gui, Show
         }
      }         
   }
}</code></pre></div><p>У меня, правда, этот сайт иногда просто не загружается в ActiveX.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-04-03T15:21:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138822#p138822</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: GUI_Shell.Explorer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138820#p138820" />
			<content type="html"><![CDATA[<p>Добрый день! Подскажите, пож-та, как отобразить в GUI только определённый ( document.getElementsByClassName(&quot;r-covid-19 js-covid inited&quot;)[0] )&nbsp; элемент?</p><p><a href="https://hostingkartinok.com/show-image.php?id=296451c51824bb50f129bd15b4d4a874"><span class="postimg"><img src="https://s8.hostingkartinok.com/uploads/thumbs/2020/04/296451c51824bb50f129bd15b4d4a874.png" alt="https://s8.hostingkartinok.com/uploads/thumbs/2020/04/296451c51824bb50f129bd15b4d4a874.png" /></span></a></p><br /><div class="codebox"><pre><code>
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance force
#Persistent

URL := &quot;https://www.rbc.ru/society/03/04/2020/5e2fe9459a79479d102bada6&quot;

Gui,Add, ActiveX, w1080 h840 vWB, Shell.Explorer
Gui, Show

WB.Navigate(URL)

while (wb.busy || wb.readyState &lt;&gt; 4)
     sleep 500

return

GuiClose:
WB := &quot;&quot;
ExitApp
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2020-04-03T13:06:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138820#p138820</id>
		</entry>
</feed>
