Skip to content
⌘ NSIS Forum Archive

Plugin and "Var" question

4 posts

Joel#

Plugin and "Var" question

How can I use the user custom var to output values, for example:

Var "MY_VAR"
;..
Plugin::Function "some_input" $MY_VAR
MessageBox MB_OK "Here's your returned value: $MY_VAR"
;..
iceman_k#
One way would be for the plugin function to put the result on the stack, then you could pop it into your custom variable.
Vytautas#
Does the code in your first post not work?

You cannot, yet, access user define variables directly from the plugin, but you can pop/push them to the stack and you don't need to StrCpy them defore yuo can use them as "pop $MY_VAR" works quite well.

Vytautas