The GetConfig/SetConfig/SaveConfig methods are used when you want to save specific information (configuration information) for each PC that launches the browser.
The saved configuration information will be automatically loaded the next time the program is started, and can be retrieved using the GetConfig method.
The SetConfig method saves the configuration information to the filename set in the ConfigFile root property.
Example: Getting configuration information
var val1 = ::GetConfig("group1", "key1", 1000); // If not registered, the default value is set to 1000
var val2= ::GetConfig("group1", "key2", "good"); // If no registration is made, the default value will be "good"
Example: Setting configuration information
::SetConfig("gourp1", "key1", 1234);
::SetConfig("gourp1", "key2", "bad");
Example: Saving configuration information
::SaveConfig();
|