吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 5118|回复: 3
收起左侧

[其他转载] 简易浏览器AAuto源码

[复制链接]
吾爱扣扣 发表于 2013-8-13 15:11
搞死我了。。

[C++] 纯文本查看 复制代码
import config;
import web.form;

/*DSG{{*/
mainForm = ..win.form( bottom=515;scroll=1;text="简易浏览器";right=671;parent=...)
mainForm.add( 
button2={ ah=1;bottom=32;text="后退";left=18;top=8;aw=1;right=73;z=4;cls="button" };
edit={ ah=1;bottom=31;text="http://www.baidu.com";left=140;top=8;z=2;aw=1;right=530;edge=1;cls="edit" };
button={ ah=1;bottom=30;text="Go";left=536;top=6;aw=1;right=592;z=3;cls="button" };
static={ ah=1;notify=1;transparent=1;text="浏览区域";left=0;top=40;aw=1;bottom=511;right=672;z=1;cls="static" };
button4={ ah=1;bottom=30;text="刷新";left=599;top=6;aw=1;right=655;z=6;cls="button" };
button3={ ah=1;bottom=32;text="前进";left=80;top=8;aw=1;right=136;z=5;cls="button" }
)
/*}}*/

mainForm.button4.oncommand = function(id,event){
        //mainForm.msgbox( mainForm.button4.text );
        mainWb.refresh()
        
}
mainForm.button3.oncommand = function(id,event){
        //mainForm.msgbox( mainForm.button3.text );
        mainWb.goforward()
        
}


mainForm.button2.oncommand = function(id,event){
        //mainForm.msgbox( mainForm.button2.text );
        mainWb.goback()
        
}
mainForm.button.oncommand = function(id,event){
        //mainForm.msgbox( mainForm.button.text );
        mainWb.go(mainForm.edit.text)
}


//创建web窗体
mainWb = web.form( mainForm.static 
        ,///可输入_UIFLAG_ 前缀的常量自定义外观
        ,//可输入_DLCTL_ 前缀的常量以控制下载行为
        ,//"USER AGENT"
        );
        

//打开目标网站
mainWb.go("http://www.baidu.com")
mainForm.show(); //显示窗体
mainWb.wait("");//等待指定网址,可以使用模式匹配语法
//进入消息循环
win.loopMessage(); 

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

Victory.ms 发表于 2013-8-13 15:35
前进后退刷新 真是够简易

点评

你的签名哈哈! 小学生LOL  发表于 2013-8-13 15:40
beiank 发表于 2013-8-13 15:48
本帖最后由 beiank 于 2013-8-14 17:43 编辑

去广告也加进去呗 做个视频教程呗 很实用 让我告别那广告吧 前面都是我的愿望  因为我真怕了广告了

点评

。。。  发表于 2013-8-13 16:17
yella 发表于 2014-11-13 21:40
你看看,这么简单的几句代码  比易语言好多了吧
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-9-22 13:38

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表