This commit is contained in:
parent
aa7b865624
commit
47da988bb4
|
@ -115,7 +115,7 @@ namespace WechatHelper
|
||||||
if (isIconic)
|
if (isIconic)
|
||||||
{
|
{
|
||||||
ShowWindow(handle, 1);
|
ShowWindow(handle, 1);
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
var thisHandel = Process.GetCurrentProcess().MainWindowHandle;
|
var thisHandel = Process.GetCurrentProcess().MainWindowHandle;
|
||||||
|
@ -153,16 +153,16 @@ namespace WechatHelper
|
||||||
}, null);
|
}, null);
|
||||||
|
|
||||||
//如果微信最小化了,重新让他最小化
|
//如果微信最小化了,重新让他最小化
|
||||||
|
|
||||||
if (isIconic)
|
if (isIconic)
|
||||||
{
|
{
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(4000);
|
||||||
ShowWindow(handle, 2);
|
ShowWindow(handle, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
//休眠
|
//休眠
|
||||||
Thread.Sleep(new Random(Guid.NewGuid().GetHashCode()).Next(40000, 60000));
|
Thread.Sleep(new Random(Guid.NewGuid().GetHashCode()).Next(40000, 60000));
|
||||||
|
|
||||||
} while (true);
|
} while (true);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
Loading…
Reference in New Issue