Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Is there a way to sleep until specific time? Example schedule a task or a function to run at midnight every day.
Heres a function that returns how many milliseconds to midnight, so it will sleep to midnight, you can then add in what to do at midnight
https://pastebin.com/raw/pjcWHpbj
@caplaz You can also use BAS command line interface with any scheduler. https://wiki.bablosoft.com/doku.php?id=how_to_schedule_bas_script
So these projects work for a few days, and then problems appear, right? Please attach a test project with which you can repeat the problem, here or in the forum PM.
https://support.microsoft.com/en-us/windows/add-an-app-to-run-automatically-at-startup-in-windows-10-150da165-dcd9-7230-517b-cf3c295d89dd