Archive: Plugin and "Var" question


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"
;..

One way would be for the plugin function to put the result on the stack, then you could pop it into your custom variable.


That was my first guest, output it than StrCpy-it...


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