<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Дата в названии файла]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16319&amp;type=atom" />
	<updated>2021-05-04T07:10:29Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16319</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Дата в названии файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147641#p147641" />
			<content type="html"><![CDATA[<p>Можно собрать путь в переменную, например, так:<br /></p><div class="codebox"><pre><code>path := Format(&quot;{}\ScreenSan-{}.png&quot;, A_ScriptDir, Save)</code></pre></div><p>Или так:<br /></p><div class="codebox"><pre><code>path := A_ScriptDir . &quot;\ScreenSan-&quot; . Save . &quot;.png&quot;</code></pre></div><p>А за тем отправить её как аргумент.<br /></p><div class="codebox"><pre><code>SaveScreenshotToFile(0, 0, A_ScreenWidth, A_ScreenHeight, path)</code></pre></div><p>Так и читается лучше.</p>]]></content>
			<author>
				<name><![CDATA[KusochekDobra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33846</uri>
			</author>
			<updated>2021-05-04T07:10:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147641#p147641</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Дата в названии файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147638#p147638" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Save := %dd%-%MM%-%YYYY%-%h%-%mm% 
SaveScreenshotToFile(0, 0, A_ScreenWidth, A_ScreenHeight, A_ScriptDir . &quot;\ScreenSan-%Save%.png&quot;)</code></pre></div><p>Выдает: ScreenSan-%Save%.png<br />Как исправить?</p>]]></content>
			<author>
				<name><![CDATA[AlexFox]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41706</uri>
			</author>
			<updated>2021-05-04T05:59:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147638#p147638</id>
		</entry>
</feed>
