[Ttssh2-commit] [4524] getpassword マクロコマンドを機能アップデートした。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 7月 25日 (月) 23:10:15 JST


Revision: 4524
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4524
Author:   yutakapon
Date:     2011-07-25 23:10:15 +0900 (Mon, 25 Jul 2011)

Log Message:
-----------
getpassword マクロコマンドを機能アップデートした。

 ・ファイル名に環境変数を含められるようにした。
 ・コマンドの実行結果を result に格納するようにした。

cf.
getpassword limitations 
http://logmett.com/forum/viewtopic.php?f=6&t=1750
プロンプト用の引数を追加しろとある件は、別途保留。

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/en/html/macro/command/getpassword.html
    trunk/doc/ja/html/about/history.html
    trunk/doc/ja/html/macro/command/getpassword.html


-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2011-07-25 12:20:59 UTC (rev 4523)
+++ trunk/doc/en/html/about/history.html	2011-07-25 14:10:15 UTC (rev 4524)
@@ -33,11 +33,16 @@
 
 <h3><a name="teraterm_4.71">2011.x.x (Ver 4.71)</a></h3>
 <ul class="history">
-  <!--li>Changes
+  <li>Changes
     <ul>
       <li></li>
+      <li>"<a href="../macro/command/getpassword.html">getpassword</a>" macro command is updated.
+        <ul>
+          <li>Support of environmental variables in file names.</li>
+          <li>The result of the command execution is stored in the system variable "result".</li>
+        </ul></li>
     </ul>
-  </li-->
+  </li>
 
   <li>Bug fixes
     <ul>

Modified: trunk/doc/en/html/macro/command/getpassword.html
===================================================================
--- trunk/doc/en/html/macro/command/getpassword.html	2011-07-25 12:20:59 UTC (rev 4523)
+++ trunk/doc/en/html/macro/command/getpassword.html	2011-07-25 14:10:15 UTC (rev 4524)
@@ -41,6 +41,12 @@
 Each of them is identified by the password identifier.
 </p>
 
+<p>
+<i>(version 4.71 or later)</i><br>
+The environmental variables can be included in the password file &lt;filename&gt;.<br>
+When the password file can not be written, the system variable "result" is set to 0. Otherwise, "result" is set to 1.
+</p>
+
 <h2>Example</h2>
 
 <pre class="macro-example">
@@ -52,5 +58,12 @@
 sendln password
 </pre>
 
+<pre class="macro-example">
+<strong>getpassword</strong> "%USERPROFILE%\myfile.dat" 'mypassword' password
+if !result then
+	messagebox 'Password was not saved' 'ERROR'
+endif
+</pre>
+
 </BODY>
 </HTML>

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2011-07-25 12:20:59 UTC (rev 4523)
+++ trunk/doc/ja/html/about/history.html	2011-07-25 14:10:15 UTC (rev 4524)
@@ -33,11 +33,16 @@
 
 <h3><a name="teraterm_4.71">2011.x.x (Ver 4.71)</a></h3>
 <ul class="history">
-  <!--li>•ÏX
+  <li>•ÏX
     <ul>
       <li></li>
+      <li>ƒ}ƒNƒƒRƒ}ƒ“ƒh "<a href="../macro/command/getpassword.html">getpassword</a>"‚ð‹@”\ƒAƒbƒvƒf[ƒg‚µ‚½B
+        <ul>
+          <li>ƒtƒ@ƒCƒ‹–¼‚Ɋ‹«•Ï”‚ðŠÜ‚ß‚ç‚ê‚é‚悤‚É‚µ‚½B</li>
+          <li>ƒRƒ}ƒ“ƒh‚ÌŽÀs‰Â”Û‚ð"result"ƒVƒXƒeƒ€•Ï”‚ÉŠi”[‚·‚é‚悤‚É‚µ‚½B</li>
+        </ul></li>
     </ul>
-  </li-->
+  </li>
 
   <li>ƒoƒOC³
     <ul>

Modified: trunk/doc/ja/html/macro/command/getpassword.html
===================================================================
--- trunk/doc/ja/html/macro/command/getpassword.html	2011-07-25 12:20:59 UTC (rev 4523)
+++ trunk/doc/ja/html/macro/command/getpassword.html	2011-07-25 14:10:15 UTC (rev 4524)
@@ -41,6 +41,13 @@
 ŠeƒpƒXƒ[ƒh‚̓pƒXƒ[ƒhŽ¯•ÊŽq‚É‚æ‚Á‚ÄŽ¯•Ê‚³‚ê‚éB
 </p>
 
+<p>
+<i>(ƒo[ƒWƒ‡ƒ“ 4.71 ˆÈ~)</i><br>
+ƒpƒXƒ[ƒhƒtƒ@ƒCƒ‹ &lt;filename&gt; ‚ɂ́AOS‚̊‹«•Ï”•¶Žš—ñ(%variableName%)‚ðŠÜ‚߂邱‚Æ‚ª‚Å‚«‚éB<br>
+ƒpƒXƒ[ƒhƒtƒ@ƒCƒ‹‚ւ̏‘‚«ž‚Ý‚ÉŽ¸”s‚µ‚½ê‡AƒVƒXƒeƒ€•Ï” result ‚É 0 ‚ªŠi”[‚³‚ê‚éB‚»‚êˆÈŠO‚̏ꍇAresult ‚É 1 ‚ªŠi”[‚³‚ê‚éB
+
+</p>
+
 <h2>—á</h2>
 
 <pre class="macro-example">
@@ -52,5 +59,12 @@
 sendln password
 </pre>
 
+<pre class="macro-example">
+<strong>getpassword</strong> "%USERPROFILE%\myfile.dat" 'mypassword' password
+if !result then
+	messagebox 'Password was not saved' 'ERROR'
+endif
+</pre>
+
 </BODY>
 </HTML>



Ttssh2-commit メーリングリストの案内
Back to archive index