'how to assign specific time pop up message in uipath with message box

I want to use message box as good morning message at 8:00 everyday but I couldnt assign the time interval. Can anyone help me to assign specicif time in uipath for message box



Solution 1:[1]

A couple of options:

While Loop

Rather than a delay you could use a while loop to check the time.

So your sequence would be

While Date.Now.Hour <> 8
End While

Message Box "Good Morning"

While Loop

Obviously doing this you won't be able to do anything while the loop is running so isn't really going to work properly

While Loop in Parallel

The benefit this has over the above solution is that it can run while something else is running too

Parallel
  While True
    If Date.Now.Hour = 8
      Message Box "Good Morning"
    End If
  End While
End Parallel

While Loop in Parallel

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Conor