Werner Messages: 234 Registered: May 2006 Location: Cologne / Germany
Experienced Member
"TheIDE help / macros" reads:
Quote:
... .usc files can be either part of regular packages or are placed in Common or Local directory. ...
If I understand the code correctly, "Local directory" means a directory named "UppLocal" and residing in the directory containing the TheIDE program file (commonly ".../upp") which has to be manually created.
Obviously, UppLocal is to hold custom data. This should lead to its persistence. But whenever a fresh Ultimate++ version is installed via the respective .exe file, this directory is deleted.
Bug, feature, or my personal misinterpretation of UppLocal's purpose?
... .usc files can be either part of regular packages or are placed in Common or Local directory. ...
If I understand the code correctly, "Local directory" means a directory named "UppLocal" and residing in the directory containing the TheIDE program file (commonly ".../upp") which has to be manually created.
I understand it that you can place it in any local (= non default) directory (=package) whereever you create it. As you say C:\upp doesn't make much sense because it is deleted each time you update.
so eg D:\MyApps\myPackage would be a local dir at the "SetMainPackage" Screen just add a new assamly (right click on the left column) and point it to D:\MyApps. They won't be deleted and you can add .usc files to your packages as much as you want.
Werner Messages: 234 Registered: May 2006 Location: Cologne / Germany
Experienced Member
fallingdutch wrote on Sun, 26 November 2006 19:50
I understand it that you can place it in any local (= non default) directory (=package) whereever you create it. As you say C:\upp doesn't make much sense because it is deleted each time you update.
so eg D:\MyApps\myPackage would be a local dir at the "SetMainPackage" Screen just add a new assamly (right click on the left column) and point it to D:\MyApps. They won't be deleted and you can add .usc files to your packages as much as you want.
You are absolutely right!
Unfortunately that's not the problem ...
I want to use my .usc files for macros. If you have an .usc file only in one of your packages, the Macro menu doesn't show up. And if it showed up, it would be useful only if I worked on exactly this package.
But I want to write macros which are _always_ available.
I want to use my .usc files for macros. If you have an .usc file only in one of your packages, the Macro menu doesn't show up. And if it showed up, it would be useful only if I worked on exactly this package.
But I want to write macros which are _always_ available.
Now i understand your problem, Werner
just looked throught the code, as you did, too, i guess. But was unable to find a path where TheIDE looks for UscMacros.
I hope Mirek will tell us
I don't know how special your macros are, but what about adding them to the "programs written with upp" part of the forum so all of us can use it and maybee we get some more helpfull macros?
Werner Messages: 234 Registered: May 2006 Location: Cologne / Germany
Experienced Member
fallingdutch wrote on Mon, 27 November 2006 07:37
But was unable to find a path where TheIDE looks for UscMacros.
I hope Mirek will tell us
I don't know how special your macros are, but what about adding them to the "programs written with upp" part of the forum so all of us can use it and maybee we get some more helpfull macros?
Bas
As far as macros are concerned, TheIDE looks into "Common" and "UppLocal". The latter is hard-coded. It must exist in the directory where the "TheIDE" program file resides.
It is basically an excellent idea to have one's own custom directory. It's just that a new installation might delete it.
As far as _my_ macros are concerned, I'm actually working on a macro tutorial. (That's the reason for this thread.) This tutorial will include some useful macros, I hope. But please, be patient. Currently I'm heavily testing two UPTs which I intend to publish soon. Maybe another UPT will follow up. And only then the macro tutorial will be ready to be published.
oh yes ... that is a drawback of windows ... when using linux you have the .theide folder in your home directory where these files are stored and not deleted upon update.