[[ M2 ]] How to take immediate effect after modified those .ini files ?
-
eeeemc last edited by
Hi ,
I always modify menu.ini or index.ini or toolbar.ini.
Is there any easier methods M2 can take effect to the change I made to the above files --> without restarting Opera ?
Thank you !
-
burnout426 Volunteer last edited by burnout426
In Opera 12, you'd goto Preferences -> Advanced -> Toolbars, switch to a different menu or toolbar setup (create dummy ones or duplicates if you don't have any extras), ok out of preferences and go in and change them back to "Opera Standard".
In the standalone Opera Mail program though, the toolbars section isn't exposed in preferences, so I don't know how you could do it.
It might work like this, but untested. In the "toolbar" folder in the profile folder, place a copy of the default standard_toolbar.ini in there and name it dummy.ini. Then, in the "menu" folder in the profile folder, place a copy of the default standard_menu.ini in there and name it dummy.ini.
If you were using those, it'd look like this in operaprefs.ini.
[User Prefs] Toolbar Configuration={SmallPreferences}toolbar/dummy.ini Menu Configuration={SmallPreferences}menu/dummy.ini
So, you might be able to create a button or menu item or shortcut that makes use of the "Set preference" command.
Something like:
Item, "Update UI"= Set preference, "UserPrefs|Menu Configuration={SmallPreferences}menu/dummy.ini" & Delay, 500 & Set preference, "UserPrefs|Toolbar Configuration={SmallPreferences}menu/dummy.ini" & Delay, 500 & Set preference, "" & Delay, 500 & Set preference, "UserPrefs|Menu Configuration=" & Delay, 500 & Set preference, "UserPrefs|Toolbar Configuration="
that would set the toolbar and menu configs to the dummy files and back to the defaults (that you've edited in the install folder).
Notes though:
-
My M2 is a standalone installation. I forget if that would be "{LargePreferences}" in a regular installation or not.
-
I don't know if {variable} is even supported for the "Set preference" command. You might have to use an actual path like "C:\Users\yourusername\AppData\Roaming\Opera..." for the dummy toolbar and menu paths.
-
I don't know if changing the menu and toolbar configurations will work with "Set preference" or not.
-
In the last 2 "Set preference" commands, there's nothing after the "=". I'm not sure if that's enough to put the configurations back to their defaults or if you have to use paths to standard_menu.ini and standard_toolbar.ini in the install folder.
-
Depending on whether you create a menu item or a toolbar button for this command, to switch the order of the "Set preference" calls in the command. For example, if you have toolbar button, change the menu configuration to the dummy ini and back first and then do the toolbar. Or, if you have it the other way around, change the toolbar configuration first and then the menu configuration.
-
You might have to have separate buttons/menu items for to update each of the configurations.
So, no solutions given above. Just some ideas to get your started in trying things out.
Another way might just be to go into preferences, change some setting (any setting at all), ok out, go back into preferences, change that setting back and ok out again. You'll have to test.
-
-
eeeemc last edited by
@burnout426 said in [[ M2 ]] How to take immediate effect after modified those .ini files ?:
In Opera 12, you'd goto Preferences -> Advanced -> Toolbars, switch to a different menu or toolbar setup (create dummy ones or duplicates if you don't have any extras), ok out of preferences and go in and change them back to "Opera Standard".
In the standalone Opera Mail program though, the toolbars section isn't exposed in preferences, so I don't know how you could do it.
It might work like this, but untested. In the "toolbar" folder in the profile folder, place a copy of the default standard_toolbar.ini in there and name it dummy.ini. Then, in the "menu" folder in the profile folder, place a copy of the default standard_menu.ini in there and name it dummy.ini.
If you were using those, it'd look like this in operaprefs.ini.
[User Prefs] Toolbar Configuration={SmallPreferences}toolbar/dummy.ini Menu Configuration={SmallPreferences}menu/dummy.ini
So, you might be able to create a button or menu item or shortcut that makes use of the "Set preference" command.
Something like:
Item, "Update UI"= Set preference, "UserPrefs|Menu Configuration={SmallPreferences}menu/dummy.ini" & Delay, 500 & Set preference, "UserPrefs|Toolbar Configuration={SmallPreferences}menu/dummy.ini" & Delay, 500 & Set preference, "" & Delay, 500 & Set preference, "UserPrefs|Menu Configuration=" & Delay, 500 & Set preference, "UserPrefs|Toolbar Configuration="
that would set the toolbar and menu configs to the dummy files and back to the defaults (that you've edited in the install folder).
Notes though:
-
My M2 is a standalone installation. I forget if that would be "{LargePreferences}" in a regular installation or not.
-
I don't know if {variable} is even supported for the "Set preference" command. You might have to use an actual path like "C:\Users\yourusername\AppData\Roaming\Opera..." for the dummy toolbar and menu paths.
-
I don't know if changing the menu and toolbar configurations will work with "Set preference" or not.
-
In the last 2 "Set preference" commands, there's nothing after the "=". I'm not sure if that's enough to put the configurations back to their defaults or if you have to use paths to standard_menu.ini and standard_toolbar.ini in the install folder.
-
Depending on whether you create a menu item or a toolbar button for this command, to switch the order of the "Set preference" calls in the command. For example, if you have toolbar button, change the menu configuration to the dummy ini and back first and then do the toolbar. Or, if you have it the other way around, change the toolbar configuration first and then the menu configuration.
-
You might have to have separate buttons/menu items for to update each of the configurations.
So, no solutions given above. Just some ideas to get your started in trying things out.
Another way might just be to go into preferences, change some setting (any setting at all), ok out, go back into preferences, change that setting back and ok out again. You'll have to test.
Oops ! Just check my Opera version is 11.52 ........... Not sure above same method to use or need another methods.
-
-
burnout426 Volunteer last edited by
@eeeemc said in [[ M2 ]] How to take immediate effect after modified those .ini files ?:
my Opera version is 11.52
Okay. The first solution I mentioned of going into settings and switching to a different config, okaying out and going back in and switching back should work then.
As for the second suggestion, I don't remember if that version supports Set preference or not. You'll have to check.