<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Instagram_выгрузка]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14490&amp;type=atom" />
	<updated>2019-01-14T14:27:11Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14490</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram_выгрузка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131195#p131195" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-01-14T14:27:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131195#p131195</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Instagram_выгрузка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131190#p131190" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-01-14T12:23:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131190#p131190</id>
		</entry>
</feed>
