Page 1 of 1
Automatically saving last loaded recipe.
Posted: Wed Jun 05, 2013 3:29 am
by jydepower
Hallo.
The action save recipe has 2 sub menus. 1. where OP has to choose a recipe. And 2. where i choose the RecipeTitle upfront.
Is it possible by scripting to save to the last loaded recipe. Like in option 2.
So OP only needs to say yes or no to save.
Re: Automatically saving last loaded recipe.
Posted: Wed Jun 05, 2013 3:14 pm
by mark.monroe
Yes, you can create your own recipe dialog. See this
forum post that contains an example.
Re: Automatically saving last loaded recipe.
Posted: Thu Jun 06, 2013 3:15 pm
by jydepower
Thanks for your reply.
I don't think this is exactly what im looking for.
Basically i want to automatically save/overwrite the last loaded recipe with the current loaded values. I want the OP to avoid choosing from a list, to avoid overwriting another one. How do i find the script commands that fires when you normally use the save dialog?
Re: Automatically saving last loaded recipe.
Posted: Fri Jun 07, 2013 8:05 am
by mark.monroe
On screen two there is a script associated with the button on the screen. That allows you to dynamically load a recipe. You can use the function Globals.Recipe1.SaveRecipe to save the recipe. Saving a recipe will save the values that are loaded in the tags associated to the recipe.
Re: Automatically saving last loaded recipe.
Posted: Mon Jun 24, 2013 1:13 pm
by jydepower
Problem is when i use the Globals.Recipe.SaveRecipe function it opens the save recipe popup window. And there i have to choose a recipe again. I want to save it directly like you do with the load function.
Re: Automatically saving last loaded recipe.
Posted: Tue Jun 25, 2013 8:57 am
by mark.monroe
The Globals.Recipe1.SaveRecipe function has an overload where you can place the name of the recipe you want to save. So you can do this: Globals.Recipe1.SaveRecipe("MyRecipeName"). Since all recipes have to have names, if you do not pass a recipe name to the function it will ask you for one.