[Ttssh2-commit] [5468] uptime マクロコマンドをサポートした。

svnno****@sourc***** svnno****@sourc*****
2014年 1月 19日 (日) 02:21:36 JST


Revision: 5468
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5468
Author:   yutakapon
Date:     2014-01-19 02:21:35 +0900 (Sun, 19 Jan 2014)
Log Message:
-----------
uptime マクロコマンドをサポートした。

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/en/html/macro/command/index.html
    trunk/doc/en/teraterm.hhc
    trunk/doc/en/teraterm.hhp
    trunk/doc/ja/html/about/history.html
    trunk/doc/ja/html/macro/command/index.html
    trunk/doc/ja/teraterm.hhc
    trunk/doc/ja/teraterm.hhp

Added Paths:
-----------
    trunk/doc/en/html/macro/command/uptime.html
    trunk/doc/ja/html/macro/command/uptime.html

-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2014-01-18 16:59:57 UTC (rev 5467)
+++ trunk/doc/en/html/about/history.html	2014-01-18 17:21:35 UTC (rev 5468)
@@ -32,10 +32,14 @@
 <h2><a name="teraterm">Tera Term</a></h2>
 <h3><a name="teraterm_4.81">2014.xx.xx (Ver 4.81)</a> Celebrating 20 years</h3>
 <ul class="history">
-  <!--li>Changes
+  <li>Changes
     <ul>
+      <li>Macro
+        <ul>
+          <li>added the <a href="../macro/command/uptime.html">uptime</a> command.</li>
+        </ul></li>
     </ul>
-  </li -->
+  </li>
 
   <li>Bug fixes
     <ul>

Modified: trunk/doc/en/html/macro/command/index.html
===================================================================
--- trunk/doc/en/html/macro/command/index.html	2014-01-18 16:59:57 UTC (rev 5467)
+++ trunk/doc/en/html/macro/command/index.html	2014-01-18 17:21:35 UTC (rev 5468)
@@ -225,6 +225,7 @@
  <li><a href="show.html">show</a>
  <li><a href="statusbox.html">statusbox</a>
  <li><a href="strdim.html">strdim</a> (version 4.72 or later)
+ <li><a href="uptime.html">uptime</a> (version 4.81 or later)
  <li><a href="var2clipb.html">var2clipb</a> (version 4.46 or later)
  <li><a href="yesnobox.html">yesnobox</a>
 </ul>

Copied: trunk/doc/en/html/macro/command/uptime.html (from rev 5466, trunk/doc/en/html/macro/command/getdate.html)
===================================================================
--- trunk/doc/en/html/macro/command/uptime.html	                        (rev 0)
+++ trunk/doc/en/html/macro/command/uptime.html	2014-01-18 17:21:35 UTC (rev 5468)
@@ -0,0 +1,68 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+  "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+  <title>uptime</title>
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <link rel="stylesheet" href="../../style.css" type="text/css">
+</head>
+
+<body>
+
+
+<h1>uptime</h1>
+
+<p>
+Gets System Up Time.
+</p>
+
+<pre class="macro-syntax">
+uptime &lt;intvar&gt;
+</pre>
+
+<h2>Remarks</h2>
+
+<p>
+Retrieves the number of milliseconds that have elapsed since the Windows OS was started,
+and then stores the value into the &lt;intvar&gt; variable.
+</p>
+
+<p>
+The time wraps around to zero if the system is run continuously for 49.7 days.
+</p>
+
+<h2>Example</h2>
+
+<pre class="macro-example">
+; How to get the uptime in Windows
+uptime var
+day = var / 86400000
+var = var % 86400000
+hour = var / 3600000
+var = var % 3600000
+min = var / 60000
+var = var % 60000
+sec = var / 1000
+
+sprintf2 str "System Up Time: %d Days, %d Hours, %d Minutes, %d Seconds" day hour min sec
+messagebox str "uptime"
+</pre>
+
+<pre class="macro-example">
+uptime varstart
+
+; do something...
+
+uptime varend
+diff = varend - varstart
+sprintf2 str "MACRO running time: %d msec" diff
+messagebox str "running time"
+</pre>
+
+<h2>See also</h2>
+<ul>
+</ul>
+
+</body>
+</html>

