Start/Stop service does not show progress message
Hi.
The "Stop Service" and "Start Service" are working just fine. But the Progress Dialog is not updated with status text showing when it is stopping and starting the service.
I have noted that there are (x)_PROG_ACTION46 and (x)_PROG_ACTION47 Text resources in the Progress/Misc Progress group. So I think this is a bug?
Re: Start/Stop service does not show progress message
Hello,
No, this is not a bug. You can display it (if you want) using the "Progress Dialog: Status Text" script function.
HTH,
Friedrich
Re: Start/Stop service does not show progress message
Okay I see. but why are the Progress Text messages in the Text resources not for the SB8 runtime to use?
If I understand you correctly I can use this to stop the service
Code:
Progress Dialog: Set Status Text #1 to "#PROG_ACTION47#"
Progress Dialog: Set Status Text #2 to "Spawnerservice"
Stop Service "Spawnerservice"
Progress Dialog: Set Status Text #1 to ""
Progress Dialog: Set Status Text #2 to ""
and this to start the service
Code:
Progress Dialog: Set Status Text #1 to "#PROG_ACTION46#"
Progress Dialog: Set Status Text #2 to "Spawnerservice"
Start Service "Spawnerservice"
Progress Dialog: Set Status Text #1 to ""
Progress Dialog: Set Status Text #2 to ""
Re: Start/Stop service does not show progress message
Yes, what you do is correct.
BTW, it would be a very bad idea to let the runtime display all the operations automatically. It would result in a "flicker nightmare". Quite a few developers have to replace files, install files, check services, stop services, doing the service checks in a LOOP with Sleep delays (to be on the safe side), etc. from the script. Sometimes the operations take 1/10 second, sometimes longer. So if you would like to display a progress text for an operation that might take some time you can display it programmatically. Otherwise, it's not worth it to display the text at all.
Friedrich