mirror of
https://github.com/snltty/linker.git
synced 2025-12-24 12:38:04 +08:00
195
This commit is contained in:
5
src/aardio 工程/default.aproj
Normal file
5
src/aardio 工程/default.aproj
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project ver="10" name="aardio 工程" libEmbed="true" icon="..." ui="console" output="aardio 工程.exe" CompanyName="单位名称" FileDescription="aardio 工程" LegalCopyright="Copyright (C) 作者 2025" ProductName="aardio 工程" InternalName="aardio 工程" FileVersion="0.0.0.1" ProductVersion="0.0.0.1" publishDir="/dist/" dstrip="false">
|
||||
<file name="main.aardio" path="main.aardio" comment="启动程序代码"/>
|
||||
<folder name="资源文件" path="res" embed="true"/>
|
||||
</project>
|
||||
17
src/aardio 工程/lib/config.aardio
Normal file
17
src/aardio 工程/lib/config.aardio
Normal file
@@ -0,0 +1,17 @@
|
||||
//config 配置文件
|
||||
import fsys.config;
|
||||
config = fsys.config("/config/");
|
||||
//config = fsys.config( io.appData("/软件作者/应用程序名/") );
|
||||
|
||||
//不需要序列化的配置名字前请添加下划线
|
||||
namespace config {
|
||||
__appName = "应用程序名";
|
||||
__website = "http://www.aardio.com/";
|
||||
}
|
||||
|
||||
/**intellisense(config)
|
||||
__appName = 应用程序名
|
||||
__website = 官方网站
|
||||
saveAll() = 写入所有配置到文件
|
||||
? = 获取值时指定不以下划线开始的配置表名称,\n返回一个可自动序列化到同名配置文件的表对象。\n如果此对象名以下划线开始,则可以正常读写值不会序列化为配置文件。\n否则不能对此对象直接赋值,只能对配置表对象的成员赋值。\n\n配置表可自动自文件加载,退出线程前自动序列化并存入文件。\n仅序列化以字符串、数值为键的元素,\n仅序列化值为字符串、数值、buffer 以及定义了 _serialize 元方法的成员。\n循环引用的值转换为 null,序列化时忽略成员函数\n!fsys_table.
|
||||
end intellisense**/
|
||||
10
src/aardio 工程/main.aardio
Normal file
10
src/aardio 工程/main.aardio
Normal file
@@ -0,0 +1,10 @@
|
||||
import console;
|
||||
console.setTitle("aardio 工程");
|
||||
|
||||
var str = console.getText("请输入一行文本,然后回车:");
|
||||
console.log("您输入的是" ,str );
|
||||
console.log(string.len(str));
|
||||
console.log(!str );
|
||||
|
||||
|
||||
console.pause();
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project ver="10" name="linker.tray.win" libEmbed="true" icon="..\linker\favicon.ico" ui="win" output="linker.tray.win.exe" CompanyName="snltty" FileDescription="linker.tray.win" LegalCopyright="Copyright (C) snltty 2024" ProductName="linker.tray.win" InternalName="linker.install.win" FileVersion="0.0.0.340" ProductVersion="0.0.0.340" publishDir="/dist/" dstrip="false" local="false" ignored="false">
|
||||
<project ver="10" name="linker.tray.win" libEmbed="true" icon="..\linker\favicon.ico" ui="win" output="linker.tray.win.exe" CompanyName="snltty" FileDescription="linker.tray.win" LegalCopyright="Copyright (C) snltty 2024" ProductName="linker.tray.win" InternalName="linker.install.win" FileVersion="0.0.0.348" ProductVersion="0.0.0.348" publishDir="/dist/" dstrip="false" local="false" ignored="false">
|
||||
<file name="main.aardio" path="main.aardio" comment="main.aardio"/>
|
||||
<folder name="资源文件" path="res" embed="true" local="false" ignored="false">
|
||||
<file name="favicon.ico" path="res\favicon.ico" comment="res\favicon.ico"/>
|
||||
|
||||
BIN
src/linker.tray.win/dist/linker.tray.win.exe
vendored
BIN
src/linker.tray.win/dist/linker.tray.win.exe
vendored
Binary file not shown.
@@ -38,6 +38,7 @@ hIcon = win.image.loadIconFromFile("/res/favicon.ico",true);
|
||||
hIcon1 = win.image.loadIconFromFile("/res/favicon1.ico",true);
|
||||
mainForm.myTray = null;
|
||||
mainForm.wndproc = function(hwnd,message,wParam,lParam){
|
||||
|
||||
//托盘菜单
|
||||
if(message === 0xACCF ){
|
||||
//右键
|
||||
@@ -52,7 +53,7 @@ mainForm.wndproc = function(hwnd,message,wParam,lParam){
|
||||
//左键
|
||||
if(lParam === 0x0202){
|
||||
mainForm.show();
|
||||
win.setTopmost(mainForm.hwnd);
|
||||
mainForm.topmostExists();
|
||||
}
|
||||
}
|
||||
//关闭
|
||||
@@ -268,16 +269,31 @@ mainForm.getUrl = function(){
|
||||
return '';
|
||||
}
|
||||
|
||||
mainForm.topmostExists = function(){
|
||||
if(io.exist("configs/topmost.txt"))
|
||||
{
|
||||
mainForm.ckTopMost.checked = true;
|
||||
win.setTopmost(mainForm.hwnd,true);
|
||||
}
|
||||
else
|
||||
{
|
||||
mainForm.ckTopMost.checked = false;
|
||||
win.setTopmost(mainForm.hwnd,false);
|
||||
}
|
||||
}
|
||||
|
||||
mainForm.ckTopMost.oncommand = function(id,event){
|
||||
import fsys;
|
||||
if(mainForm.ckTopMost.checked)
|
||||
{
|
||||
io.createDir("configs");
|
||||
string.save("configs/topmost.txt", "1");
|
||||
}else
|
||||
{
|
||||
fsys.delete("configs/topmost.txt");
|
||||
}
|
||||
mainForm.topmostExists();
|
||||
|
||||
}
|
||||
|
||||
mainForm.checkService();
|
||||
@@ -306,12 +322,8 @@ mainForm.setInterval(
|
||||
)
|
||||
mainForm.show();
|
||||
|
||||
import fsys;
|
||||
if(fsys.searchFile("configs/topmost.txt"))
|
||||
{
|
||||
mainForm.ckTopMost.checked = true;
|
||||
win.setTopmost(mainForm.hwnd);
|
||||
}
|
||||
mainForm.topmostExists();
|
||||
|
||||
if(_ARGV["task"])
|
||||
{
|
||||
mainForm.show(false);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
v1.9.5
|
||||
2025-10-30 23:23:39
|
||||
2025-10-31 00:07:23
|
||||
1. 一些累计更新,一些BUG修复
|
||||
2. 管理窗口默认置顶改为可选
|
||||
3. 增加内网穿透HTTP协议默认404页面,在web文件夹中,当存在优先404.html,其次404_default.html
|
||||
|
||||
Reference in New Issue
Block a user