<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK_Загрузка файла через Chrome.ahk]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=16230</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16230&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK_Загрузка файла через Chrome.ahk».]]></description>
		<lastBuildDate>Sun, 04 Apr 2021 09:12:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK_Загрузка файла через Chrome.ahk]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=147160#p147160</link>
			<description><![CDATA[<p><strong>Malcev</strong>&nbsp; Спасибо!</p><div class="codebox"><pre><code>Page.Call(&quot;Browser.setDownloadBehavior&quot;, { behavior : &quot;allow&quot;, downloadPath : &quot;C:\temp&quot;})   </code></pre></div>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Sun, 04 Apr 2021 09:12:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=147160#p147160</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK_Загрузка файла через Chrome.ahk]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=147145#p147145</link>
			<description><![CDATA[<p>Да, надо в Capabilities это прописать. Погуглите.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 03 Apr 2021 16:57:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=147145#p147145</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK_Загрузка файла через Chrome.ahk]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=147144#p147144</link>
			<description><![CDATA[<p><strong>Malcev</strong><br />Переделал на chrome.ahk</p><div class="codebox"><pre><code>
RegWrite, REG_SZ, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, {374DE290-123F-4565-9164-39C4925E467B}, % folder_end

loop % Page.Evaluate(&quot;document.querySelectorAll(&#039;#apexir_ACTIONSMENU &gt; li&#039;).length&quot;).Value
{
	If InStr(Page.Evaluate(&quot;document.querySelectorAll(&#039;#apexir_ACTIONSMENU &gt; li&#039;)[ &quot; A_index &quot; - 1 ].innerText&quot;).value, &quot;Выгрузить&quot;)
	{
		Page.Evaluate(&quot;document.querySelectorAll(&#039;#apexir_ACTIONSMENU &gt; li&#039;)[ &quot; A_index &quot; - 1 ].lastChild.click()&quot;)
	    Page.WaitForLoad()
	}
}

MostRecentTime:=
FormatTime, TimeString_time, , HH-mm-ss


while FileExist(folder_end &quot;\*.CRDownload&quot;)
    Sleep 300
	

loop, % folder_end &quot;\*.csv&quot;
{
	FileGetTime, ThisFileTime
	if (MostRecentTime &lt; ThisFileTime)
		{
			MostRecentTime := ThisFileTime
			FilePath:= A_LoopFileFullPath
		}
}
if (FilePath != &quot;&quot;)
    FileMove, % FilePath, % folder_end &quot;\Отчёт_&quot; name &quot;_&quot; TimeString_time &quot;.csv&quot;

</code></pre></div><p>Но по умолчанию стоит &quot; Автоматическое скачивание -&nbsp; Спрашивать (по умолчанию)&quot;, возможно ли это обойди?</p>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Sat, 03 Apr 2021 16:25:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=147144#p147144</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK_Загрузка файла через Chrome.ahk]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=147137#p147137</link>
			<description><![CDATA[<p><strong>Malcev</strong> Написал в техподдержку &quot;mos.ru&quot;, возможно ли выгружать отчёты через их Api, пока молчание,</p>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Fri, 02 Apr 2021 15:28:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=147137#p147137</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK_Загрузка файла через Chrome.ahk]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=147136#p147136</link>
			<description><![CDATA[<p>Мне кажется, что вы напрасно тратите время на подобные вопросы.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Fri, 02 Apr 2021 15:20:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=147136#p147136</guid>
		</item>
		<item>
			<title><![CDATA[AHK_Загрузка файла через Chrome.ahk]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=147135#p147135</link>
			<description><![CDATA[<p>Добрый день! Возможно ли скачать файл по ссылке ( ссылка всегда разная и имеет вид &quot;; &quot;https://ise.mos.ru/euchet/f?p=185:7071:1468461501878501:CSV::::&quot;), которая привязывается к аккаунту при входе? Данный споспоб не работает!</p><div class="codebox"><pre><code>

URL := &quot;https://ise.mos.ru/euchet/f?p=185:LOGIN:0&quot;

ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Navigate(URL)
while ie.readystate &lt;&gt; 4
	continue
sleep 500

......................
url_file := % &quot;https://ise.mos.ru/euchet/&quot; ie.document.getElementById(&quot;apexir_dl_CSV&quot;).getAttribute(&quot;href&quot;)   
 
outputCSVFile := &quot;C:\temp\1.csv&quot;
		
Download(url_file,outputCSVFile,True,customHeaders,&quot;GET&quot;)

customHeaders := {&quot;User-Agent&quot;: &quot;Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0&quot;
		 ,&quot;Cache-Control&quot;: &quot;max-age=0&quot;
		 ,&quot;Cookie&quot;: ie.document.cookie}


</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Fri, 02 Apr 2021 15:17:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=147135#p147135</guid>
		</item>
	</channel>
</rss>
