Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to have a macro call a case within a dialog
#1
Hi Gintaras,

I have a Dialog which has Button names prefixed with and & so that one can choose to use the keyboard or the mouse. But since this Dialog is also used while playing a MIDI controller I have made these keys available without having to activate the Dialog window using a separate macro for each of these keys. This way one can quickly switch scenarios during a performance, using just one finger press.

While creating this solution, two questions came up:
The code for each key is the same in the Dialog and in the associated macro, so if I change something it has to be done twice. This I could easily be solved this by calling the individual macros from the dialog, however it is so nice to have all the code in one place for an overview while editing the routines.

1-? Is there any possibility to have a macro use code from a case statement inside a Dialog?
2-? Is there a possible solution to have one macro which is triggered by different keys?

Regards,
GertC


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)