openmolecules.org

 
Home » DataWarrior » Functionality » showing variable txt/values at "showMessage" macros (Trying to show variable txt/values to follow up WP macro code designs)
Re: showing variable txt/values at "showMessage" macros [message #1886 is a reply to message #1880] Sat, 29 April 2023 14:44 Go to previous messageGo to previous message
thomas is currently offline  thomas
Messages: 715
Registered: June 2014
Senior Member
There is a simple answer: The 'ShowMessage' task did not do any variable resolution, yet.
In fact, variables are not resolved everywhere. I have built the resolution into various
tasks, where it makes sense, but unfortunately, it is not complete nor consistent yet.
I just added it to the ShowMessage task. Thus, after updating, the following macro will work:

<macro name="Savenombre">
<task name="defineVariable">
name=filename
message= type your name, please....
</task>
<task name="showMessage">
message=$filename
</task>
</macro>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Search for "any atom" in structure editor
Next Topic: Add reaction from structure
Goto Forum:
  


Current Time: Fri Nov 22 10:46:14 CET 2024

Total time taken to generate the page: 0.04016 seconds