From svnnotify @ sourceforge.jp Fri Jun 1 00:45:32 2012 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 01 Jun 2012 00:45:32 +0900 Subject: [Ttssh2-commit] =?utf-8?q?=5B4959=5D_setpassword=2C__ispassword_?= =?utf-8?b?44Oe44Kv44Ot44Kz44Oe44Oz44OJ44KS6L+95Yqg44GX44Gf44CC?= Message-ID: <1338479132.772456.11772.nullmailer@users.sourceforge.jp> Revision: 4959 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/4959 Author: yutakapon Date: 2012-06-01 00:45:32 +0900 (Fri, 01 Jun 2012) Log Message: ----------- setpassword, ispassword マクロコマンドを追加した。 http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=28482 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 trunk/teraterm/common/helpid.h trunk/teraterm/ttpmacro/ttl.c trunk/teraterm/ttpmacro/ttmparse.c trunk/teraterm/ttpmacro/ttmparse.h Added Paths: ----------- trunk/doc/en/html/macro/command/ispassword.html trunk/doc/en/html/macro/command/setpassword.html trunk/doc/ja/html/macro/command/ispassword.html trunk/doc/ja/html/macro/command/setpassword.html -------------- next part -------------- Modified: trunk/doc/en/html/about/history.html =================================================================== --- trunk/doc/en/html/about/history.html 2012-05-31 14:26:45 UTC (rev 4958) +++ trunk/doc/en/html/about/history.html 2012-05-31 15:45:32 UTC (rev 4959) @@ -31,6 +31,35 @@
+Determines if a password is stored. +
+ ++ispassword <filename> <password name> ++ +
+A password identified by <password name> from the password file <filename> is determinted if the password is stored in the file.
+
+When a password identified by <password name> exists in the password file, the system variable "result" is set to 1. Otherwise, "result" is set to 0. +
+ ++strdim pw 2 +username = 'yutaka' + +ispassword 'pw.dat' username ; result: 0=false; 1=true +if result = 1 then + getpassword 'pw.dat' username pw[0] + pw[1] = pw[0] +else + msg = 'What is your password for ' + strconcat msg username + strconcat msg '?' + passwordbox msg 'Enter your password' + pw[0] = inputstr + pw[1] = pw[0] + setpassword 'pw.dat' username pw[0] +endif ++ +
+Adds or Overwrites a password. +
+ ++setpassword <filename> <password name> <strvar> ++ +
+A password identified by <password name> from the password file <filename> is updated.
+The string variable <strvar> 's passowrd is encrypted and stored into the file.
+
+If the specified file does not exist, it is newly created.
+
+A password file can contain multiple passwords.
+Each of them is identified by the password identifier.
+
+When the password file can not be written, the system variable "result" is set to 0. Otherwise, "result" is set to 1. +
+ ++newpasswd = 'hoge' +setpassword 'password.dat' 'yutaka' newpasswd +if result then + messagebox 'Password updated successfully.' 'Result' +endif ++ +