Example #1
0
        public static void myScreencapLuneng(int index, string path, string sdcardpath = "Pictures")
        {
            MyLdcmd myldcmd = MyLdcmd.GetObject();
            string  zd      = "/sdcard/" + sdcardpath;

            myldcmd.SimulatorPath = ld.SimulatorPath;
            myldcmd.pullFile(index, path, zd);
        }
Example #2
0
        public static void myScreencap(int index, string path, string dizhi = @"d:\ChangZhi\dnplayer2\")
        {
            MyLdcmd myldcmd = MyLdcmd.GetObject(dizhi);
            string  zd      = "/sdcard/screencap.png";
            string  a       = ld.Screencap(index, zd);

            WriteLog.WriteLogFile(index + "", a);
            Thread.Sleep(3000);
            myldcmd.SimulatorPath = ld.SimulatorPath;
            myldcmd.pullFile(index, path, zd);
        }