Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikachu2333 authored Jan 10, 2024
1 parent 51189cc commit cf51c5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion default.aproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<project ver="10" name="name_exchanger" libEmbed="true" icon="123.ico" ui="win" output="name_exchanger.exe" CompanyName="None" FileDescription="Exchange the name of two files." LegalCopyright="Copyright (C) Mika 2023 MIT License" ProductName="name_exchanger" InternalName="name_exchanger" FileVersion="2.3.0.56" ProductVersion="2.3.0.56" publishDir="/dist/" dstrip="true" local="false" ignored="false">
<project ver="10" name="name_exchanger" libEmbed="true" icon="123.ico" ui="win" output="name_exchanger.exe" CompanyName="None" FileDescription="Exchange the name of two files." LegalCopyright="Copyright (C) Mika 2023 MIT License" ProductName="name_exchanger" InternalName="name_exchanger" FileVersion="2.3.0.58" ProductVersion="2.3.0.58" publishDir="/dist/" dstrip="true" local="false" ignored="false">
<file name="main.aardio" path="main.aardio" comment="main.aardio"/>
<folder name="资源文件" path="res" embed="true" local="false" ignored="false"/>
<folder name="窗体文件" path="dlg" comment="目录" embed="true" local="false" ignored="false"/>
Expand Down
12 changes: 6 additions & 6 deletions main.aardio
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import win.util.tray
/*DSG{{*/
mainForm = win.form(cls="FEXC_FORM";text="Filename Exchanger";right=362;bottom=242;acceptfiles=1;border="thin";max=false;min=false;mode="popup";sysmenu=false;title=false;topmost=1)
mainForm.add(
button_start={cls="button";text="启动 | 啓動";left=118;top=182;right=245;bottom=226;default=1;font=LOGFONT(h=-19;name='微软雅黑');z=3};
edit_path1={cls="edit";left=11;top=59;right=351;bottom=99;edge=1;multiline=1;z=2};
edit_path2={cls="edit";left=11;top=126;right=351;bottom=166;edge=1;multiline=1;z=6};
button_start={cls="button";text="启动 | 啓動";left=118;top=183;right=245;bottom=227;default=1;font=LOGFONT(h=-19;name='微软雅黑');z=3};
edit_path1={cls="edit";left=11;top=59;right=351;bottom=99;edge=1;z=2};
edit_path2={cls="edit";left=11;top=126;right=351;bottom=166;edge=1;z=6};
static_bg={cls="static";left=0;top=0;right=363;bottom=33;bgcolor=14120960;z=1};
static_close={cls="static";text='\u26DD';left=329;top=2;right=356;bottom=29;align="center";center=1;color=16777215;font=LOGFONT(h=-26;name='微软雅黑');notify=1;transparent=1;z=8};
static_menu={cls="static";text='\uD83D\uDEE0\uFE0F';left=256;top=2;right=283;bottom=29;align="center";bgcolor=0;center=1;color=16777215;font=LOGFONT(h=-20;name='微软雅黑');notify=1;transparent=1;z=10};
Expand Down Expand Up @@ -43,7 +43,7 @@ change_main = function(path1,path2){

var original_path_len_judge = (string.len(path1) > 255) or (string.len(path2) > 255)
var new_path_len_judge = (string.len(temp2_dir + temp1_name + temp2_ext) > 255) or (string.len(temp1_dir + temp2_name + temp1_ext) > 255)
var temp_path_len_judge = (string.len(temp1_dir + "B5432981E3D3E8279B8616") > 255)
var temp_path_len_judge = (string.len(temp1_dir + "4B4B9C83A63514BE1C7E8D") > 255)
var judge = (original_path_len_judge or new_path_len_judge or temp_path_len_judge)
if(judge){
win.msgbox("Name is too long to set. Please Remove the Limit.","Error",,mainForm.hwnd)
Expand All @@ -68,9 +68,9 @@ change_main = function(path1,path2){
io.rename(path1,temp1_dir + temp2_name)
}
}else{
io.rename(path1,temp1_dir + "B5432981E3D3E8279B8616")
io.rename(path1,temp1_dir + "4B4B9C83A63514BE1C7E8D")
io.rename(path2,temp2_dir + temp1_name + temp2_ext)
io.rename(temp1_dir + "B5432981E3D3E8279B8616",temp1_dir + temp2_name + temp1_ext)
io.rename(temp1_dir + "4B4B9C83A63514BE1C7E8D",temp1_dir + temp2_name + temp1_ext)
}
}

Expand Down

0 comments on commit cf51c5f

Please sign in to comment.