execute macros in subdirectories
-
I have quite a few macros now and I'd like to organize them in sub-directories under the macro directory. But it seems that macros only execute when selected from the main macro directory. So my wish is that macros in any directory under the macros directory execute when selected.
This is not too bad when working in DWC, but is really painful when working from PanelDue.
-
The macro directory is for code you wish to be able to execute via a DWV macro button.
For code that is only to be called from other code it is better suited for the SYS directory.
So are you speaking of code you wish to execute via a macro button? You can create sub-directories under the macro directory which will show up as a "macro" button which will allow you to navigate to the sub-directory which should display a list of macros in the sub-directory.
Frederick
-
@fcwilt - I am speaking of code I want to execute via a macro button (thanks for teaching me the proper term). And I was being a bit daft when I wrote my post. The macro in the sub-folder did show up as a macro button and I when I selected it "nothing" happened - I thought. But I just verified that the macro did execute. On PanelDue, there is no request for confirmation (like in DWC), so my macro executed without me realizing it.
My takeaway is that for my macros I'll always write a message so I know it's executing.
So to summarize - Pilot error (the best kind of SW "bug"), followed by too-quick-to-post-itis.
-
-