-
Notifications
You must be signed in to change notification settings - Fork 173
Description
Not sure whether this still applies here. With older versions I often got the following error message after logon if T-Clock was configured to start immediately at logon:
"Failed to customize clock"
This happened when the logon took longer than usual and the desktop might have been started after the autorun programs. I assume that T-Clock tries to find the taskbar window once and will fail if it's not there. If that's still the case, I'd suggest a retry loop for some time (maybe one or two minutes) before showing the error message and failing. A simple loop calling Sleep(1000)
should be enough.
I helped myself by not using autorun but a scheduled task which allows me to set a start delay of 15...30 seconds. This usually works but it's not the common way to autorun programs.
For a worry-free installer (see #23) I'd not recommend such complex things as scheduled tasks. Instead the built-in autorun feature should be used. To make that robust, this retry loop would be needed.