Passing macro output destination
I'm wondering, is there some way I can pass a control to a macro in order to use that as a parameter to direct output from within the macro?
!macro SayMessageTo MyMessageBox String
${NSD_SetText} $MyMessageBox "${String}"
!macroend
Obviously the above is invalid code, but i am looking for a way to re-use a lot of common code calls across multiple forms that will have different display controls without having to bloat lines for simple return output
So following my bad example would be something like
Function Message
!insertmacro SayMessageTo $Message1 "Hello World"
FunctionEnd
In order to get "Hello World" set to $message1 control
Is something like this possible?
Once again i think there would be a simple answer, but thanks for your help and patience