管理员
var window = floaty.window(
    <frame><linear>
        <button id="action" text="CA" w="40" h="40" color="#ffffff" bg="#77000000"/>
   </linear> </frame>
);


var execution = null;

//记录按键被按下时的触摸坐标
var x = 0, y = 0;
//记录按键被按下时的悬浮窗位置
var windowX, windowY;
//记录按键被按下的时间以便判断长按等动作
var downTime;
window.action.setOnTouchListener(function(view, event){
    switch(event.getAction()){
        case event.ACTION_DOWN:
            x = event.getRawX();
            y = event.getRawY();
            windowX = window.getX();
            windowY = window.getY();
            downTime = new Date().getTime();
            return true;
        case event.ACTION_MOVE:
            //移动手指时调整悬浮窗位置
            window.setPosition(windowX + (event.getRawX() - x),
                windowY + (event.getRawY() - y));
            //如果按下的时间超过1.5秒判断为长按,退出脚本
            //if(new Date().getTime() - downTime > 1500){
                //exit();
            //}
            return true;
        case event.ACTION_UP:
            //手指弹起时如果偏移很小则判断为点击
            if(Math.abs(event.getRawY() - y) < 5 && Math.abs(event.getRawX() - x) < 5){
                onClick();
            }
            return true;
    }
    return true;
});
bkz=0;
function onClick(){
   /* if(bkz==0){
        bkz=1;
        window.action.text("..");*/
    threads.start(function(){
        选择();
       /* bkz=0;
       ui.run(function(){
        window.action.text("CA");
       });*/
    });}
//}
function 选择(){
var 一级命令=["常用","模块化功能","界面","逻辑","控制台"];
var 一级选择=dialogs.select("命令助手",一级命令);
var 二级命令=[["setClip()",
          "threads.start(function(){\n\n});",
           'function (){\n\n}'
          ],
          [],
          ["ui.run(function(){\n\n});",'ui..click(() => {\n\n});',
          'var window=floaty.window(\n\n);',
          '"ui";',
          'ui.layout(\n\n);','ui.statusBarColor("#00000000");','<frame>','<vertical>','<linear>','<text />','<seekbar progress="0"/>','<button />','<input />',],                 
          ["for(var i=0;i<1;i++){\n\n}","while(true){\n\n}","if(){\n\n}else{\n\n}","try{\n\n}catch(e){\n\n}",
          
          ],["console.",
           "show();",
           "setPosition(,);",
           'rawInput("提示","");',
          'clear()']];
var 二级选择=dialogs.select(一级命令[一级选择],二级命令[一级选择]);
setClip(二级命令[一级选择][二级选择]);
}




while(true){
    sleep(111);
}