[AAuto]给百宝箱增加娱乐功能

import win.ui;
/*DSG{{*/
var winform = win.form( top=0;bottom=399;parent=...;right=599;border="none";left=0;exmode="none";scroll=1;mode="child";text="百宝箱......" )
winform.add(  )
/*}}*/

import ide; 
import web.form;
import web.form.menu;  
var wb = web.form( winform, 0x4/*_UIFLAG_NO3DBORDER*/ | 0x200000/*_UIFLAG_NO3DOUTERBORDER*/, , ,true/*securityTrusted*/ );

wb.external={
	edit = function(){
		ide.openDocument( "\bbx.aau" )		
	};
	webqq = function(){
		wb.go("http://web.qq.com/")
	}
	kugou = function(){
		wb.go("http://web.kugou.com/")
	}
	Qplus = function(){
		wb.go("http://vm.qplus.com/vm.html?ver=3.3.1697.0&term=1#200002023-1-1-00014f69cf560068f3b3ee9adf4ba4954c11a4e7f278")
	}
	TVpaly = function(){
		wb.go("http://tv.ssyyy.com")
	}
	CCTV = function(){
		wb.go("http://www.upsbbs.com/cmp4/cmp.swf?lists=list/www_upsbbs_com_cctv.xml&skin_id=3&play_id=8")
	}
	
}

var html = /**
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />  
<style type="text/css"> 
body,a {
	font-family: Tahoma;
	font-size: 9pt;
	line-height: 18px;
}
a {
	text-decoration : none;
	color :#657EB9 ;
	font-weight: normal;
}
a:visited
{
	text-decoration : none;
	color : #657EB9;
	font-weight: normal;
}
a:hover {text-decoration : underline; color : #F16F31; } 
</style>
</head>
<body>
	<div >  本功能正在开发中,敬请关注!<br /><br />
		<ul>
			<li><a href="javascript:void(0);" onclick="javascript:external.webqq()">腾讯QQ</a></li>
			<li><a href="javascript:void(0);" onclick="javascript:external.kugou()">酷狗音乐</a></li>
			<li><a href="javascript:void(0);" onclick="javascript:external.Qplus()">奇艺影视</a></li>
			<li><a href="javascript:void(0);" onclick="javascript:external.TVpaly()">搜狐直播</a></li>
			<li><a href="javascript:void(0);" onclick="javascript:external.CCTV()">CCTV直播</a></li>
		</ul>
		<a href="javascript:void(0);" onclick="javascript:external.edit()">点这里编辑此插件源码</a>
	</div>
</body>
</html>
**/ 

wb.write( html )
wb.wait(""); 

wb.showMenu=function(x,y,id,ele){
	return false;
}
ide.pluginViewShow(winform)  
win.loopMessage();

用上面的代码替换掉AAuto\ide\extensions\plugin\view目录下的 bbx.aau文件

附截图:

[AAuto]给百宝箱增加娱乐功能_第1张图片

以后就可以直接用AAuto边听歌边写代码了 - -

你可能感兴趣的:(源码,开源,aauto)