<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[为荣誉而战！]]></title>
<link>http://www.wjmhxx.com/Shortway/</link>
<description><![CDATA[Shortway&#39;s Blog（技术分站）]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog2 v2.4]]></copyright>
<webMaster><![CDATA[shortway@sina.com(Shortway)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>为荣誉而战！</title> 
	<url>http://www.wjmhxx.com/Shortway/images/logos.gif</url> 
	<link>http://www.wjmhxx.com/Shortway/</link> 
	<description>为荣誉而战！</description> 
</image>

			<item>
			<link>http://www.wjmhxx.com/Shortway/default.asp?id=77</link>
			<title><![CDATA[批量顺序重命名.bat(原)]]></title>
			<author>shortway@sina.com(Shortway)</author>
			<category><![CDATA[Bat批处理]]></category>
			<pubDate>Thu,04 Mar 2010 11:24:45 +0800</pubDate>
			<guid>http://www.wjmhxx.com/Shortway/default.asp?id=77</guid>	
		<description><![CDATA[文件夹内有大量同一类型的文件，做一个批处理，批量按顺序重命名。<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">@echo on<br/>setlocal enabledelayedexpansion<br/>set n=0<br/>for /f &#34;tokens=*&#34; %%a in (&#39;dir /b /os *-4*.html&#39;) do (<br/>set /a n+=1<br/>ren %%a kk-4-!n!.html<br/>)</div></div><br/><br/>关键代码说明：<br/><br/>in (&#39;dir /b /os *-4*.html&#39;) ：<br/>/b：简洁文件列表<br/>/os：按文件大小顺序（可选：/on按名称；/od按日期；-逆序,详细请看dir命令的说明）<br/><br/>set /a n+=1：设置环境变量n每次循环递增1<br/><br/>应用环境变量的值时前后一定加“!”.<br/>]]></description>
		</item>
		
			<item>
			<link>http://www.wjmhxx.com/Shortway/default.asp?id=76</link>
			<title><![CDATA[substring和substr方法（转）]]></title>
			<author>shortway@sina.com(Shortway)</author>
			<category><![CDATA[Javascript]]></category>
			<pubDate>Thu,07 Jan 2010 14:58:56 +0800</pubDate>
			<guid>http://www.wjmhxx.com/Shortway/default.asp?id=76</guid>	
		<description><![CDATA[1.<strong>substring 方法</strong><br/><br/>定义和用法<br/><br/>substring 方法用于提取字符串中介于两个指定下标之间的字符。<br/><br/>语法<br/><br/>stringObject.substring(start,stop)<br/><br/>参数&nbsp;&nbsp;&nbsp;&nbsp; 描述<br/>start&nbsp;&nbsp;&nbsp;&nbsp;必需。一个非负的整数，规定要提取的子串的第一个字符在 stringObject 中的位置。<br/>stop&nbsp;&nbsp;&nbsp;&nbsp; 可选。一个非负的整数，比要提取的子串的最后一个字符在 stringObject 中的位置多 1。如果省略该参数，那么返回的子串会一直到字符串的结尾。<br/><br/>返回值<br/><br/>一个新的字符串，该字符串值包含 stringObject 的一个子字符串，其内容是从 start 处到 stop-1 处的所有字符，其长度为 stop 减 start。<br/><br/>说明<br/><br/>substring 方法返回的子串包括 start 处的字符，但不包括 end 处的字符。<br/>如果 start 与 end 相等，那么该方法返回的就是一个空串（即长度为 0 的字符串）。<br/>如果 start 比 end 大，那么该方法在提取子串之前会先交换这两个参数。<br/>如果 start 或 end 为负数，那么它将被替换为 0。<br/><br/>2.<strong>substr 方法</strong><br/><br/>定义和用法<br/><br/>substr 方法用于返回一个从指定位置开始的指定长度的子字符串。<br/><br/>语法<br/><br/>stringObject.substr(start [, length ])<br/><br/>参数&nbsp;&nbsp;&nbsp;&nbsp;描述<br/>start&nbsp;&nbsp; 必需。所需的子字符串的起始位置。字符串中的第一个字符的索引为 0。<br/>length 可选。在返回的子字符串中应包括的字符个数。<br/><br/>说明<br/><br/>如果 length 为 0 或负数，将返回一个空字符串。<br/>如果没有指定该参数，则子字符串将延续到stringObject的最后。<br/><br/>举例：<br/>var str = &#34;0123456789&#34;;<br/><br/>alert(str.substring(0));------------&#34;0123456789&#34;<br/>alert(str.substring(5));------------&#34;56789&#34;<br/>alert(str.substring(10));-----------&#34;&#34;<br/>alert(str.substring(12));-----------&#34;&#34;<br/>alert(str.substring(-5));-----------&#34;0123456789&#34;<br/>alert(str.substring(-10));----------&#34;0123456789&#34;<br/>alert(str.substring(-12));----------&#34;0123456789&#34;<br/>alert(str.substring(0,5));----------&#34;01234&#34;<br/>alert(str.substring(0,10));---------&#34;0123456789&#34;<br/>alert(str.substring(0,12));---------&#34;0123456789&#34;<br/>alert(str.substring(2,0));----------&#34;01&#34;<br/>alert(str.substring(2,2));----------&#34;&#34;<br/>alert(str.substring(2,5));----------&#34;234&#34;<br/>alert(str.substring(2,12));---------&#34;23456789&#34;<br/>alert(str.substring(2,-2));---------&#34;01&#34;<br/>alert(str.substring(-1,5));---------&#34;01234&#34;<br/>alert(str.substring(-1,-5));--------&#34;&#34;<br/><br/>alert(str.substr(0));---------------&#34;0123456789&#34;<br/>alert(str.substr(5));---------------&#34;56789&#34;<br/>alert(str.substr(10));--------------&#34;&#34;<br/>alert(str.substr(12));--------------&#34;&#34;<br/>alert(str.substr(-5));--------------&#34;0123456789&#34;<br/>alert(str.substr(-10));-------------&#34;0123456789&#34;<br/>alert(str.substr(-12));-------------&#34;0123456789&#34;<br/>alert(str.substr(0,5));-------------&#34;01234&#34;<br/>alert(str.substr(0,10));------------&#34;0123456789&#34;<br/>alert(str.substr(0,12));------------&#34;0123456789&#34;<br/>alert(str.substr(2,0));-------------&#34;&#34;<br/>alert(str.substr(2,2));-------------&#34;23&#34;<br/>alert(str.substr(2,5));-------------&#34;23456&#34;<br/>alert(str.substr(2,12));------------&#34;23456789&#34;<br/>alert(str.substr(2,-2));------------&#34;&#34;<br/>alert(str.substr(-1,5));------------&#34;01234&#34;<br/>alert(str.substr(-1,-5));-----------&#34;&#34;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>参考文献：<br/><a href="http://www.w3school.com.cn/js/jsref_substring.asp" target="_blank">http://www.w3school.com.cn/js/jsref_substring.asp</a><br/><a href="http://www.w3school.com.cn/js/jsref_substr.asp" target="_blank">http://www.w3school.com.cn/js/jsref_substr.asp</a> <br/><br/>转自：<a href="http://hi.baidu.com/bit5566/blog/item/9edaf84ac738f52b08f7effb.html" target="_blank">http://hi.baidu.com/bit5566/blog/item/9edaf84ac738f52b08f7effb.html</a>]]></description>
		</item>
		
			<item>
			<link>http://www.wjmhxx.com/Shortway/default.asp?id=75</link>
			<title><![CDATA[搜索获取MS的剪贴画素材，强！(原)]]></title>
			<author>shortway@sina.com(Shortway)</author>
			<category><![CDATA[Javascript]]></category>
			<pubDate>Sat,11 Apr 2009 00:44:23 +0800</pubDate>
			<guid>http://www.wjmhxx.com/Shortway/default.asp?id=75</guid>	
		<description><![CDATA[Word中插入剪贴画大家都用过吧。<br/><br/>免费下载剪贴画、照片、动画和声音 - Microsoft Office Online 网址：<a target="_blank" href="http://office.microsoft.com/zh-cn/clipart/default.aspx">http://office.microsoft.com/zh-cn/clipart/default.aspx</a><br/><br/>剪贴画有的是Wmf格式的矢量图，可以方便地导入到Flash中。<br/><br/>我们习惯在Word中网络搜索，让剪贴画管理器管理。<br/><br/>剪贴画管理器有优点，可以利用关键词分类，但是文件操作不直观：这些剪贴画素材到底存放在我的电脑哪里？我可以复制它们吗？<br/><br/>为了好好利用这笔网络素材资源，我分析了网页代码，终于还原出了剪贴画的网址，做成这个<a href="http://www.wjmhxx.com/Shortway/article.asp?id=8" target="_blank">书签</a>工具，与大家分享。<br/><br/>使用方法：<br/><br/>1、运行下面的代码，有链接上右击→收藏<a href="http://www.wjmhxx.com/Shortway/article.asp?id=8" target="_blank">书签</a>到“收藏夹”或“链接栏”；<br/><br/>2、打开IE，使用时点击两次本<a href="http://www.wjmhxx.com/Shortway/article.asp?id=8" target="_blank">书签</a>。<br/>第一次，根据你输入的关键词和类型到微软网站上搜索，只要第一页就行，就会获取到所有的结果列表。（如果感兴趣，你可以查看结果页面的源代码。）<br/>第二次点击，自动分析结果列表，还原剪贴画的URL，全部显示出来。<br/><br/>注意：剪贴画还包括声音素材的。为了简便，我没有特殊处理，还是用图片形式显示。这当然是错误的方法，不过你可以右键下载再试听。<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp40362">
<a href=&#34;javascript:U='<a href="http://office.microsoft.com/" target="_blank">http://office.microsoft.com/</a>';W=U+'zh-cn/clipart/results.aspx?qu=';D=document;if(D.location.href.substr(0,W.length)!=W){D.location.href=W+encodeURIComponent(prompt('关键词',''))+'&amp;sc='+prompt('类型:全部20;剪贴21;照片22;动画23;声音24','20')}else{A=arrAssetColl;L=A.length;S=L+'个<p>\n';for(I=0;I<L;I++){M=U+'clipart/dglxasset.aspx?AssetID='+A[I]+'0000';S+='<a href='+M+' target=_blank><img src='+M+' border=0 width=88/></a>\n'}document.write(S);}void(0);&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;剪贴画&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击两次，第一次搜索剪贴画，再次点击将显示所有的剪贴画。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp40362')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp40362')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>使用效果截屏：<br/><img src="http://www.wjmhxx.com/Shortway/attachments/month_0904/620094111923.jpg" border="0" alt=""/><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.wjmhxx.com/Shortway/default.asp?id=74</link>
			<title><![CDATA[用批处理禁用/启用服务(原)]]></title>
			<author>shortway@sina.com(Shortway)</author>
			<category><![CDATA[Bat批处理]]></category>
			<pubDate>Mon,30 Mar 2009 18:36:19 +0800</pubDate>
			<guid>http://www.wjmhxx.com/Shortway/default.asp?id=74</guid>	
		<description><![CDATA[<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">::用批处理来禁用服务，以MySql服务为例<br/><br/>@ECHO OFF<br/>@ECHO MySql 服务正在禁用...<br/><br/>::先停止服务<br/>@NET STOP MySql&gt;NUL 2&gt;NUL<br/><br/>::再设置启动类型为“已禁用”<br/>@SC CONFIG MySql START= DISABLED&gt;NUL 2&gt;NUL<br/><br/>@ECHO.<br/>@ECHO MySql 服务禁用完成！<br/>@ECHO.<br/>PAUSE<br/><br/>::::::::::::::::::::::::::::::::::::::::::<br/>::用批处理来启用服务<br/><br/>@ECHO OFF<br/>@ECHO MySql 服务正在启用...<br/><br/>::先设置启动类型为“自动”<br/>@SC CONFIG MySql START= AUTO&gt;NUL 2&gt;NUL<br/><br/>::再启动服务<br/>@NET START MySql&gt;NUL 2&gt;NUL<br/><br/>@ECHO.<br/>@ECHO MySql 服务启用完成！<br/>@ECHO.<br/>PAUSE</div></div><br/><br/>注意：<br/>1、启用的顺序为：先设置启动类型为“自动”，再启动服务；<br/>禁用服务的顺序要相反：先停止服务，再设置启动类型为“已禁用”。<br/><br/>2、“START= ”<span style="color:Red">等号后面必须要有一个空格</span>。<br/><br/>3、语句格式：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent"><br/>SC CONFIG &lt;服务名称&gt; START= &lt;启动类型&gt;<br/><br/><span style="color:Red">注意是“服务名称”，不是显示名称！</span><br/><br/>START 后面的启动类型参数含义：<br/>START= DISABLED 表示禁用<br/>START= DEMAND&nbsp;&nbsp; 表示手动<br/>START= AUTO&nbsp;&nbsp;&nbsp;&nbsp; 表示自动</div></div><br/><br/>4、末尾的“&gt;NUL 2&gt;NUL”是不回显，隐蔽了返回信息。可以去掉。<br/><br/>所以，以前的一篇《<a target="_blank" href="http://www.wjmhxx.com/Shortway/article.asp?id=58">去除暴风影音的广告.bat</a>》中，禁用暴风影音广告网络服务的方法就是：<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">@NET STOP ccosm&gt;NUL 2&gt;NUL<br/>@SC CONFIG ccosm START= DISABLED&gt;NUL 2&gt;NUL</div></div><br/><br/>参考网址：<br/>1、<a href="http://www.sgoon.net/MINI/Default.asp?5-14592-0-0-0-0-0-a-.htm" target="_blank">http://www.sgoon.net/MINI/Default.asp?5-14592-0-0-0-0-0-a-.htm</a><br/>2、<a href="http://hi.baidu.com/maxdao/blog/item/0cb9fdfa6948b0dfb48f31ae.html" target="_blank">http://hi.baidu.com/maxdao/blog/item/0cb9fdfa6948b0dfb48f31ae.html</a><br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.wjmhxx.com/Shortway/default.asp?id=73</link>
			<title><![CDATA[最新小书签 bookmarklet(原)]]></title>
			<author>shortway@sina.com(Shortway)</author>
			<category><![CDATA[Javascript]]></category>
			<pubDate>Wed,04 Feb 2009 15:54:47 +0800</pubDate>
			<guid>http://www.wjmhxx.com/Shortway/default.asp?id=73</guid>	
		<description><![CDATA[1、<a target="_blank" href="http://www.wjmhxx.com/Shortway/article.asp?id=60">Flv下载地址嗅探</a><br/><br/>2、<a target="_blank" href="http://www.wjmhxx.com/Shortway/article.asp?id=53">英语划词翻译</a><br/><br/>3、打开多页：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp19612">
<a href=&#34;javascript:U=location.href;D=U.lastIndexOf('.');L=U.substr(0,D);R=U.substr(D,99);C=prompt('多少页？',0);S='<iframe src='+U+'? width=33% height=500></iframe>';for(i=1;i<C;i++)S+='<iframe src='+L+'_'+i+R+' width=33% height=500></iframe>';document.write('<center>'+S+'</center>');void(0);&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;打开多页&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击一下，就可以实现打开多页。</a><p>
然后你点开这一页试试：<a href=&#34;<a href="http://tech.qq.com/a/20090203/000126.htm" target="_blank">http://tech.qq.com/a/20090203/000126.htm</a>&#34; target=&#34;_blank&#34;><a href="http://tech.qq.com/a/20090203/000126.htm" target="_blank">http://tech.qq.com/a/20090203/000126.htm</a></a>
</TEXTAREA><br/><INPUT onclick="runEx('temp19612')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp19612')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>4、QQ临时会话窗口，跟陌生人也可以交谈：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp97586">
<a href=&#34;javascript:location='tencent://Message/?uin='+prompt('QQ:','');void(0);&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;QQ临时会话&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击一下，就可以实现QQ临时会话。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp97586')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp97586')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/>上面这个版本只能用一次，下面修改版<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp37107">
<a href=&#34;javascript:D=document;S=D.body.appendChild(D.cr&#101;ateElement('iframe'));S.id='Q';S.style.display='none';document.frames['Q'].location = 'tencent://Message/?websiteName=qzone.qq.com&amp;Menu=yes&amp;Uin='+prompt('QQ:','');void(0);&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;QQ临时会话&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击一下，就可以实现QQ临时会话。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp37107')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp37107')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>5、得到页面Cookie：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp18544">
<a href=&#34;javascript:alert(document.cookie);void(window.clipboardData.setData('Text',document.cookie));&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;GetCookie&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击一下，就可以复制到当前页面的Cookie。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp18544')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp18544')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>6、得到页面最后生成的源代码：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp790">
<a href=&#34;javascript:void(window.clipboardData.setData('Text',document.getElementsByTagName('html')[0].innerHTML));&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;GetResource&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击一下，就可以复制到当前页面最后生成的源代码。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp790')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp790')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.wjmhxx.com/Shortway/default.asp?id=72</link>
			<title><![CDATA[旋转方块过关密码修改版(原)]]></title>
			<author>shortway@sina.com(Shortway)</author>
			<category><![CDATA[媒体]]></category>
			<pubDate>Sun,01 Feb 2009 01:06:00 +0800</pubDate>
			<guid>http://www.wjmhxx.com/Shortway/default.asp?id=72</guid>	
		<description><![CDATA[看过我的这篇《<a target="_blank" href="http://www.wjmhxx.com/Shortway/article.asp?id=64">修改flash</a>》，你该知道怎么修改Flash吧。<br/><br/>抽空给儿子改了这个Flash游戏《旋转方块》。(又找了个汉化版的，在这个基础上改的)<br/><br/>密码很简单了。第一关：010000；第二关：020000；……第十关：100000；……最后一关三十三关：330000。<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/flash.gif" alt="" style="margin:0px 2px -3px 0px" border="0"/>Flash动画</div><div class="UBBContent"><a id="temp27494_href" href="http://www.wjmhxx.com/Shortway/javascript:MediaShow('swf','temp27494','http://www.wjmhxx.com/Shortway/attachments/month_0902/ha_bloxorz.swf','550','320')"><img name="temp27494_img" src="http://www.wjmhxx.com/Shortway/images/mm_snd.gif" style="margin:0px 3px -2px 0px" border="0" alt=""/><span id="temp27494_text">在线播放</span></a><div id="temp27494"></div></div></div><br/>下载地址：<a href="http://www.wjmhxx.com/Shortway/attachments/month_0902/ha_bloxorz.swf" target="_blank">http://www.wjmhxx.com/Shortway/attachments/month_0902/ha_bloxorz.swf</a>]]></description>
		</item>
		
			<item>
			<link>http://www.wjmhxx.com/Shortway/default.asp?id=71</link>
			<title><![CDATA[提取txt文件第一行作为文件名.VBS(原)]]></title>
			<author>shortway@sina.com(Shortway)</author>
			<category><![CDATA[Bat批处理]]></category>
			<pubDate>Sat,31 Jan 2009 11:31:46 +0800</pubDate>
			<guid>http://www.wjmhxx.com/Shortway/default.asp?id=71</guid>	
		<description><![CDATA[问题：<a href="http://iask.sina.com.cn/b/14430201.html" target="_blank">http://iask.sina.com.cn/b/14430201.html</a><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent"><br/>我有100多本文件名为数字的小说 txt格式，文件正文第一行是 四个空格+[标题 书名] <br/>急求批处理命令，一次修改文件名为正文第一行文字 <br/></div></div><br/>分析：bat实在困难因为还有些字符是不能作为文件名的，比如冒号，斜杠等。可以考虑用vbs。<br/><br/>解决：<a href="http://iask.sina.com.cn/b/14471906.html" target="_blank">http://iask.sina.com.cn/b/14471906.html</a><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&#39;bat对文件的读写、判断等操作极弱，所以推荐VBS。 <br/>&#39;使用也很简单：记事本输入→保存到目标文件夹，命名为“RenameText.vbs”文件→双击运行。 <br/><br/>----代码开始----- <br/>Option Explicit <br/>On Error Resume Next &#39; 容错语句，避免程序崩溃 &#39;有可能重命名文件已经存在，忽略错误。 <br/><br/>Dim fso,fs,f <br/>Dim i <br/>Dim strNewName <br/>Const strCurrentPath = &#34;.&#34; &#39;当前目录 <br/><br/>Msgbox &#34;根据文本文件第一行批量重命名的VBS程序&#34; &amp; vbcrlf &amp; vbcrlf &amp; &#34;Cr&#101;ated By Shortway&#34;,0,&#34;QQ:380710203&#34; <br/><br/>Set fso = Wscript.Cr&#101;ateObject(&#34;Scripting.FileSystemObject&#34;) <br/>Set fs = fso.GetFolder(strCurrentPath).Files <br/>i = 0 <br/>For Each f In fs &#39;遍历当前文件夹内每个文件 <br/>If LCase(right(f.name,3))=&#34;txt&#34; Then &#39;判断是否是文本文件 <br/>strNewName = Trim(fso.OpenTextFile(f, 1, False).ReadLine) &#39;得到第一行 <br/><br/>&#39;以下剔除不能作文件名的特殊字符 <br/>strNewName = Replace(strNewName, &#34;\&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;/&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;:&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;*&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;?&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;&#34;&#34;&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;&gt;&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;&lt;&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;|&#34;, &#34;&#34;) <br/><br/>strNewName = left(strNewName,30) &#39;有时第一行文字太多了，就选30个字符了 <br/><br/>f.name=strNewName &amp; &#34;.txt&#34; <br/>i = i + 1 <br/>End if <br/>Next <br/>Msgbox i &amp; &#34;个文件改名完成！（忽略重名）&#34; <br/>Set fs = Nothing <br/>Set fso = Nothing <br/></div></div><br/><br/>下载：<a target="_blank" href="http://iask.sina.com.cn/browse/download.php?path=/22/69/74/1071226974.14471906.vbs&amp;filename=RenameText.vbs">http://iask.sina.com.cn/browse/download.php?path=/22/69/74/1071226974.14471906.vbs&amp;filename=RenameText.vbs</a>]]></description>
		</item>
		
			<item>
			<link>http://www.wjmhxx.com/Shortway/default.asp?id=70</link>
			<title><![CDATA[QQ自动登录批处理生成器多用户版.vbs(转)]]></title>
			<author>shortway@sina.com(Shortway)</author>
			<category><![CDATA[Bat批处理]]></category>
			<pubDate>Sat,31 Jan 2009 10:30:33 +0800</pubDate>
			<guid>http://www.wjmhxx.com/Shortway/default.asp?id=70</guid>	
		<description><![CDATA[来自：<a href="http://www.yongfa365.com/item/QQAutoLoginCr" target="_blank">http://www.yongfa365.com/item/QQAutoLoginCr</a>&#101;ates.vbs.html&nbsp;&nbsp;<br/>略有改动。<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&#39;/*=========================================================================<br/>&#39; * Intro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QQ自动登录生成器多用户版，支持参数生成<br/>&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 参数使用方法：QQAutoLoginCr&#101;ates.vbs &#34;QQ路径,安装版QQ可以删除当前引号内的内容&#34; &#34;QQ1&#34; &#34;QQ1的密码&#34; &#34;QQ2&#34; &#34;QQ2的密码&#34;<br/>&#39; * FileName&nbsp;&nbsp;&nbsp;&nbsp;QQAutoLoginCr&#101;ates.vbs<br/>&#39; * Author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yongfa365<br/>&#39; * Version&nbsp;&nbsp;&nbsp;&nbsp; v1.0<br/>&#39; * WEB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.yongfa365.com" target="_blank">http://www.yongfa365.com</a><br/>&#39; * Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yongfa365[at]qq.com<br/>&#39; * FirstWrite&nbsp;&nbsp;<a href="http://www.yongfa365.com/Item/QQAutoLoginCr" target="_blank">http://www.yongfa365.com/Item/QQAutoLoginCr</a>&#101;ates.vbs.html<br/>&#39; * MadeTime&nbsp;&nbsp;&nbsp;&nbsp;2007-12-23 20:29:06<br/>&#39; * LastModify&nbsp;&nbsp;2007-12-23 20:29:06<br/>&#39; *==========================================================================*/<br/><br/>Private Const BITS_TO_A_BYTE = 8<br/>Private Const BYTES_TO_A_WORD = 4<br/>Private Const BITS_TO_A_WORD = 32<br/><br/>Private m_lOnBits(30)<br/>Private m_l2Power(30)<br/><br/>Private Function LShift(lValue, iShiftBits)<br/>&nbsp;&nbsp;&nbsp;&nbsp;If iShiftBits = 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LShift = lValue<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br/>&nbsp;&nbsp;&nbsp;&nbsp;ElseIf iShiftBits = 31 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If lValue And 1 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LShift = &amp;H80000000<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LShift = 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br/>&nbsp;&nbsp;&nbsp;&nbsp;ElseIf iShiftBits &lt; 0 o&#114; iShiftBits &gt; 31 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Err.Raise 6<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;If (lValue And m_l2Power(31 - iShiftBits)) Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LShift = ((lValue And m_lOnBits(31 - (iShiftBits + 1))) * m_l2Power(iShiftBits)) o&#114; &amp;H80000000<br/>&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LShift = ((lValue And m_lOnBits(31 - iShiftBits)) * m_l2Power(iShiftBits))<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>End Function<br/><br/>Private Function RShift(lValue, iShiftBits)<br/>&nbsp;&nbsp;&nbsp;&nbsp;If iShiftBits = 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RShift = lValue<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br/>&nbsp;&nbsp;&nbsp;&nbsp;ElseIf iShiftBits = 31 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If lValue And &amp;H80000000 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RShift = 1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RShift = 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br/>&nbsp;&nbsp;&nbsp;&nbsp;ElseIf iShiftBits &lt; 0 o&#114; iShiftBits &gt; 31 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Err.Raise 6<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;RShift = (lValue And &amp;H7FFFFFFE) \ m_l2Power(iShiftBits)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;If (lValue And &amp;H80000000) Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RShift = (RShift o&#114; (&amp;H40000000 \ m_l2Power(iShiftBits - 1)))<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>End Function<br/><br/>Private Function RotateLeft(lValue, iShiftBits)<br/>&nbsp;&nbsp;&nbsp;&nbsp;RotateLeft = LShift(lValue, iShiftBits) o&#114; RShift(lValue, (32 - iShiftBits))<br/>End Function<br/><br/>Private Function AddUnsigned(lX, lY)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lX4<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lY4<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lX8<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lY8<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lResult<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lX8 = lX And &amp;H80000000<br/>&nbsp;&nbsp;&nbsp;&nbsp;lY8 = lY And &amp;H80000000<br/>&nbsp;&nbsp;&nbsp;&nbsp;lX4 = lX And &amp;H40000000<br/>&nbsp;&nbsp;&nbsp;&nbsp;lY4 = lY And &amp;H40000000<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lResult = (lX And &amp;H3FFFFFFF) + (lY And &amp;H3FFFFFFF)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;If lX4 And lY4 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lResult = lResult Xor &amp;H80000000 Xor lX8 Xor lY8<br/>&nbsp;&nbsp;&nbsp;&nbsp;ElseIf lX4 o&#114; lY4 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If lResult And &amp;H40000000 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lResult = lResult Xor &amp;HC0000000 Xor lX8 Xor lY8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lResult = lResult Xor &amp;H40000000 Xor lX8 Xor lY8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lResult = lResult Xor lX8 Xor lY8<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;AddUnsigned = lResult<br/>End Function<br/><br/>Private Function md5_F(x, y, z)<br/>&nbsp;&nbsp;&nbsp;&nbsp;md5_F = (x And y) o&#114; ((Not x) And z)<br/>End Function<br/><br/>Private Function md5_G(x, y, z)<br/>&nbsp;&nbsp;&nbsp;&nbsp;md5_G = (x And z) o&#114; (y And (Not z))<br/>End Function<br/><br/>Private Function md5_H(x, y, z)<br/>&nbsp;&nbsp;&nbsp;&nbsp;md5_H = (x Xor y Xor z)<br/>End Function<br/><br/>Private Function md5_I(x, y, z)<br/>&nbsp;&nbsp;&nbsp;&nbsp;md5_I = (y Xor (x o&#114; (Not z)))<br/>End Function<br/><br/>Private Sub md5_FF(a, b, c, d, x, s, ac)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_F(b, c, d), x), ac))<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = RotateLeft(a, s)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, b)<br/>End Sub<br/><br/>Private Sub md5_GG(a, b, c, d, x, s, ac)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_G(b, c, d), x), ac))<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = RotateLeft(a, s)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, b)<br/>End Sub<br/><br/>Private Sub md5_HH(a, b, c, d, x, s, ac)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_H(b, c, d), x), ac))<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = RotateLeft(a, s)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, b)<br/>End Sub<br/><br/>Private Sub md5_II(a, b, c, d, x, s, ac)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_I(b, c, d), x), ac))<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = RotateLeft(a, s)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, b)<br/>End Sub<br/><br/>Private Function ConvertToWordArray(sMessage)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lMessageLength<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lNumberOfWords<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lWordArray()<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lBytePosition<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lByteCount<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lWordCount<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;Const MODULUS_BITS = 512<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const CONGRUENT_BITS = 448<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lMessageLength = Len(sMessage)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lNumberOfWords = (((lMessageLength + ((MODULUS_BITS - CONGRUENT_BITS) \ BITS_TO_A_BYTE)) \ (MODULUS_BITS \ BITS_TO_A_BYTE)) + 1) * (MODULUS_BITS \ BITS_TO_A_WORD)<br/>&nbsp;&nbsp;&nbsp;&nbsp;ReDim lWordArray(lNumberOfWords - 1)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lBytePosition = 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;lByteCount = 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;Do Until lByteCount &gt;= lMessageLength<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lWordCount = lByteCount \ BYTES_TO_A_WORD<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lBytePosition = (lByteCount Mod BYTES_TO_A_WORD) * BITS_TO_A_BYTE<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lWordArray(lWordCount) = lWordArray(lWordCount) o&#114; LShift(Asc(Mid(sMessage, lByteCount + 1, 1)), lBytePosition)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lByteCount = lByteCount + 1<br/>&nbsp;&nbsp;&nbsp;&nbsp;Loop<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lWordCount = lByteCount \ BYTES_TO_A_WORD<br/>&nbsp;&nbsp;&nbsp;&nbsp;lBytePosition = (lByteCount Mod BYTES_TO_A_WORD) * BITS_TO_A_BYTE<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lWordArray(lWordCount) = lWordArray(lWordCount) o&#114; LShift(&amp;H80, lBytePosition)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lWordArray(lNumberOfWords - 2) = LShift(lMessageLength, 3)<br/>&nbsp;&nbsp;&nbsp;&nbsp;lWordArray(lNumberOfWords - 1) = RShift(lMessageLength, 29)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;ConvertToWordArray = lWordArray<br/>End Function<br/><br/>Private Function WordToHex(lValue)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lByte<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lCount<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;For lCount = 0 To 3<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lByte = RShift(lValue, lCount * BITS_TO_A_BYTE) And m_lOnBits(BITS_TO_A_BYTE - 1)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WordToHex = WordToHex &amp; Right(&#34;0&#34; &amp; Hex(lByte), 2)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Next<br/>End Function<br/><br/>Public Function MD5(sMessage)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(0) = CLng(1)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(1) = CLng(3)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(2) = CLng(7)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(3) = CLng(15)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(4) = CLng(31)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(5) = CLng(63)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(6) = CLng(127)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(7) = CLng(255)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(8) = CLng(511)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(9) = CLng(1023)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(10) = CLng(2047)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(11) = CLng(4095)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(12) = CLng(8191)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(13) = CLng(16383)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(14) = CLng(32767)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(15) = CLng(65535)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(16) = CLng(131071)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(17) = CLng(262143)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(18) = CLng(524287)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(19) = CLng(1048575)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(20) = CLng(2097151)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(21) = CLng(4194303)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(22) = CLng(8388607)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(23) = CLng(16777215)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(24) = CLng(33554431)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(25) = CLng(67108863)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(26) = CLng(134217727)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(27) = CLng(268435455)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(28) = CLng(536870911)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(29) = CLng(1073741823)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(30) = CLng(2147483647)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(0) = CLng(1)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(1) = CLng(2)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(2) = CLng(4)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(3) = CLng(8)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(4) = CLng(16)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(5) = CLng(32)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(6) = CLng(64)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(7) = CLng(128)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(8) = CLng(256)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(9) = CLng(512)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(10) = CLng(1024)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(11) = CLng(2048)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(12) = CLng(4096)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(13) = CLng(8192)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(14) = CLng(16384)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(15) = CLng(32768)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(16) = CLng(65536)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(17) = CLng(131072)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(18) = CLng(262144)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(19) = CLng(524288)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(20) = CLng(1048576)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(21) = CLng(2097152)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(22) = CLng(4194304)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(23) = CLng(8388608)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(24) = CLng(16777216)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(25) = CLng(33554432)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(26) = CLng(67108864)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(27) = CLng(134217728)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(28) = CLng(268435456)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(29) = CLng(536870912)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(30) = CLng(1073741824)<br/><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim x<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim k<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim AA<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim BB<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim CC<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim DD<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim a<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim b<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim c<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim d<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S11 = 7<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S12 = 12<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S13 = 17<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S14 = 22<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S21 = 5<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S22 = 9<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S23 = 14<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S24 = 20<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S31 = 4<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S32 = 11<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S33 = 16<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S34 = 23<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S41 = 6<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S42 = 10<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S43 = 15<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S44 = 21<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;x = ConvertToWordArray(sMessage)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;a = &amp;H67452301<br/>&nbsp;&nbsp;&nbsp;&nbsp;b = &amp;HEFCDAB89<br/>&nbsp;&nbsp;&nbsp;&nbsp;c = &amp;H98BADCFE<br/>&nbsp;&nbsp;&nbsp;&nbsp;d = &amp;H10325476<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;For k = 0 To UBound(x) Step 16<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AA = a<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BB = b<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CC = c<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DD = d<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF a, b, c, d, x(k + 0), S11, &amp;HD76AA478<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF d, a, b, c, x(k + 1), S12, &amp;HE8C7B756<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF c, d, a, b, x(k + 2), S13, &amp;H242070DB<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF b, c, d, a, x(k + 3), S14, &amp;HC1BDCEEE<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF a, b, c, d, x(k + 4), S11, &amp;HF57C0FAF<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF d, a, b, c, x(k + 5), S12, &amp;H4787C62A<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF c, d, a, b, x(k + 6), S13, &amp;HA8304613<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF b, c, d, a, x(k + 7), S14, &amp;HFD469501<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF a, b, c, d, x(k + 8), S11, &amp;H698098D8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF d, a, b, c, x(k + 9), S12, &amp;H8B44F7AF<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF c, d, a, b, x(k + 10), S13, &amp;HFFFF5BB1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF b, c, d, a, x(k + 11), S14, &amp;H895CD7BE<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF a, b, c, d, x(k + 12), S11, &amp;H6B901122<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF d, a, b, c, x(k + 13), S12, &amp;HFD987193<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF c, d, a, b, x(k + 14), S13, &amp;HA679438E<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF b, c, d, a, x(k + 15), S14, &amp;H49B40821<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG a, b, c, d, x(k + 1), S21, &amp;HF61E2562<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG d, a, b, c, x(k + 6), S22, &amp;HC040B340<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG c, d, a, b, x(k + 11), S23, &amp;H265E5A51<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG b, c, d, a, x(k + 0), S24, &amp;HE9B6C7AA<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG a, b, c, d, x(k + 5), S21, &amp;HD62F105D<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG d, a, b, c, x(k + 10), S22, &amp;H2441453<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG c, d, a, b, x(k + 15), S23, &amp;HD8A1E681<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG b, c, d, a, x(k + 4), S24, &amp;HE7D3FBC8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG a, b, c, d, x(k + 9), S21, &amp;H21E1CDE6<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG d, a, b, c, x(k + 14), S22, &amp;HC33707D6<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG c, d, a, b, x(k + 3), S23, &amp;HF4D50D87<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG b, c, d, a, x(k + 8), S24, &amp;H455A14ED<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG a, b, c, d, x(k + 13), S21, &amp;HA9E3E905<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG d, a, b, c, x(k + 2), S22, &amp;HFCEFA3F8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG c, d, a, b, x(k + 7), S23, &amp;H676F02D9<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG b, c, d, a, x(k + 12), S24, &amp;H8D2A4C8A<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH a, b, c, d, x(k + 5), S31, &amp;HFFFA3942<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH d, a, b, c, x(k + 8), S32, &amp;H8771F681<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH c, d, a, b, x(k + 11), S33, &amp;H6D9D6122<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH b, c, d, a, x(k + 14), S34, &amp;HFDE5380C<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH a, b, c, d, x(k + 1), S31, &amp;HA4BEEA44<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH d, a, b, c, x(k + 4), S32, &amp;H4BDECFA9<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH c, d, a, b, x(k + 7), S33, &amp;HF6BB4B60<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH b, c, d, a, x(k + 10), S34, &amp;HBEBFBC70<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH a, b, c, d, x(k + 13), S31, &amp;H289B7EC6<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH d, a, b, c, x(k + 0), S32, &amp;HEAA127FA<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH c, d, a, b, x(k + 3), S33, &amp;HD4EF3085<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH b, c, d, a, x(k + 6), S34, &amp;H4881D05<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH a, b, c, d, x(k + 9), S31, &amp;HD9D4D039<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH d, a, b, c, x(k + 12), S32, &amp;HE6DB99E5<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH c, d, a, b, x(k + 15), S33, &amp;H1FA27CF8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH b, c, d, a, x(k + 2), S34, &amp;HC4AC5665<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II a, b, c, d, x(k + 0), S41, &amp;HF4292244<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II d, a, b, c, x(k + 7), S42, &amp;H432AFF97<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II c, d, a, b, x(k + 14), S43, &amp;HAB9423A7<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II b, c, d, a, x(k + 5), S44, &amp;HFC93A039<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II a, b, c, d, x(k + 12), S41, &amp;H655B59C3<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II d, a, b, c, x(k + 3), S42, &amp;H8F0CCC92<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II c, d, a, b, x(k + 10), S43, &amp;HFFEFF47D<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II b, c, d, a, x(k + 1), S44, &amp;H85845DD1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II a, b, c, d, x(k + 8), S41, &amp;H6FA87E4F<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II d, a, b, c, x(k + 15), S42, &amp;HFE2CE6E0<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II c, d, a, b, x(k + 6), S43, &amp;HA3014314<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II b, c, d, a, x(k + 13), S44, &amp;H4E0811A1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II a, b, c, d, x(k + 4), S41, &amp;HF7537E82<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II d, a, b, c, x(k + 11), S42, &amp;HBD3AF235<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II c, d, a, b, x(k + 2), S43, &amp;H2AD7D2BB<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II b, c, d, a, x(k + 9), S44, &amp;HEB86D391<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, AA)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b = AddUnsigned(b, BB)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c = AddUnsigned(c, CC)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;d = AddUnsigned(d, DD)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Next<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;MD5 = LCase(WordToHex(a) &amp; WordToHex(b) &amp; WordToHex(c) &amp; WordToHex(d))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#39;MD5=LCase(WordToHex(b) &amp; WordToHex(c))&nbsp;&nbsp;&#39;这儿是取16位的密码,如果是32位的话,把a和d加上就行了.<br/>End Function<br/><br/>&#39;base64 编码前要将十六进制字符转换为Byte<br/><br/>Function PSSHASH(QQPass)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set xml_dom = Cr&#101;ateObject(&#34;MSXML2.DOMDocument&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;xml_dom.loadXML &#34;&lt;?xml Version=&#34;&#34;1.0&#34;&#34;?&gt;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set phex = xml_dom.cr&#101;ateElement(&#34;Hex&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;phex.dataType = &#34;bin.Hex&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;phex.Text = md5(QQPass)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set pbase = xml_dom.cr&#101;ateElement(&#34;base&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;pbase.dataType = &#34;bin.base64&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;pbase.nodeTypedvalue = phex.nodeTypedvalue<br/>&nbsp;&nbsp;&nbsp;&nbsp;PSSHASH = pbase.text<br/>End Function<br/><br/>&#39;创建文件<br/><br/>Function Cr&#101;ateFile(FileName, Content)<br/>&nbsp;&nbsp;&nbsp;&nbsp;On Error Resume Next<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set FSO = Cr&#101;ateObject(&#34;Scripting.FileSystemObject&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set fd = FSO.Cr&#101;ateTextFile(FileName, True)<br/>&nbsp;&nbsp;&nbsp;&nbsp;fd.WriteLine Content<br/>&nbsp;&nbsp;&nbsp;&nbsp;If Err&gt;0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Err.Clear<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cr&#101;ateFile = False<br/>&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cr&#101;ateFile = True<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>End Function<br/><br/>&#39;正则表达式替换<br/><br/>Function reReplace(Str, restrS, restrD)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set re = New RegExp<br/>&nbsp;&nbsp;&nbsp;&nbsp;re.IgnoreCase = True<br/>&nbsp;&nbsp;&nbsp;&nbsp;re.Global = True<br/>&nbsp;&nbsp;&nbsp;&nbsp;re.Pattern = restrS<br/>&nbsp;&nbsp;&nbsp;&nbsp;reReplace = re.Replace(Str, restrD)<br/>End Function<br/><br/>&#39;生成QQ自动登陆器<br/>&#39;执行过程是，先看看是不是通过参数传来的，如果没有参数的话就提示输入各种QQ信息，最后生成一个自动登录批处理文件<br/>Dim QQUserPass<br/>Dim QQUser<br/>Dim QQPass<br/>Dim QQPath<br/>Dim QQAuto<br/>Set objArgs = WScript.Arguments<br/>If objArgs.Count&lt;3 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQPath = InputBox(&#34;安装版QQ不用输入，直接点确定&#34; &amp; vbCrLf &amp;&#34;绿色版QQ(未改注册表)请输入QQ程序路径：&#34;, &#34;1/2 QQ自动登陆生成器&#34;, &#34;&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQUserPass = InputBox(&#34;请输入QQ号及密码，格式为：&#34;&amp;vbCrLf&amp;&#34;QQ1 QQ1的密码 QQ2 QQ2的密码&#34;, &#34;2/2 QQ自动登陆生成器&#34;, &#34;&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;If QQUserPass = &#34;&#34; Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WScript.Echo &#34;QQ号及密码为空，点确定退出程序&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WScript.Quit<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQPath = objArgs(0)<br/>&nbsp;&nbsp;&nbsp;&nbsp;For i = 1 To objArgs.Count -1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;QQUserPass = QQUserPass &amp; &#34; &#34; &amp; objArgs(i)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Next<br/>End If<br/><br/><br/>If QQPath = &#34;&#34; Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim OperationRegistry<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set OperationRegistry = WScript.Cr&#101;ateObject(&#34;WScript.Shell&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQPath = OperationRegistry.RegRead(&#34;HKEY_LOCAL_MACHINE\SOFTWARE\TENCENT\PLATFORM_TYPE_LIST\1\TypePath&#34;)<br/>End If<br/>PathTemp = Split(QQPath, &#34;\&#34;)<br/>&#39;格式化输入，比如前后空格，多个空格<br/>QQUserPass = reReplace(Trim(QQUserPass), &#34; +&#34;, &#34; &#34;)<br/>QQUserPass = Split(QQUserPass, &#34; &#34;)<br/><br/><br/>&#39;生成自动登录文件<br/>QQAuto = &#34;@ECHO OFF&#34; &amp; vbCrLf<br/>QQAuto = QQAuto &amp; PathTemp(0) &amp; vbCrLf<br/>QQAuto = QQAuto &amp; &#34;CD &#34;&#34;&#34; &amp; Left(QQPath, Len(QQPath) - Len(PathTemp(UBound(PathTemp)))) &amp; &#34;&#34;&#34;&#34; &amp; vbCrLf<br/>QQUsers = &#34;&#34;<br/>For i = 0 To UBound(QQUserPass) step 2<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQUser = QQUserPass(i)<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQPass = QQUserPass(i + 1)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;QQUsers = QQUsers &amp; &#34;-&#34; &amp; QQUser<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQPass = PSSHASH(QQPass)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;QQAuto = QQAuto &amp; &#34;START &#34; &amp; PathTemp(UBound(PathTemp)) &amp; &#34; /START QQUIN:&#34; &amp; QQUser &amp; &#34; PWDHASH:&#34; &amp; QQPass &amp; &#34; /STAT:40&#34; &amp; vbCrLf &#39;/STAT:40可以换成41，40是隐身，41是正常<br/>Next<br/><br/>QQAuto = QQAuto &amp; &#34;REM 说明：/STAT:40可以换成41，40是隐身，41是正常&#34; &amp; vbCrLf<br/><br/>&#39;QQAuto = QQAuto &amp; &#34;QUIT&#34;<br/>&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;上面的QUIT无效命令，屏蔽之——Modified by Shortway<br/>QQUsers = Right(QQUsers, Len(QQUsers) -1)<br/>Cr&#101;ateFile QQUsers &amp; &#34;自动登录.bat&#34;, QQAuto<br/>WScript.Echo &#34;生成完毕!您可以用&#34;&#34;&#34; &amp; QQUsers &amp; &#34;自动登录.bat&#34; &amp; &#34;&#34;&#34;登陆&#34;<br/></div></div><br/><br/>将以上代码保存成.VBS文件，运行后按照提示输入。可以实现多个QQ成批自动登录。]]></description>
		</item>
		
			<item>
			<link>http://www.wjmhxx.com/Shortway/default.asp?id=69</link>
			<title><![CDATA[FLV视频播放器(整理)]]></title>
			<author>shortway@sina.com(Shortway)</author>
			<category><![CDATA[媒体]]></category>
			<pubDate>Sat,20 Sep 2008 14:05:13 +0800</pubDate>
			<guid>http://www.wjmhxx.com/Shortway/default.asp?id=69</guid>	
		<description><![CDATA[参考网上的资料，做了一个在线视频播放器。静态htm，通过获取URL参数，DOM生成播放。<br/><br/>非原创，仅整理！<br/><br/>测试：<br/><br/><strong>ipod + band = iband</strong><br/><a target="_blank" href="http://www.wjmhxx.com/Shortway/Tools/FlvPlayer/flvplayer.htm?&lt;a href="http://vs1.zol.com.cn/flv/20/3ddc6da0.flv" target="_blank"&gt;http://vs1.zol.com.cn/flv/20/3ddc6da0.flv&lt;/a&gt;||技巧高超iPhone电子乐队iBand演奏视频">技巧高超——iPhone电子乐队iBand演奏视频</a><br/><br/>flv地址的获取，请参考：<a target="_blank" href="http://www.wjmhxx.com/Shortway/article.asp?id=60">flv 下载与转换</a>一文。]]></description>
		</item>
		
			<item>
			<link>http://www.wjmhxx.com/Shortway/default.asp?id=68</link>
			<title><![CDATA[洛奇在线编曲系统开发手记(原)]]></title>
			<author>shortway@sina.com(Shortway)</author>
			<category><![CDATA[媒体]]></category>
			<pubDate>Wed,20 Aug 2008 22:26:27 +0800</pubDate>
			<guid>http://www.wjmhxx.com/Shortway/default.asp?id=68</guid>	
		<description><![CDATA[MABINOGI WEB COMPOSER(洛奇中文在线编曲系统)开发手记<br/>By Shortway<br/><br/>地址：<a href="http://www.wjmhxx.com/shortway/Tools/composer/composer.htm" target="_blank">http://www.wjmhxx.com/shortway/Tools/composer/composer.htm</a><br/><br/>1、最早（2008-03-21）是在“YY大杂烩”（<a href="http://www.yydzh.com/thread.php?fid=10" target="_blank">http://www.yydzh.com/thread.php?fid=10</a>）看到，引起兴趣。开始着手研究。先用Telport下载它的页面（<a href="http://www.yydzh.com/images/yy/composer.htm" target="_blank">http://www.yydzh.com/images/yy/composer.htm</a>）。<br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/bg.jpg" target="_blank">http://www.yydzh.com/images/yy/comimage/bg.jpg</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/bullet02.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/bullet02.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/clear.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/clear.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/img_4_compose_sample.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/img_4_compose_sample.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/img_4_key1.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/img_4_key1.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/img_4_key2.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/img_4_key2.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/kyuhu_1.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/kyuhu_1.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/kyuhu_16.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/kyuhu_16.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/kyuhu_2.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/kyuhu_2.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/kyuhu_32.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/kyuhu_32.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/kyuhu_4.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/kyuhu_4.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/kyuhu_8.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/kyuhu_8.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/mouse.cur" target="_blank">http://www.yydzh.com/images/yy/comimage/mouse.cur</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/onnpu_1.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/onnpu_1.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/onnpu_12.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/onnpu_12.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/onnpu_16.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/onnpu_16.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/onnpu_2.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/onnpu_2.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/onnpu_32.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/onnpu_32.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/onnpu_4.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/onnpu_4.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/onnpu_8.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/onnpu_8.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/play.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/play.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/stop.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/stop.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/tie.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/tie.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/top.jpg" target="_blank">http://www.yydzh.com/images/yy/comimage/top.jpg</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/comimage/x.gif" target="_blank">http://www.yydzh.com/images/yy/comimage/x.gif</a><br/>&#160;&#160;&#160;&#160; <a href="http://www.yydzh.com/images/yy/composer.htm" target="_blank">http://www.yydzh.com/images/yy/composer.htm</a><br/><br/>2、搜索“mabinogi web composer”，知道原来是网络游戏“mabinogi”里的一个技能。<br/>&#160;&#160;&#160;&#160;[音乐技能]介绍：<a href="http://www.pcgames.com.cn/netgames/zhuanti/mabinogi/skill/skill_5/skill_1.htm" target="_blank">http://www.pcgames.com.cn/netgames/zhuanti/mabinogi/skill/skill_5/skill_1.htm</a><br/>&#160;&#160;&#160;&#160;洛奇:超详细的MABI乐谱相关知识：<a href="http://www.pcgames.com.cn/netgames/zhuanti/mabinogi/gl/0601/751419.html" target="_blank">http://www.pcgames.com.cn/netgames/zhuanti/mabinogi/gl/0601/751419.html</a><br/>&#160;&#160;&#160;&#160;超详细的MABI乐谱相关知识：<a href="http://www.pcgames.com.cn/netgames/zhuanti/mabinogi/gl/0506/651857.html" target="_blank">http://www.pcgames.com.cn/netgames/zhuanti/mabinogi/gl/0506/651857.html</a><br/><br/>3、再搜索就得到更多了。以下网站也有相同工具：<br/>&#160;&#160;&#160;&#160;洛奇远古争霸官方网站：<a href="http://event.luoqi.com.cn/emonline/website/mfengyun_list.php" target="_blank">http://event.luoqi.com.cn/emonline/website/mfengyun_list.php</a><br/>&#160;&#160;&#160;&#160;洛奇在线编曲_新浪游戏：<a href="http://games.sina.com.cn/o/lq/composer.shtml" target="_blank">http://games.sina.com.cn/o/lq/composer.shtml</a><br/>&#160;&#160;&#160;&#160;太平洋游戏网洛奇在线编曲：<a href="http://www.pcgames.com.cn/netgames/zhuanti/mabinogi/tools/composer.htm" target="_blank">http://www.pcgames.com.cn/netgames/zhuanti/mabinogi/tools/composer.htm</a><br/>&#160;&#160;&#160;&#160;<a href="http://mabinogi.nexon.net/Community/Composer.aspx" target="_blank">http://mabinogi.nexon.net/Community/Composer.aspx</a><br/>&#160;&#160;&#160;&#160;<a href="http://www.mabinogi.jp/5th/4_composer.asp" target="_blank">http://www.mabinogi.jp/5th/4_composer.asp</a><br/>&#160;&#160;&#160;&#160;<a href="http://mabinogi.mmosite.com/tool/composer.shtml" target="_blank">http://mabinogi.mmosite.com/tool/composer.shtml</a><br/><br/>4、搜集差不多了，开始用DIV+CSS+DOM重组。页面与代码分离，完成基本功能。<br/><br/>5、尝试各种音色与乐器。根据以下资料翻译整理音色表。<br/>&#160;&#160;&#160;&#160;GM(Generel MIDI)音色排序表：<a href="http://mid.ququ3.cn/gmmidi.htm" target="_blank">http://mid.ququ3.cn/gmmidi.htm</a><br/>&#160;&#160;&#160;&#160;GM音色表：<a href="http://dior.bokee.com/3172152.html" target="_blank">http://dior.bokee.com/3172152.html</a><br/>&#160;&#160;&#160;&#160;GM音色表和General MIDI打击乐器音色排列表：<a href="http://www.kc58.cn/post/29.html" target="_blank">http://www.kc58.cn/post/29.html</a><br/>&#160;&#160;&#160;&#160;翻译时还参考了：<br/>&#160;&#160;&#160;&#160;《音乐术语英语手册》（刘沛教授编撰）：<a href="http://blog.zjol.com.cn/html/56/188656-66397.html" target="_blank">http://blog.zjol.com.cn/html/56/188656-66397.html</a><br/>&#160;&#160;&#160;&#160;音乐术语对照：<a href="http://post.baidu.com/f?kz=49703162" target="_blank">http://post.baidu.com/f?kz=49703162</a><br/>&#160;&#160;&#160;&#160;音乐常用术语英语翻译：<a href="http://www.jysls.com/thread-148654-1-1.html" target="_blank">http://www.jysls.com/thread-148654-1-1.html</a><br/>&#160;&#160;&#160;&#160;常用音乐术语词汇：<a href="http://www.haofane.com/html/article_1172.htm" target="_blank">http://www.haofane.com/html/article_1172.htm</a><br/>&#160;&#160;&#160;&#160;后来又发现新浪网上的也不错，居然已经翻译得差不多了（要看源代码）。<br/>&#160;&#160;&#160;&#160;<a href="http://hd.games.sina.com.cn/g_item/2005/6-23/1554/list.php" target="_blank">http://hd.games.sina.com.cn/g_item/2005/6-23/1554/list.php</a><br/><br/>6、发现音色10有错误。0A返回0D 0A。用138代替。<br/>&#160;&#160;&#160;&#160;我以为音色0~127是循环的，比如128相对于0，129对应1。后来再试发现并不是。存疑，没再深入。<br/>&#160;&#160;&#160;&#160;顺便搜索了一下MIDI文件的格式：<br/>&#160;&#160;&#160;&#160;MIDI系统码介绍.pdf：<a href="http://www.audiobar.net/attachment.php?aid=70791" target="_blank">http://www.audiobar.net/attachment.php?aid=70791</a><br/>&#160;&#160;&#160;&#160;标准MIDI文件格式：<a href="http://dev.csdn.net/develop/article/11/11737.shtm" target="_blank">http://dev.csdn.net/develop/article/11/11737.shtm</a><br/>&#160;&#160;&#160;&#160;MIDI文件结构分析及生成方法：<a href="http://bbs.qinguo.com/thread-405-1-1.html" target="_blank">http://bbs.qinguo.com/thread-405-1-1.html</a><br/>&#160;&#160;&#160;&#160;NUENDO_CUBASE系列图文教程下载：<a target="_blank" href="http://bbs.yltime.com/search.php?searchid=2&amp;orderby=lastpost&amp;ascdesc=desc&amp;searchsubmit=yes">http://bbs.yltime.com/search.php?searchid=2&amp;orderby=lastpost&amp;ascdesc=desc&amp;searchsubmit=yes</a><br/><br/>7、边改写边收集乐谱。添加例子播放功能。<br/>&#160;&#160;&#160;&#160;千羽熏的乐谱屋&#160;&#160;&#160;&#160;<a target="_blank" href="http://www.yydzh.com/thread.php?fid=10&amp;page=2">http://www.yydzh.com/thread.php?fid=10&amp;page=2</a><br/>&#160;&#160;&#160;&#160;洛奇远古争霸官方网站&#160;&#160;&#160;&#160;<a href="http://event.luoqi.com.cn/emonline/website/mfengyun_list.php" target="_blank">http://event.luoqi.com.cn/emonline/website/mfengyun_list.php</a><br/>&#160;&#160;&#160;&#160;洛奇乐谱小屋_新浪游戏&#160;&#160;&#160;&#160;<a href="http://hd.games.sina.com.cn/g_item/2005/6-23/1554/list.php" target="_blank">http://hd.games.sina.com.cn/g_item/2005/6-23/1554/list.php</a><br/>&#160;&#160;&#160;&#160;風千歲&#160;&#160;&#160;&#160;<a target="_blank" href="http://janellesue.com/janelle/ttblog/index.php?ct1=3&amp;ct2=0">http://janellesue.com/janelle/ttblog/index.php?ct1=3&amp;ct2=0</a><br/>&#160;&#160;&#160;&#160;mabinogi.nexon.net×&#160;&#160;&#160;&#160;<a href="http://mabinogi.nexon.net/Community/Composer.aspx" target="_blank">http://mabinogi.nexon.net/Community/Composer.aspx</a><br/>&#160;&#160;&#160;&#160;麻痹怒气私家花园&#160;&#160;&#160;&#160;<a target="_blank" href="http://iluoqi.com/dv_rss.asp?s=xhtml&amp;boardid=19&amp;page=1">http://iluoqi.com/dv_rss.asp?s=xhtml&amp;boardid=19&amp;page=1</a><br/>&#160;&#160;&#160;&#160;Coodoc博客&#160;&#160;&#160;&#160;<a target="_blank" href="http://hi.baidu.com/coodoc/blog/category/%C2%E5%C6%E6%C0%D6%C6%D7">http://hi.baidu.com/coodoc/blog/category/%C2%E5%C6%E6%C0%D6%C6%D7</a><br/>&#160;&#160;&#160;&#160;洛奇吧&#160;&#160;&#160;&#160;<a target="_blank" href="http://tieba.baidu.com/f?z=23358307&amp;ct=335544320&amp;lm=0&amp;sc=0&amp;rn=50&amp;tn=baiduPostBrowser&amp;word=%C2%E5%C6%E6&amp;pn=0">http://tieba.baidu.com/f?z=23358307&amp;ct=335544320&amp;lm=0&amp;sc=0&amp;rn=50&amp;tn=baiduPostBrowser&amp;word=%C2%E5%C6%E6&amp;pn=0</a><br/>&#160;&#160;&#160;&#160;百度搜索&#160;&#160;&#160;&#160;<a target="_blank" href="http://www.baidu.com/s?wd=%C2%E5%C6%E6+%C0%D6%C6%D7">http://www.baidu.com/s?wd=%C2%E5%C6%E6+%C0%D6%C6%D7</a><br/>&#160;&#160;&#160;&#160;百度知道&#160;&#160;&#160;&#160;<a target="_blank" href="http://www.baidu.com/s?lm=0&amp;si=&amp;rn=10&amp;ie=gb2312&amp;ct=0&amp;wd=%C2%E5%C6%E6+%C0%D6%C6%D7%20site%3Azhidao%2Ebaidu%2Ecom+&amp;cl=2">http://www.baidu.com/s?lm=0&amp;si=&amp;rn=10&amp;ie=gb2312&amp;ct=0&amp;wd=%C2%E5%C6%E6+%C0%D6%C6%D7%20site%3Azhidao%2Ebaidu%2Ecom+&amp;cl=2</a><br/><br/>8、自己也做了一个《世上只有妈妈好》，自娱自乐。与儿子一块做了个《茉莉花》。<br/>从搜索乐谱、找伴奏，到输入，准备做一个讲座了。<br/><br/>9、添加曲谱整理功能。做了个采集<a href="http://www.wjmhxx.com/Shortway/article.asp?id=8" target="_blank">书签</a>，方便多个文本框的复制。采集后放到整理框中一整理就可以试听。<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp34627">
<a href=&#34;javascript:function $(O){return document.getElementById(O)}function V(O){return $(O).value+','}try{if($('ch1')!=null){S=V('ch1')+V('ch2')+V('ch3')}else{S=V('code1')+V('code2')+V('code3')}S=S.replace(/,+/g,',').replace(/^,|,$/g,'');if(S.length>0){void window.clipboardData.setData('Text',S);alert('Copyed!')}else{alert('No!')}}catch(e){alert('None!')}void(0);&#34; title=&#34;音乐<a href="http://www.wjmhxx.com/Shortway/article.asp?id=8" target="_blank">书签</a>&#34;>便捷音乐<a href="http://www.wjmhxx.com/Shortway/article.asp?id=8" target="_blank">书签</a>。可以方便地从YY或新浪上得到乐谱。请右击本链接→“添加到收藏夹”→“链接”里。使用时只要轻松一点！祝使用愉快！Cr&#101;ated by Shortway</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp34627')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp34627')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>用try{}catch(e){}是因为新浪与“千羽熏的乐谱屋”上文本框的命名不同。我修改过的这个就更不同了:)<br/><br/>10、下载了一些软件，初步试用，了解不深。<br/>软件编写《洛奇》乐谱攻略：<a href="http://www.pcgames.com.cn/netgames/zhuanti/mabinogi/gl/0506/651978.html" target="_blank">http://www.pcgames.com.cn/netgames/zhuanti/mabinogi/gl/0506/651978.html</a><br/>洛奇MML修正工具 v0.15：<a href="http://www.luoqi.cn/Soft/UploadSoft/200506/20050613195617654.rar" target="_blank">http://www.luoqi.cn/Soft/UploadSoft/200506/20050613195617654.rar</a><br/>洛奇 音乐制作软件 PSMPLAY中文版：<a target="_blank" href="http://61.152.221.82/game_tools/PSMPLAY@4.zip">http://61.152.221.82/game_tools/PSMPLAY@4.zip</a><br/>mabicomp.rar<br/>要下载MIDI音乐来尝试转换成MML，到：<a href="http://mid.ququ3.cn/" target="_blank">http://mid.ququ3.cn/</a><br/><br/>11、添加静音功能，方便单个谱子的调试。<br/><br/>12、搜集更多服务器。luoqi.com.cn、新浪、太平洋上的均不能用。<br/><a href="http://210.208.86.67/PSGConverter.exe" target="_blank">http://210.208.86.67/PSGConverter.exe</a><br/><a href="http://mabinogi.nexon.net/PSG/PSGConverter.exe" target="_blank">http://mabinogi.nexon.net/PSG/PSGConverter.exe</a><br/><a href="http://comp.mabinogi.jp/PSGConverter.exe" target="_blank">http://comp.mabinogi.jp/PSGConverter.exe</a><br/><a href="http://www.annie.ne.jp/~tamanegi/mabimml/PSGConverter.phtml" target="_blank">http://www.annie.ne.jp/~tamanegi/mabimml/PSGConverter.phtml</a><br/><a href="http://logue.sakura.ne.jp/elements/PSGConverter.php" target="_blank">http://logue.sakura.ne.jp/elements/PSGConverter.php</a><br/><a href="http://211.218.233.238:77/PSGConverter.exe" target="_blank">http://211.218.233.238:77/PSGConverter.exe</a>×<br/><br/>13、一直想下载服务器上的exe文件，好自己搭建。均告失败。<br/>2008-04-12，Google搜索“PSGConverter”，终于找到啦！喜悦难于言表！<br/>最先的是这个：<a target="_blank" href="http://www.annie.ne.jp/www.annie.ne.jp/~tamanegi/">http://www.annie.ne.jp/www.annie.ne.jp/~tamanegi/</a><br/>不错！版本较早。继续！<br/><a target="_blank" href="http://www.google.cn/search?sourceid=navclient&amp;hl=zh-CN&amp;ie=UTF-8&amp;rlz=1T4GGLJ_zh-CN___CN247&amp;q=mml+site%3alogue%2ebe">http://www.google.cn/search?sourceid=navclient&amp;hl=zh-CN&amp;ie=UTF-8&amp;rlz=1T4GGLJ_zh-CN___CN247&amp;q=mml+site%3alogue%2ebe</a><br/>虽是小日本的，我还是要感谢他们！Nanashi、Tamanegi、Logue。伟大的互联网！伟大的共享主义者！<br/>页面：<a target="_blank" href="http://logue.be/Web%E7%B4%A0%E6%9D%90/PSGConverter.php.html">http://logue.be/Web%E7%B4%A0%E6%9D%90/PSGConverter.php.html</a><br/>下载：<a target="_blank" href="http://logue.be/?plugin=attach&amp;refer=Web%E7%B4%A0%E6%9D%90%2FPSGConverter.php&amp;openfile=PSGConverter.php.tgzPSGConverter.php">http://logue.be/?plugin=attach&amp;refer=Web%E7%B4%A0%E6%9D%90%2FPSGConverter.php&amp;openfile=PSGConverter.php.tgzPSGConverter.php</a><br/>存疑，怀疑是用SWF文件播放：<a target="_blank" href="http://logue.be/?cmd=related&amp;page=Web%E7%B4%A0%E6%9D%90%2FPukiWiki%2Fmml.inc.php">http://logue.be/?cmd=related&amp;page=Web%E7%B4%A0%E6%9D%90%2FPukiWiki%2Fmml.inc.php</a><br/><br/>14、还好我的本本上装了EasyPhp，赶快尝试！……没有声音？？！！！<br/>打开<a href="http://127.0.0.1/mml/PSGConverter.php?i=10" target="_blank">http://127.0.0.1/mml/PSGConverter.php?i=10</a>&amp;s=T111V11O4……（本机架设环境）<br/>有好多“undefined offset”错误！可惜PHP不是很懂。（其实是一点不懂^_^）<br/>Baidu一下，据说在“php.ini”文件中用“error_reporting = E_ALL”屏蔽。未果，还原php.ini的配置。<br/>再搜索……“array_key_exists”！！！！！！！！！<br/>用：&#160;&#160;&#160;&#160;<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">if (array_key_exists(&#39;0&#39;, $test)){</div></div><br/>替换：&#160;&#160;&#160;&#160;<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">if($test[0]!=&#39;&#39;){</div></div><br/>还有一个错误：$reset可能没有初值。修改：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">&#160;&#160;&#160;&#160;if(isset($_GET[&#39;r&#39;])) { $reset = true; }</div></div><br/>为：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">&#160;&#160;&#160;&#160;if(isset($_GET[&#39;r&#39;])) { $reset = true; }else{ $reset = false;}</div></div><br/><br/>再试！正确！本机架设服务器成功！优美的音乐再次响起！而且没有音色为10时的错误！o(∩_∩)o...哈哈<br/><br/>15、下一步，想再继续改进：按琴键时发声、选音色时发声、保存自己的谱子……<br/><br/><br/>再添几个参考网址：<br/>0、<a href="http://logue.be/Web%E7%B4%A0%E6%9D%90/PukiWiki.html" target="_blank">http://logue.be/Web%E7%B4%A0%E6%9D%90/PukiWiki.html</a><br/>1、<a href="http://logue.be/?plugin=attach" target="_blank">http://logue.be/?plugin=attach</a>&amp;refer=Web%E7%B4%A0%E6%9D%90%2FPukiWiki%2Fmabimml.inc.php&amp;openfile=mabimml.js.3<a target="_blank" href="http://203.208.33.101/search?q=cache:0JskKjpuMvQJ:logue.be/%3Fplugin%3Dattach%26refer%3DWeb%E7%B4%A0%E6%9D%90%252FPukiWiki%252Fmabimml.inc.php%26openfile%3Dmabimml.js.3+psgconverter.exe&amp;hl=zh-CN&amp;ct=clnk&amp;cd=10&amp;gl=cn&amp;st_usg=ALhdy28s_N4qh37njr3pVbpbH-8vjKr5kA">google快照</a><br/>2、<a href="http://logue.be/?plugin=attach" target="_blank">http://logue.be/?plugin=attach</a>&amp;refer=Web%E7%B4%A0%E6%9D%90%2FPukiWiki%2Fmabimml.inc.php&amp;openfile=mabimml.inc.php<br/>3、<a href="http://jbbs.livedoor.jp/game/10417/storage/1105969251.html" target="_blank">http://jbbs.livedoor.jp/game/10417/storage/1105969251.html</a><br/>4、<a href="http://www.google.cn/search?q=psgconverter%2eexe" target="_blank">http://www.google.cn/search?q=psgconverter%2eexe</a><br/><br/>来自<a href="http://jbbs.livedoor.jp/game/10417/storage/1105969251.html" target="_blank">http://jbbs.livedoor.jp/game/10417/storage/1105969251.html</a>的曲子<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">T144V13O4L32FGG+A+&gt;CDD+FL8G2&amp;GG+GC16D+16&amp;D+2D+.F.GF4.&lt;A+16B16&gt;CDD+GA+4G+4G.F.D+G2&amp;GG+GC16D+16&amp;D+2D+.D.&lt;A+&gt;C4&lt;A+&gt;G4C4&lt;A+&gt;C&lt;A+&gt;CG.G16G+.A+.G2&amp;GG+GC16D+16&amp;D+2D+.G.F+F4.D+A+.A+.&gt;C&lt;G.F.CG.&gt;C.&lt;A+G2&amp;GG+GC16D+16&amp;D+2CD+16D+16D+16&gt;C.C4.&lt;A+16&gt;C16&lt;A+4&gt;CC+16D16D+4&lt;G16A+16&gt;D+G+D+16A+D+16G+O4F+2.&amp;F+F16F+16G+2C+4CC+&gt;C+2&amp;C+&lt;B16R16A+16G+.A+4BA+4D+16R16F+16G+16A+B2&amp;B8A+16R16B16&gt;C+.D+4.F16D+16C+2&amp;T216&amp;C4G+4F+4F4F+4G+4D+4F4F+4F4&lt;G+4B4&gt;T144C+4.G+4C+.&lt;B.&gt;C+4.&lt;B16&gt;C+16G+4F+4G1&amp;G1&amp;G1,<br/>T144V11O2L4G4L16C+CR8C+8C+C+8C+C8&lt;G+RA+&gt;CRC+RCC+RCC+8D+8C+C+C+G+8R&lt;G+A+RA+8A+A+8A+G+8FRG+A+&gt;RCR&lt;A+&gt;CC8C8CG8&lt;GG&gt;C8C+CR8C+8C+C+8C+C8&lt;G+RA+&gt;CRC+RCC+RCC+8D+8C+C+C+G+8R&lt;G+A+RA+8A+A+8A+G+8FRG+A+&gt;RCR&lt;A+&gt;CC8C8CG8&lt;GG&gt;C8C+CR8C+8C+C+8C+C8&lt;G+RA+&gt;CRC+RCC+RCC+8D+8C+C+C+G+8R&lt;G+A+RA+8A+A+8A+G+8FRG+A+&gt;RCR&lt;A+&gt;CC8C8CG8&lt;GG&gt;C8C+CR8C+8C+C+8C+C8&lt;G+RA+&gt;CRC+RCC+RCC+8D+8C+C+C+G+8R&lt;G+A+RA+8A+A+8A+G+8FRG+A+R&gt;CR&lt;A+&gt;CG8C+C+G+8C+A+D+G+A+O3C+1F1E1F+2&lt;B4&gt;D+4G+1A+1A1&amp;A2B2.D+4.G+4.G+1G+2&gt;D+2&lt;C1&amp;C2.C4C1,<br/>T144V11O3L4G4G1&amp;G2.F4G1F2D+2G1&amp;G2.A+4G1F2A+2&gt;C1&amp;C2.D+4C1&lt;A+</div></div>]]></description>
		</item>
		
</channel>
</rss>