I need my bot to be triggered at a certain time in a day (including miliseconds). For example, i want my bot to wait until its 12:00:00:300 AM and then trigger itself.
I saw some other topics which included delay until activity but i cant seem to find such an activity.
Could you please help me?
Thanks a lot!
Even though you wanted to trigger a bot at specific time which is in milliseconds, it will never triggered exactly on same time, there will be a delay because of many reason i.e. Network Lag, System performance issue, unavailability of processing units or other reasons.
3.Even still it is required, I would prefer using a trigger by a bot for this bot using timer.interval
Thank you guys for answering.
I know bot will have a small lag but i dont mind as long as its around 30-50 miliseconds. But of course depends on many variables.
But for me rn it is worth trying to find a solution. For example, when it is lets say 12:00:05:300 PM I want my bot to click on some web page elements. Therefore, could you please explain more what you meant by timer.interval?
Well for this particular case, you can keep running your bot 24 * 7 in a while loop with a if condition where condition will be
IF now.ToString("hh:mm:ss.fff")=12:00:05.300
Then
Perform click.