PreviousNext
Help > Installation > Installation as "Windows Service" > Dialog boxes with "Windows Service" mode > Combining DialogClass_<n>, DialogTitle_<n> and MsgBoxText_<n>
Combining DialogClass_<n>, DialogTitle_<n> and MsgBoxText_<n>

A class name is often the same for several boxes, therefore we may want to define a default behavior for a given class and refine (handle "exceptions") by the title.

To handle this possibility LAUNCHER Office manages the options with the following order of priority:

1) MsgBoxText_<n>: the highest priority

2) DialogTitle_<n>

3) DialogClass_<n>: the lowest priority

 

For example, if you put in the launcher.ini file:

 

[ServiceDialogs]
DialogClass_1=bosa_sdm_Microsoft Word 9.0
DialogClassAction_=Keep

DialogTitle_1=Save As
DialogTitleAction_1=Validate

MsgBoxText_1=Do you want to save the changes
MsgBoxActionNum_1=2

This means that if a dialog box has the class "bosa_sdm_Microsoft Word 9.0", it will be kept unless the title is "Save As". In which case it is validated.

Unless this is a message box whose text begins with "Do you want to save the changes" in which case the 2 button is selected.