Skip to content

Commit

Permalink
快手 AAuto v6.5.19 更新说明
Browse files Browse the repository at this point in the history
1.增加service注册系统服务标准库,import service;
2.string.concatUnicode() 函数修正拼接空值出错BUG
3.增加process.admin.isLeastPrivileges()函数,
  进程是否运行于VISTA以后的系统并且无管理权限
  可选在参数中指定进程句柄,不指定则默认取当前进程权限
4.优化thread.works多线程库
  • Loading branch information
carlaau committed Dec 29, 2014
1 parent 2ccbdd8 commit 79b180e
Show file tree
Hide file tree
Showing 7 changed files with 593 additions and 19 deletions.
2 changes: 1 addition & 1 deletion config/SYS.CFG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "6.5.18"
version = "6.5.19"
3 changes: 2 additions & 1 deletion config/lang/lib.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ unqlite = unqlite
chm = chm ������
icmp = icmp ������
newLisp = newLisp ����
wps = wps �칫����
wps = wps �칫����
service = service �������
7 changes: 4 additions & 3 deletions example/HTMLayout/tint.aau
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
//tint ����ת������
import win.ui;
/*DSG{{*/
var winform = ..win.form(text="HTMLayout tint����ת������";right=599;bottom=399;parent=...)
var winform = ..win.form(text="HTMLayout tint����ת������";right=599;bottom=399;border="dialog frame";max=false;parent=...)
winform.add(
btnTint={cls="button";text="����";left=309;top=43;right=376;bottom=70;z=2};
btnTint={cls="button";text="����";left=309;top=43;right=389;bottom=70;z=2};
edit={cls="edit";text="tint(#FF0000,-0.5, 0.9)";left=30;top=43;right=306;bottom=67;edge=1;multiline=1;z=1};
editResult={cls="edit";left=30;top=78;right=306;bottom=101;edge=1;multiline=1;z=3}
editResult={cls="edit";left=30;top=78;right=306;bottom=101;edge=1;multiline=1;z=3};
static={cls="edit";text="tint( ��ɫ,����,���Ͷ�) ���Ȼ򱥺Ͷȵ�ȡֵ��ΧΪ-1.0��+1.0 ֮���ʾ�ٷֱȵ�С��";left=31;top=15;right=540;bottom=37;bgcolor=16777215;readonly=1;z=4}
)
/*}}*/

Expand Down
10 changes: 7 additions & 3 deletions lib/preload/_.aau
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,13 @@ namespace string {
concatUnicode = function(a,b,...){
a = toUnicode(a);
b = toUnicode(b);
if( #a > 2 ) c = left(a,-3) ++ b;
else c = b;
if(!...) return c;

var c = a;
if( #a > 2 && #b > 2 ) c = left(a,-3) ++ b;
elseif( #b > 2 ) c = b;

a,b = ...
if( (a === null) && (b === null) ) return c;
return concatUnicode(c,...);
}
}
Expand Down
6 changes: 6 additions & 0 deletions lib/process/admin.aau
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ namespace process.admin;
OpenProcessToken = ::Advapi32.api( "OpenProcessToken", "pointer(POINTER ProcessHandle,INT DesiredAccess,pointer &TokenHandle)");
GetTokenInformation = ::Advapi32.api( "GetTokenInformation", "int(POINTER TokenHandle,int infoClass,struct &TokenInfo,INT len,INT &retLen)");

isLeastPrivileges = function(hProcess){
var admin,xpVersion = isRunAs(hProcess);
return !(xpVersion || admin)
}

isRunAs = function(hProcess) {
if(!hProcess){
hProcess = ..process.getHandle();
Expand Down Expand Up @@ -89,6 +94,7 @@ runas_leastPrivileges = function(path,arguments,workdir,taskName){
}

/**intellisense(process.admin)
isLeastPrivileges() = �����Ƿ�������VISTA�Ժ��ϵͳ�����޹���Ȩ��\n��ѡ�ڲ�����ָ�����̾��,��ָ����Ĭ��ȡ��ǰ����Ȩ��
isRunAs(.(���̾��) = �жϽ����Ƿ��Թ���Ȩ������,\n�ɹ�����true,XP����flase,�Լ�majorVersion�汾��,\n������ѡ,Ĭ��Ϊ��ǰ���
runas(.(ִ�г���·��,��������,������ʾ��ʽ,����Ŀ¼,���ھ��,�ȴ�ѡ��) = ����Ӧ�ó���,\n�����vista�Ժ�ϵͳ�������Ȩ��,\nʡ�Բ���@1��Ĭ��ָ��Ϊ��ǰEXE·��,����������ѡ
runas_wait(.(ִ�г���·��,��������,������ʾ��ʽ,����Ŀ¼,���ھ��) = ����Ӧ�ó���,���ȴ����̽���,\n�����vista�Ժ�ϵͳ�������Ȩ��,,\nʡ�Բ���@1��Ĭ��ָ��Ϊ��ǰEXE·��,����������ѡ
Expand Down
Loading

0 comments on commit 79b180e

Please sign in to comment.