The ServiceExample run with no error but the code in While..Wend statements in main() function cannot be executed
I tested with a beep but nothing happen
While $bServiceRunning ; REQUIRED ( dont change variable name ) ; there are several ways to find that service have to be stoped - $Running flag in loop is the first method
#region --> insert your running code here
Beep(500,1000)
Sleep(10)
#endregion --> insert your running code here
WEnd