a2 icon indicating copy to clipboard operation
a2 copied to clipboard

Make Path element accept %VARIABLES%

Open ewerybody opened this issue 9 years ago • 5 comments

Expected Behavior

  • [ ] When adding an environment variable name %COMPUTERNAME% -
  • [ ] When adding a built-in Autohotkey variable name %A_ComputerName% -

... into a path it ends up with the value filled in in the a2 runtime.

Do we need both? Are there conflicts?

ewerybody avatar Nov 10 '16 18:11 ewerybody

I implemented a helper function ExpandPathPlaceholders. This allows ahk modules to expand a predefined set of A_ variables and all environmental variables.

I believe this solves this issue. Do you agree, @ewerybody ?

lipkau avatar Dec 09 '16 16:12 lipkau

Hmm I dunno. I still think that this has some value for the Path Element. We could actually have a module relative variable with the module name or such.

ewerybody avatar Dec 09 '16 16:12 ewerybody

I think that is up for the module dev to define. it isn't needed in most cases.

I for example have created static properties of the module's class with the moduleName and modulePath

lipkau avatar Dec 09 '16 16:12 lipkau

related: #120

lipkau avatar Dec 09 '16 17:12 lipkau

Ok. This should also be available for hotkeys. With preselection help menu.

ewerybody avatar Nov 23 '21 23:11 ewerybody