Page 1 of 2
Reload ini files without restart TC
Posted: 2009-05-17, 06:44 UTC
by Mikefield
I'm sure it was requested and discussed in the old 7.0 beta time, but I didn't found it,
and I have no notice about the result. So I suggest here again:
Please add the function in TC to reload the ini files after manual changes on these.
This solves the behavior to restart the TC every time after small changes on the ini files.
mf
Posted: 2009-05-17, 07:06 UTC
by Boofo
Support++
I would also like to see support added for reloading plugins, too.
Posted: 2009-05-17, 09:28 UTC
by HolgerK
I'm sure it was requested and discussed in the old 7.0 beta time, but I didn't found it,
TC(English): Reload wincmd.ini?
.. support added for reloading plugins ..
cm_UnloadPlugins ?
Regards
Holger
Posted: 2009-05-17, 09:41 UTC
by Boofo
Yes, but it would be nicer to have an internal command for the restart.
Oh YES !
Posted: 2009-05-17, 16:38 UTC
by Clo
2
Boofo

Hi Bob !
Yes, but it would be nicer to have an internal command for the restart.
• Of course, I agree and support that way to solve the issue !

KR
Claude
Clo
Posted: 2009-05-17, 16:57 UTC
by Boofo
Thanks Clo!
<OT>Happy belated birthday, my friend!</OT>
Posted: 2009-05-17, 17:06 UTC
by Mikefield
2
HolgerK Thanks for clarifying it and post the link.
Now I made my first expiriences with em_usercmd and I got it to work with ReloadTC.
2
Claude Thanks to support it!
mf
Posted: 2009-05-17, 17:17 UTC
by Boofo
Care to share how you did it?

Posted: 2009-05-17, 17:47 UTC
by Mikefield
Of course! I add it as a seperate button in the main menu -> configuration.
But you can also add it to the button bar.
1st edit the usercmd.ini and add following entry (the directories are dependend from your installation):
Code: Select all
[em_usercmd609]
menu=Restart TC
cmd=ReloadTC.exe
button=D:\Util\Viewer\WinCmd\Plugins\Util\ReloadTC\ReloadTC.exe
path=%COMMANDER_PATH%\Plugins\Util\ReloadTC
2nd Edit your used menu file i.e. WCMD_ENG.MNU and add following in the Configuration section:
Code: Select all
MENUITEM SEPARATOR
MENUITEM "Restart TC", em_usercmd609
Now, restart TC.
If you want, you can add it to the button bar, then skip 2nd. In button bar you can also show
the icon, in the menu it isn't shown. See also
here.
You have to add a new button, then select the loupe on the end of the command line
and then go down on the left side of the new window and select the usercmd.ini.
Then you will find the commands are in it. Select it, press OK, and then it's working.
It's harder to describe it as it to do.
Hint: For 2nd you can use the Main Menu Editor from the Ultra TC Editors.
mf
Posted: 2009-05-17, 18:01 UTC
by Boofo
I already had it in the button bar, but I went the long route for that. This is much easier. I didn't have a usercmd.ini file before now, it seems.
How do you figure out which identifier to use (the 609)? And where would be the best place to add it in the menu? I use Pertermad's Extended Menu set.
Posted: 2009-05-17, 18:10 UTC
by Mikefield
The 609 is only a phantom number you can use any number you want, i.e 501 if you like these jeans.
For me it's the 6th menu and the 9th entry in it. I'm an Prussian and all must have his accurateness. lol
As I have a button to edit the wincmd.ini also in the configuration section, so it make sence to place the
restart button there too.
Code: Select all
[em_usercmd603]
Menu=wincmd.ini editieren
cmd=Notepad.exe %COMMANDER_INI%
button=D:\Util\Viewer\WinCmd\WCMICONS.DLL,28
I didn't use the extended menu set, it's to overloaded for me.
mf
Posted: 2009-05-17, 18:27 UTC
by Boofo
I ended up putting it in the Help menu as the last item. What is the 6th menu and 8th item for you then? What range of numbers can we use and not screw anything else up?
And thank you for all the help. This is slick!

Posted: 2009-05-17, 18:33 UTC
by Mikefield
The 6th menu is the coniguration menu:
1st Files
2nd Mark
3rd Commands
4th Net
5th Show
6th Configuration
7th Start
8th Help
The 8th Item is the Separator:
Code: Select all
POPUP "&Konfigurieren"
MENUITEM "&Einstellungen...", cm_config
MENUITEM "B&uttonbar ändern...", cm_ButtonConfig
MENUITEM "&Wincmd.ini editieren", em_usercmd603
MENUITEM "&Usercmd.ini editieren", em_usercmd604
MENUITEM "Einstellungs&dateien direkt ändern...", 581
MENUITEM "P&osition speichern", cm_configSavepos
MENUITEM "Einstellungen &speichern", 580
MENUITEM SEPARATOR
MENUITEM "Restart TC", em_usercmd609
END_POPUP
mf
Posted: 2009-05-17, 19:03 UTC
by Boofo
So, you have that as a separate drop down then?
Posted: 2009-05-17, 19:43 UTC
by Mikefield
Not really, it's an addition to the standard configuration menu, please have a
look.
mf