<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AutoIt: Получение дат как в VBSсript]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12623&amp;type=atom" />
	<updated>2017-05-20T05:40:20Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12623</id>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получение дат как в VBSсript]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115954#p115954" />
			<content type="html"><![CDATA[<p><strong>Xameleon</strong>, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Parazit]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34289</uri>
			</author>
			<updated>2017-05-20T05:40:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115954#p115954</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получение дат как в VBSсript]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115951#p115951" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Xameleon]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=8836</uri>
			</author>
			<updated>2017-05-19T18:48:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115951#p115951</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получение дат как в VBSсript]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115115#p115115" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-04-18T06:56:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115115#p115115</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AutoIt: Получение дат как в VBSсript]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115114#p115114" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Parazit]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34289</uri>
			</author>
			<updated>2017-04-18T05:40:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115114#p115114</id>
		</entry>
</feed>