Modified: trunk/doc/en/teraterm.hhc
===================================================================
--- trunk/doc/en/teraterm.hhc	2014-01-18 16:59:57 UTC (rev 5467)
+++ trunk/doc/en/teraterm.hhc	2014-01-18 17:21:35 UTC (rev 5468)
@@ -1557,6 +1557,11 @@
 					<param name="ImageNumber" value="11">
 					</OBJECT>
 				<LI> <OBJECT type="text/sitemap">
+					<param name="Name" value="uptime">
+					<param name="Local" value="html\macro\command\uptime.html">
+					<param name="ImageNumber" value="11">
+					</OBJECT>
+				<LI> <OBJECT type="text/sitemap">
 					<param name="Name" value="var2clipb">
 					<param name="Local" value="html\macro\command\var2clipb.html">
 					<param name="ImageNumber" value="11">

Modified: trunk/doc/en/teraterm.hhp
===================================================================
--- trunk/doc/en/teraterm.hhp	2014-01-18 16:59:57 UTC (rev 5467)
+++ trunk/doc/en/teraterm.hhp	2014-01-18 17:21:35 UTC (rev 5468)
@@ -321,6 +321,7 @@
 HlpMacroCommandToupper=html\macro\command\toupper.html
 HlpMacroCommandUnlink=html\macro\command\unlink.html
 HlpMacroCommandUntil=html\macro\command\until.html
+HlpMacroCommandUptime=html\macro\command\uptime.html
 HlpMacroCommandVar2clipb=html\macro\command\var2clipb.html
 HlpMacroCommandWait=html\macro\command\wait.html
 HlpMacroCommandWait4all=html\macro\command\wait4all.html

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2014-01-18 16:59:57 UTC (rev 5467)
+++ trunk/doc/ja/html/about/history.html	2014-01-18 17:21:35 UTC (rev 5468)
@@ -32,10 +32,14 @@
 <h2><a name="teraterm">Tera Term</a></h2>
 <h3><a name="teraterm_4.81">2014.xx.xx (Ver 4.81)</a> 20\x8E\xFC\x94N\x8BL\x94O</h3>
 <ul class="history">
-  <!-- li>\x95ύX
+  <li>\x95ύX
     <ul>
+      <li>\x83}\x83N\x83\x8D
+        <ul>
+          <li><a href="../macro/command/uptime.html">uptime</a>\x83R\x83}\x83\x93\x83h\x82\xF0\x92lj\xC1\x82\xB5\x82\xBD\x81B</li>
+        </ul></li>
     </ul>
-  </li -->
+  </li>
 
   <li>\x83o\x83O\x8FC\x90\xB3
     <ul>

