Thought this might come in handy. It's a method to indirectly reference a variable.
world.setvariable CStr( world.getvariable ("capture_output") ), world.getvariable ("capture_text")
What this does is take the contents of the variable "capture_text" and stores it to the variable name contained in "capture_output".
For instance, if "capture_text" = "This sentence is a test." and "capture_output" = "var_test". Then the above will set "var_test" = "This sentence is a test.". For my setup I already had the "var_test" variable defined.
world.setvariable CStr( world.getvariable ("capture_output") ), world.getvariable ("capture_text")
What this does is take the contents of the variable "capture_text" and stores it to the variable name contained in "capture_output".
For instance, if "capture_text" = "This sentence is a test." and "capture_output" = "var_test". Then the above will set "var_test" = "This sentence is a test.". For my setup I already had the "var_test" variable defined.