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 <filename>.<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>}NR}h "<a href="../macro/command/getpassword.html">getpassword</a>"ð@\Abvf[gµ½B + <ul> + <li>t@C¼É«ÏðÜßçêéæ¤Éµ½B</li> + <li>R}hÌÀsÂÛð"result"VXeÏÉi[·éæ¤Éµ½B</li> + </ul></li> </ul> - </li--> + </li> <li>oOC³ <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 @@ epX[hÍpX[h¯ÊqÉæÁįʳêéB </p> +<p> +<i>(o[W 4.71 È~)</i><br> +pX[ht@C <filename> ÉÍAOSÌ«϶ñ(%variableName%)ðÜßé±ÆªÅ«éB<br> +pX[ht@CÖÌ«Ýɸsµ½êAVXeÏ 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>