Ejemplo n.º 1
0
 static void OpenWeChat(int count)
 {
     try
     {
         var ret = WeChat.OpenWechat(count);
         if (!ret)
         {
             return;
         }
         var list = Process.GetProcessesByName("WeChat");
         if (list == null || list.Length <= 0)
         {
             return;
         }
         foreach (var item in list)
         {
             if (!WeChat.IsInjected(item.Id))
             {
                 WeChat.InjectDll(item.Id);
             }
         }
     }
     catch (Exception ex)
     {
         ShowLog($"[异常]{ex.Message}");
     }
 }
Ejemplo n.º 2
0
 static void OpenWeChat()
 {
     try
     {
         var ret  = WeChat.OpenWechat();
         var list = Process.GetProcessesByName("WeChat");
         if (list.Length > 0)
         {
             ret = list[0].Id;
         }
         if (ret == 0)
         {
             return;
         }
         if (!WeChat.IsInjected(ret))
         {
             WeChat.InjectDll(pid);
         }
     }
     catch (Exception ex)
     {
         ShowLog($"[异常]{ex.Message}");
     }
 }