This commit is contained in:
老道 2022-11-01 00:29:46 +08:00
parent 6964db17cf
commit 1268d2315c
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}