V Vincenzo Member Licensed User Longtime User Oct 6, 2013 #1 to start my program I run my service: StartService (MyService) the service will operate every hour for his work. But if I close my app and re open the program runs again "StartService (MyService)" and starts the service before time-out! You can check if the service is active so you do not have to run. a guy thing.... if StatusServiceOn (MyService) = false then StartService (MyService) end if
to start my program I run my service: StartService (MyService) the service will operate every hour for his work. But if I close my app and re open the program runs again "StartService (MyService)" and starts the service before time-out! You can check if the service is active so you do not have to run. a guy thing.... if StatusServiceOn (MyService) = false then StartService (MyService) end if
NJDude Expert Licensed User Longtime User Oct 6, 2013 #2 What you should do is to use StartServiceAt Upvote 0
V Vincenzo Member Licensed User Longtime User Oct 6, 2013 #3 for my case is not good. if the service is not running, start it now is fine, but if the service is active, you should not restart it. Upvote 0
for my case is not good. if the service is not running, start it now is fine, but if the service is active, you should not restart it.
Erel B4X founder Staff member Licensed User Longtime User Oct 7, 2013 #4 Code: Copy If IsPaused(MyService) Then ... Upvote 0
V Vincenzo Member Licensed User Longtime User Oct 8, 2013 #5 hi Erel, thanks for this info. And what I wanted. Upvote 0
imgsimonebiliato Well-Known Member Licensed User Longtime User Oct 15, 2014 #6 Vincenzo said: hi Erel, thanks for this info. And what I wanted. Click to expand... Hello, please can you post some code to example? Upvote 0
Vincenzo said: hi Erel, thanks for this info. And what I wanted. Click to expand... Hello, please can you post some code to example?
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2014 #7 This is an old thread. Please start a new thread for your question. Upvote 0