Exemple #1
0
        public void SaveFriendName(DmAe dmae, int count, string type = "normal")
        {
            while (im.pagecheck.CheckMyFriendDormitory(dmae.dm) == -1)
            {
                im.mouse.delayTime(1);
            }

            while (im.pagecheck.CheckDormitoryLoad(dmae.dm) == false)
            {
                im.mouse.delayTime(1);
            }

            if (type == "firstname")
            {
                dmae.Capture(900, 15, 1065, 50, "\\FriendList\\temp0.bmp");
            }

            int dm_retsave = dmae.Capture(900, 15, 1065, 50, "\\FriendList\\" + "temp" + count.ToString() + ".bmp");
        }
Exemple #2
0
 private void button33_Click(object sender, EventArgs e)
 {
     try
     {
         //获取当前数目
         int count = im.Form1.imageList1.Images.Count;
         //截图
         int dm_retsave = dmae.Capture(900, 15, 1065, 50, "\\FriendList\\temp" + count.ToString() + ".bmp");
         //入队
         im.Form1.imageList1.Images.Add(Image.FromFile(Application.StartupPath + "\\FriendList\\temp" + count.ToString() + ".bmp"));
     }
     catch (Exception)
     {
     }
 }