This commit is contained in:
parent
6964db17cf
commit
1268d2315c
|
@ -115,7 +115,7 @@ namespace WechatHelper
|
||||||
if (isIconic)
|
if (isIconic)
|
||||||
{
|
{
|
||||||
ShowWindow(handle, 1);
|
ShowWindow(handle, 1);
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(new Random(Guid.NewGuid().GetHashCode()).Next(8000, 10000));
|
||||||
}
|
}
|
||||||
|
|
||||||
var thisHandel = Process.GetCurrentProcess().MainWindowHandle;
|
var thisHandel = Process.GetCurrentProcess().MainWindowHandle;
|
||||||
|
@ -155,7 +155,7 @@ namespace WechatHelper
|
||||||
//如果微信最小化了,重新让他最小化
|
//如果微信最小化了,重新让他最小化
|
||||||
if (!isIconic) continue;
|
if (!isIconic) continue;
|
||||||
|
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(new Random(Guid.NewGuid().GetHashCode()).Next(40000, 60000));
|
||||||
ShowWindow(handle, 2);
|
ShowWindow(handle, 2);
|
||||||
} while (true);
|
} while (true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue