Exemplo n.º 1
0
        public static void myQuitAll(string dizhi)
        {
            MyLdcmd myldcmd = MyLdcmd.GetObject(dizhi);

            MyFuncUtil.killProcess("dnplayer");
            Thread.Sleep(10000);
            int[] abcd = getDqmoniqiHuodongIndex(dizhi);
            foreach (var a in abcd)
            {
                if (a == -1)
                {
                    continue;
                }
                while (true)
                {
                    int[]     abc = getDqmoniqiHuodongIndex(dizhi);
                    ArrayList ar  = new ArrayList(); //实例化一个ArrayList
                    ar.AddRange(abc);                //把数组赋到Arraylist对象
                    if (ar.Contains(a))
                    {
                        MyFuncUtil.mylogandxianshi("关闭模拟器" + a);
                        ld.Quit(a);
                    }
                    if (!ar.Contains(a))
                    {
                        MyFuncUtil.mylogandxianshi("模拟器" + a + ",关闭成功");
                        break;
                    }
                }
            }
        }
Exemplo n.º 2
0
        public static void RunDuokaiqi(string a_b)
        {
            WriteLog.WriteLogFile("", "打开多开器");
            MyFuncUtil.killProcess("dnmultiplayer");
            Thread.Sleep(10000);
            Process p = new Process();

            if (a_b.ToLower().Equals("c"))
            {
                p.StartInfo.FileName = appNamec;
            }
            if (a_b.ToLower().Equals("d"))
            {
                p.StartInfo.FileName = appNamed;
            }
            //启动程序
            p.Start();
            WriteLog.WriteLogFile("", "结束打开多开器2");
        }