import win.ui;
/*DSG{{*/
var winform = win.form(text="aardio Form";right=295;bottom=215;parent=...)
winform.add(
button={cls="button";text="下载";left=96;top=72;right=208;bottom=112;z=1}
)
/*}}*/
import inet.downBox;
winform.button.oncommand = function(id,event){
var downBox = inet.downBox(winform,"下载",false);//父窗口,"标题",下载成功自动关闭
downBox.endProc = function(ret,fileSize,err){
if(!err){
owner.endModal();
};
}
downBox.download("http://www.jianma123.com/download/downtest.zip", ..fsys.joinpath("C:\Users\Administrator\Desktop\downtest.zip"))
if( !downBox.complete ){
return;
}
}
winform.show()
win.loopMessage();
return winform;
import win.ui;
/*DSG{{*/
var winform = win.form(text="aardio Form";right=295;bottom=215;parent=...)
winform.add(
button={cls="button";text="下载";left=96;top=72;right=208;bottom=112;z=1}
)
/*}}*/
import inet.downBox;
winform.button.oncommand = function(id,event){
//io.open();
import fsys.dlg; //系统文件窗口
var ads = fsys.dlg.save("表格数据xls xlsx","选择保存位置","","","","123.xls"); //打开文件窗口 获取路径
var downBox = inet.downBox(winform,"下载",false);//父窗口,"标题",下载成功自动关闭
downBox.endProc = function(ret,fileSize,err){
if(!err){
owner.endModal();
};
}
downBox.download("http://play.tieyu.net/yonghu.php?act=bisai/bisai_dmxls&at=paiming", ..fsys.joinpath(ads))
if( !downBox.complete ){
return;
}
}
winform.show()
win.loopMessage();
return winform;
import win.ui;
/*DSG{{*/
var winform = win.form(text="aardio web form";right=759;bottom=469)
winform.add(
custom={cls="custom";text="custom";left=376;top=504;right=656;bottom=624;z=1}
)
/*}}*/
import console;
import web.form;
//创建IE内核的web窗体
var wb = web.form( winform.custom ,/*_UIFLAG_*/,/*_DLCTL_*/,/*USER AGENT*/,true/*securityTrusted*/ );
//打开目标文件,会弹出IE的下载保存对话框
wb.go("http://www.jianma123.com/download/downtest.zip");
winform.show(); //显示窗体
wb.wait(""); //等待指定网址,可以使用模式匹配语法
win.loopMessage();