aardio 文档
aardio 范例: 窗口程序 - 跨进程调用函数
import win.ui;
mainForm = win.form(text="窗口程序 - 跨进程调用函数";right=581;bottom=373)
mainForm.add(
button={cls="button";text="发送跨进程命令";left=297;top=309;right=519;bottom=355;z=1};
edit={cls="edit";left=28;top=17;right=555;bottom=298;edge=1;multiline=1;z=2}
)
import process.command;
process.command.join("{870819C0-D702-4508-BB0A-5F09E514E23E}")
var processObserver = process.command();
processObserver.testCmd = function(a,b,c){
mainForm.edit.appendText("testCmd被调用,参数:",a,b,c,'\r\n');
return 123;
}
mainForm.button.oncommand = function(id,event){
process.command.testCmd(1,2,",进程命令参数")
}
mainForm.show()
win.loopMessage();
Markdown 格式