<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Instagram_выгрузка]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=14490</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14490&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Instagram_выгрузка».]]></description>
		<lastBuildDate>Mon, 14 Jan 2019 14:27:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Instagram_выгрузка]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131195#p131195</link>
			<description><![CDATA[<div class="quotebox"><cite>inseption86 пишет:</cite><blockquote><p>&quot;ie.Document.parentWindow.scrollBy(0, Height)&quot; работает на основной странице, а не в окне &quot;Подписчики&quot;</p></blockquote></div><p>И не должно, это не window, а div.</p><div class="quotebox"><blockquote><p>ie.document.getElementsByClassName(&quot;isgrP&quot;)[0].scrollBy(0, Height)</p></blockquote></div><p>IE не поддерживает <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollBy#Browser_Compatibility">Element.scrollBy()</a>.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 14 Jan 2019 14:27:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131195#p131195</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Instagram_выгрузка]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131190#p131190</link>
			<description><![CDATA[<p>Добрый день!! Подскажите пож-та, &quot;ie.Document.parentWindow.scrollBy(0, Height)&quot; работает на основной странице, а не в окне &quot;Подписчики&quot;, если делаю так: &quot; ie.document.getElementsByClassName(&quot;isgrP&quot;)[0].scrollBy(0, Height)&quot;, то не работает (Объект не поддерживает свойство или метод &quot;scrollBy&quot;). </p><br /><div class="codebox"><pre><code>
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance force   ; игнор уже запущенного скрипта, переоткрытие

ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Visible := true
ie.Navigate(&quot;https://www.instagram.com/&quot;)
while ie.readystate &lt;&gt; 4
Sleep 500


MsgBox, 262192, !!!, Зайди в нужный профиль и нажми CTRL+Q !!

~^q::           


Xl := ComObjCreate(&quot;Excel.Application&quot;) 
Xl.Visible := True
Xl.Workbooks.Add 


namenick := ie.document.getElementsByClassName(&quot;_7UhW9       fKFbl yUEEX   KV-D4            fDxYl&quot;)[0].innerText ; никнейм

ie.document.getElementsByTagName(&quot;A&quot;)[1].click() ;клик по &quot;Подписчики&quot;
sleep 100

loop 10
{
Height := ie.document.getElementsByClassName(&quot;isgrP&quot;)[0].clientHeight

ie.Document.parentWindow.scrollBy(0, Height)
;ie.document.getElementsByClassName(&quot;isgrP&quot;)[0].scrollBy(0, Height)
}

numb := ie.document.getElementsByClassName(&quot;FPmhX notranslate _0imsa&quot;).length   ; количество подписчиков

loop %numb%
{
XL.workSheets(1).cells(A_index,1).value := ie.document.getElementsByClassName(&quot;FPmhX notranslate _0imsa&quot;)[A_index-1].innerText ; никнейм подписчика
}

XL.workSheets(1).Columns(&quot;A&quot;).ColumnWidth:=25   ; размер столбца
XL.workSheets(1).Columns(&quot;A&quot;).RowHeight:=18    ; высота ячейки

XL.workSheets(1).Range(&quot;A:A&quot;).HorizontalAlignment := -4131   ; выровнять текст слева
XL.workSheets(1).Range(&quot;A:A&quot;).VerticalAlignment := -4108 ; выровнять текст по центру

XL.workSheets(1).Range(&quot;A:A&quot;).WrapText := 0  ; отключение &quot;Перенести текст&quot;



end := xl.workSheets(1).Cells.(xl.workSheets(1).Rows.Count, &quot;A&quot;).End(xlUp := -4162).Row ; последняя заполненная ячейка
xl.Range(xl.Cells(1,1), xl.Cells(end,1)).Borders.LineStyle := 1 ; сетка

xl.Worksheets(1).name := namenick ; переменования листа в никнейм аккаунта

FormatTime, TimeString, , dd.MM.yyyy HH-mm 

file := A_Desktop &quot;\&quot; namenick &quot;_&quot; TimeString &quot;.xlsx&quot;  ; сохранение на раб столе
xl.ActiveWorkbook.SaveAs(file, 51)

MsgBox, 262192, !!!, Готово!!
return

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Mon, 14 Jan 2019 12:23:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131190#p131190</guid>
		</item>
	</channel>
</rss>
