diff --git a/PCRobot/Utils/WeChatActivateHelper.cs b/PCRobot/Utils/WeChatActivateHelper.cs index b414d4e..b515031 100644 --- a/PCRobot/Utils/WeChatActivateHelper.cs +++ b/PCRobot/Utils/WeChatActivateHelper.cs @@ -115,7 +115,7 @@ namespace WechatHelper if (isIconic) { ShowWindow(handle, 1); - Thread.Sleep(1000); + Thread.Sleep(3000); } var thisHandel = Process.GetCurrentProcess().MainWindowHandle; @@ -153,16 +153,16 @@ namespace WechatHelper }, null); //如果微信最小化了,重新让他最小化 - + if (isIconic) { - Thread.Sleep(1000); + Thread.Sleep(4000); ShowWindow(handle, 2); } //休眠 Thread.Sleep(new Random(Guid.NewGuid().GetHashCode()).Next(40000, 60000)); - + } while (true); } catch (Exception e)