This commit is contained in:
老道 2022-11-10 20:13:11 +08:00
parent aa7b865624
commit 47da988bb4
1 changed files with 4 additions and 4 deletions

View File

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