Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Smart-Space
快捷网页搜索
提交
8ba88e1f
快
快捷网页搜索
项目概览
Smart-Space
/
快捷网页搜索
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
快
快捷网页搜索
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8ba88e1f
编写于
12月 25, 2022
作者:
Smart-Space
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新default.aproj, main.aardio
上级
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
88 addition
and
0 deletion
+88
-0
default.aproj
default.aproj
+6
-0
main.aardio
main.aardio
+82
-0
未找到文件。
default.aproj
0 → 100644
浏览文件 @
8ba88e1f
<?xml version="1.0" encoding="utf-8"?>
<project
ver=
"10"
name=
"快捷网页搜索"
libEmbed=
"true"
icon=
"..."
ui=
"win"
output=
"快捷网页搜索.exe"
CompanyName=
"单位名称"
FileDescription=
"快捷网页搜索"
LegalCopyright=
"Copyright (C) 作者 2022"
ProductName=
"快捷网页搜索"
InternalName=
"快捷网页搜索"
FileVersion=
"1.0.0.05"
ProductVersion=
"1.0.0.05"
publishDir=
"/dist/"
dstrip=
"false"
>
<file
name=
"main.aardio"
path=
"main.aardio"
comment=
"main.aardio"
/>
<folder
name=
"资源文件"
path=
"res"
embed=
"true"
local=
"true"
ignored=
"false"
/>
<folder
name=
"窗体文件"
path=
"dlg"
comment=
"目录"
embed=
"true"
local=
"false"
ignored=
"false"
/>
</project>
main.aardio
0 → 100644
浏览文件 @
8ba88e1f
import win.ui;
import web.view
/*DSG{{*/
mainForm = win.form(text="快捷网页搜索";right=499;bottom=649;max=false)
mainForm.add(
button={cls="button";text="宽屏";left=423;top=17;right=458;bottom=39;z=6};
button2={cls="button";text="关于";left=459;top=17;right=494;bottom=39;z=7};
custom={cls="custom";text="自定义控件";left=4;top=48;right=496;bottom=650;ah=1;aw=1;z=5};
groupbox={cls="groupbox";text="选择搜索方式";left=4;top=2;right=496;bottom=44;db=1;dl=1;dr=1;dt=1;edge=1;z=1};
radiobutton={cls="radiobutton";text="必应";left=7;top=18;right=63;bottom=40;font=LOGFONT(h=-14;name='Microsoft YaHei UI');z=2};
radiobutton2={cls="radiobutton";text="百度";left=70;top=18;right=126;bottom=40;font=LOGFONT(h=-14;name='Microsoft YaHei UI');z=3};
radiobutton3={cls="radiobutton";text="有道翻译";left=133;top=18;right=218;bottom=40;font=LOGFONT(h=-14;name='Microsoft YaHei UI');z=4};
radiobutton4={cls="radiobutton";text="微软数学";left=226;top=18;right=309;bottom=40;font=LOGFONT(h=-14;name='Microsoft YaHei UI');z=8};
static={cls="static";text='\u2B50';left=315;top=17;right=342;bottom=39;align="center";center=1;color=12632256;font=LOGFONT(h=-18;name='Segoe UI Emoji');notify=1;transparent=1;z=9}
)
/*}}*/
var wb=web.view(mainForm.custom)
wb.go('https://cn.bing.com/?mkt=zh-cn&FORM=BEHPTB')
wb.adjust()//调整网页大小以适合窗口大小
//组合
mainForm.group();
mainForm.radiobutton.checked=true
mainForm.radiobutton.oncommand = function(id,event){
wb.go('https://cn.bing.com/?mkt=zh-cn&FORM=BEHPTB')
wb.adjust()
}
mainForm.radiobutton2.oncommand = function(id,event){
wb.go('https://m.baidu.com/')
}
mainForm.radiobutton3.oncommand = function(id,event){
wb.go('https://fanyi.youdao.com/')
}
mainForm.radiobutton4.oncommand = function(id,event){
wb.go('https://mathsolver.microsoft.com/zh')
}
//宽屏与常规
function widthmore(id,event){
mainForm.width=1200
mainForm.height=865
mainForm.button.oncommand=widthless
mainForm.button.text='恢复'
}
function widthless(id,event){
mainForm.width=650
mainForm.height=865
mainForm.button.oncommand=widthmore
mainForm.button.text='宽屏'
}
mainForm.button2.oncommand = function(id,event){
win.msgbox('作者:Smart-Space\r\n\r\n作用:网课等专注模式期间通过网页进行相关内容搜索\r\n\r\n使用:完全任意','关于 快捷网页搜索 实用程序',,mainForm.hwnd)
}
//当前网页网址短暂收藏功能
mainForm.static.oncommand = function(id,event){
return
}
wb.onDocumentInit = function(url){
//win.msgbox(url)
if (table.find(urls,url)){
//mainForm.static.color=
}
}
mainForm.button.oncommand = widthmore
var urls=table.create()
mainForm.show();
return win.loopMessage();
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录