diff --git a/PCRobot/Utils/WeChatActivateHelper.cs b/PCRobot/Utils/WeChatActivateHelper.cs index 7757a56..d912a54 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(new Random(Guid.NewGuid().GetHashCode()).Next(8000, 10000)); } var thisHandel = Process.GetCurrentProcess().MainWindowHandle; @@ -155,7 +155,7 @@ namespace WechatHelper //如果微信最小化了,重新让他最小化 if (!isIconic) continue; - Thread.Sleep(1000); + Thread.Sleep(new Random(Guid.NewGuid().GetHashCode()).Next(40000, 60000)); ShowWindow(handle, 2); } while (true); }