Modified: trunk/doc/ja/html/macro/command/index.html
===================================================================
--- trunk/doc/ja/html/macro/command/index.html	2014-01-18 16:59:57 UTC (rev 5467)
+++ trunk/doc/ja/html/macro/command/index.html	2014-01-18 17:21:35 UTC (rev 5468)
@@ -225,6 +225,7 @@
  <li><a href="show.html">show</a>
  <li><a href="statusbox.html">statusbox</a>
  <li><a href="strdim.html">strdim</a> (\x83o\x81[\x83W\x83\x87\x83\x934.72\x88ȍ~)
+ <li><a href="uptime.html">uptime</a> (\x83o\x81[\x83W\x83\x87\x83\x934.81\x88ȍ~)
  <li><a href="var2clipb.html">var2clipb</a> (\x83o\x81[\x83W\x83\x87\x83\x934.46\x88ȍ~)
  <li><a href="yesnobox.html">yesnobox</a>
 </ul>

Copied: trunk/doc/ja/html/macro/command/uptime.html (from rev 5466, trunk/doc/ja/html/macro/command/getdate.html)
===================================================================
--- trunk/doc/ja/html/macro/command/uptime.html	                        (rev 0)
+++ trunk/doc/ja/html/macro/command/uptime.html	2014-01-18 17:21:35 UTC (rev 5468)
@@ -0,0 +1,69 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+  "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
+  <title>uptime</title>
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <link rel="stylesheet" href="../../style.css" type="text/css">
+</head>
+
+<body>
+
+
+<h1>uptime</h1>
+
+<p>
+OS\x82̉ғ\xAD\x8E\x9E\x8AԂ\xF0\x8E擾\x82\xB7\x82\xE9\x81B
+</p>
+
+<pre class="macro-syntax">
+uptime &lt;intvar&gt;
+</pre>
+
+<h2>\x89\xF0\x90\xE0</h2>
+
+<p>
+Windows OS\x82̉ғ\xAD\x8E\x9E\x8Aԁi\x83~\x83\x8A\x95b\x81j\x82\xF0 &lt;intvar&gt; \x82Ɋi\x94[\x82\xB7\x82\xE9\x81B
+</p>
+
+<p>
+\x81\xA6\x89ғ\xAD\x8E\x9E\x8AԂ\xAA49\x93\xFA\x82\xF0\x8Co\x89߂\xB7\x82\xE9\x82ƁA0\x82ɖ߂\xE9\x81B
+</p>
+
+
+<h2>\x97\xE1</h2>
+
+<pre class="macro-example">
+; How to get the uptime in Windows
+uptime var
+day = var / 86400000
+var = var % 86400000
+hour = var / 3600000
+var = var % 3600000
+min = var / 60000
+var = var % 60000
+sec = var / 1000
+
+sprintf2 str "System Up Time: %d Days, %d Hours, %d Minutes, %d Seconds" day hour min sec
+messagebox str "uptime"
+</pre>
+
+<pre class="macro-example">
+uptime varstart
+
+; do something...
+
+uptime varend
+diff = varend - varstart
+sprintf2 str "MACRO running time: %d msec" diff
+messagebox str "running time"
+</pre>
+
+
+<h2>\x8EQ\x8F\xC6</h2>
+<ul>
+</ul>
+
+</body>
+</html>

Modified: trunk/doc/ja/teraterm.hhc
===================================================================
--- trunk/doc/ja/teraterm.hhc	2014-01-18 16:59:57 UTC (rev 5467)
+++ trunk/doc/ja/teraterm.hhc	2014-01-18 17:21:35 UTC (rev 5468)
@@ -1549,6 +1549,10 @@
 					<param name="ImageNumber" value="11">
 					</OBJECT>
 				<LI> <OBJECT type="text/sitemap">
+					<param name="Name" value="uptime">
+					<param name="Local" value="html\macro\command\uptime.html">
+					</OBJECT>
+				<LI> <OBJECT type="text/sitemap">
 					<param name="Name" value="var2clipb">
 					<param name="Local" value="html\macro\command\var2clipb.html">
 					<param name="ImageNumber" value="11">

Modified: trunk/doc/ja/teraterm.hhp
===================================================================
--- trunk/doc/ja/teraterm.hhp	2014-01-18 16:59:57 UTC (rev 5467)
+++ trunk/doc/ja/teraterm.hhp	2014-01-18 17:21:35 UTC (rev 5468)
@@ -331,6 +331,7 @@
 HlpMacroCommandToupper=html\macro\command\toupper.html
 HlpMacroCommandUnlink=html\macro\command\unlink.html
 HlpMacroCommandUntil=html\macro\command\until.html
+HlpMacroCommandUptime=html\macro\command\uptime.html
 HlpMacroCommandVar2clipb=html\macro\command\var2clipb.html
 HlpMacroCommandWait=html\macro\command\wait.html
 HlpMacroCommandWait4all=html\macro\command\wait4all.html



Ttssh2-commit メーリングリストの案内