Пример #1
0
        public long OpenApplactionFun(IntPtr es)
        {
            string p = ltf.JsValue2StringW(es, ltf.GetJsParameter(es, 0));

            Process.Start(p);
            return(ltf.JsUndefined());
        }
Пример #2
0
        public long f4Fun(IntPtr es)
        {
            long fun = ltf.GetJsParameter(es, 0);
            long arg = ltf.String2JsValue(es, "C#执行了回掉函数");

            long[] ptarg      = { arg };
            IntPtr arrayStore = Marshal.AllocHGlobal(ptarg.Length * sizeof(long));

            Marshal.Copy(ptarg, 0, arrayStore, ptarg.Length);
            ltf.JsCall(es, fun, arrayStore, 1);
            return(ltf.JsUndefined());
        }
Пример #3
0
        public long SetLayerWindowFun(IntPtr es)
        {
            bool t = ltf.JsValue2Boolean(es, ltf.GetJsParameter(es, 0));

            ltf.SetViewTransparent(t);
            return(ltf.JsUndefined());
        }
Пример #4
0
        public long AutoGCFun(IntPtr es)
        {
            bool t = ltf.JsValue2Boolean(es, ltf.GetJsParameter(es, 0));

            ltf.IsAutoGC(t, 50);
            return(ltf.JsUndefined());
        }