NOTE: this is not thoroughly tested, and as such comes with a "works on my pc" warranty. If it does not work for you, you might have to wait for IvanJo to fix it (or fiddle with the code yourself and post if you find a better solution)
hope it works if not lemme know.
@IvanJo:
Since I can't create a patch, changes I made include:
@ MainForm.cs:
ln 1767: added a
below
Code:
image = GetNewBrowserImage...
ln 1395: added:
Code:
else if (IsHoliddayWinPresent(image, out coordOpenMenuClose))
{
}
ln1534: added:
Code:
private static bool IsHoliddayWinPresent(Screenshot image, out Coordinate closeButton)
{
closeButton = null;
var coords = FindCloseButton(image, 2424, 755, 20, 20);
if (coords != null)
{
closeButton = coords;
return true;
}
return false;
}
The close after image re-acquiring was required because only at that point the vacation popup was shown fully. The coords and the 20,20 were a guess and should probably be verified, I wasn't sure what start coord it required.
Cheers,