<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AutoIt: Получение дат как в VBSсript]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=12623</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12623&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AutoIt: Получение дат как в VBSсript».]]></description>
		<lastBuildDate>Sat, 20 May 2017 05:40:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AutoIt: Получение дат как в VBSсript]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=115954#p115954</link>
			<description><![CDATA[<p><strong>Xameleon</strong>, спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (Parazit)]]></author>
			<pubDate>Sat, 20 May 2017 05:40:20 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=115954#p115954</guid>
		</item>
		<item>
			<title><![CDATA[Re: AutoIt: Получение дат как в VBSсript]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=115951#p115951</link>
			<description><![CDATA[<p>Думаю, Вам могут быть полезны ещё и следующие функции, входящие в <strong>Date.au3</strong> (UDF библиотеку) AutoIt-а.<br /><a href="https://www.autoitscript.com/autoit3/docs/libfunctions/_Now.htm">_Now</a><br /><a href="https://www.autoitscript.com/autoit3/docs/libfunctions/_NowTime.htm">_NowTime</a><br /><a href="https://www.autoitscript.com/autoit3/docs/libfunctions/_NowDate.htm">_NowDate</a><br /><a href="https://www.autoitscript.com/autoit3/docs/libfunctions/_DateTimeFormat.htm">_DateTimeFormat</a><br /><a href="https://www.autoitscript.com/autoit3/docs/libfunctions/_NowCalc.htm">_NowCalc</a></p><p>Пример<br /></p><div class="codebox"><pre><code>Opt(&quot;MustDeclareVars&quot;,1)

#include &lt;Date.au3&gt;

Dim $codeLines = [ _
   &#039;_Now()&#039; _
   ,&#039;_NowTime()&#039; _
   ,&#039;_NowDate()&#039; _
   ,&#039;_NowCalc()&#039; _
   ,&#039;_DateTimeFormat(_NowCalc(),1)&#039; _
   ,&#039;_DateTimeFormat(_NowCalc(),2)&#039; _
   ,&#039;_DateTimeFormat(_NowCalc(),3)&#039; _
   ,&#039;_DateTimeFormat(_NowCalc(),4)&#039; _
   ,&#039;_DateTimeFormat(_NowCalc(),5)&#039; _
]

Dim $i
For $i=0 to Ubound($codeLines)-1
   ConsoleWrite($i &amp; &quot;) &quot; &amp; $codeLines[$i] &amp; &quot; -&gt; &quot; &amp; Execute($codeLines[$i]) &amp; @CRLF)
Next</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Xameleon)]]></author>
			<pubDate>Fri, 19 May 2017 18:48:20 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=115951#p115951</guid>
		</item>
		<item>
			<title><![CDATA[Re: AutoIt: Получение дат как в VBSсript]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=115115#p115115</link>
			<description><![CDATA[<p><span style="color: green">Вынесено из &quot;AutoIt: Получить расширения выделенных файлов&quot;.</span></p><p><span style="color: green"><strong>Parazit</strong><br />Замечание за оффтоп.</span></p><p>Объект ты создал первой строкой, только к константам дат и времени он никакого отношения не имеет.<br />В AutoIt подобные константы называют макросами. См. в <a href="http://azjio.ucoz.ru/file/AutoIt_Help_White_and_Black.7z">пакете</a> справки AutoIt<span style="color: grey"><em>3</em></span>.chm и знакомься.<br /></p><div class="codebox"><pre><code>$Date = @MDAY &amp; &quot;.&quot; &amp; @MON &amp; &quot;.&quot; &amp; @YEAR
MsgBox(0,&quot;&quot;, $Date)

$Now = $Date &amp; &quot; &quot; &amp; @HOUR &amp; &quot;:&quot; &amp; @MIN &amp; &quot;:&quot; &amp; @SEC
MsgBox(0,&quot;&quot;, $Now)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Tue, 18 Apr 2017 06:56:19 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=115115#p115115</guid>
		</item>
		<item>
			<title><![CDATA[AutoIt: Получение дат как в VBSсript]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=115114#p115114</link>
			<description><![CDATA[<div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p> мораль сей басни такова</p></blockquote></div><p>Как мне надо создавать <strong>ActiveX</strong> объекты?</p><p>А как мне получить текущую дату с помощью функций <strong>VBS </strong> - <strong>Date </strong>или <strong>Now</strong>?<br />Я имею ввиду, как я могу это использовать в <strong>AutoIt</strong>?<br />Какой мне надо создавать объект?</p><div class="codebox"><pre><code>msgBox Date
</code></pre></div><div class="codebox"><pre><code>
$aaa = ObjCreate(&#039;WScript.Shell&#039;)
; $sss = $aaa.date
; MsgBox(0,&quot;&quot;, WScript.Now)
; MsgBox(0,&quot;&quot;, Date)
; MsgBox(0,&quot;&quot;, $aaa)

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Parazit)]]></author>
			<pubDate>Tue, 18 Apr 2017 05:40:37 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=115114#p115114</guid>
		</item>
	</channel>
</rss>
