Local Storage for Macros
Macros can Now Remember Settings and Other Data
January 23, 2018
An update for Onetastic is available today with two new functions to read and write data on the local computer, similar to how Windows Registry works. This is called Local Storage. Data stored in Local Storage is available across multiple executions of the same macro. These new functions are:
- LocalStore_Write: Saves given key-value pair for this macro on the local computer. The value can be retrieved later using LocalStore_Read function even in a subsequent execution of this macro.
- LocalStore_Read: Reads value stored under the given key for this macro on the local computer. Returns true if the key has been found and the value is stored in the out parameter, false otherwise. The value must have been stored previously using LocalStore_Write function in either the current or a previous execution of this macro.
These can be used to save any data type other than an Object. If it is an Array, it cannot contain Objects.. The data is stored in a key-value pair store on the computer and is available from the same macro in the current or subsequent executions. See more info on how to use these functions in the documentation.
Saving Macro Settings
One very useful way to use this persistent data is to store and remember user input for subsequent executions of a macro. For instance Search & Replace macro remembers the values user entered in the dialog box so that it can present those same values when the user runs the macro again. Similarly settings in a macro, like which day of the week the calendar should start for Insert Monthly Calendar macro, can be stored and retrieved.These and a few more macros are already updated to take advantage of this. This will greatly improve usability of these macros, so that if you are using them with non-default settings, you won't have to keep changing the settings, or if you use Search & Replace multiple times with same values, you won't have to re-type them.
cela peut être interessant d'imprimer le resultat de one calendar, est-ce possible ?
merci d'avance
Thanks.
--Joe
E.g.: I have 3 notes tagged. One item is tagged as "project"; two as "to -do". I would generate three pages, i.e., one for item with a bakclink.
A workaround is crete a summary page with Find tags and then generate multiple pages with macro "Insert Subpages With Selected Paragraphs As Title". But this solution lacks backlink...
Thank you.
Is there a way to create a summary of tags with a page for a tag instead of a page including all tags?
Thank you.
However i have one request if someone can help.
Im looking for a macro that will send info directly to my Outlook Calendar that i enter into OneNote.
By this i mean i have an "Action Point" and "Date" i need to start/Complete task for myself and or customer. I can see you can assign tasks but that takes to long.
I have read a lot of info and i can get a macro to read Excel Subject and dates and convert to Outlook Calendar.
Is this macro possible possible for OneNote.
Kind Regards
This 'bug' is really annoying when working with ClassNotebooks. When distributing a page (e.g. an assessment) to the kids, it ends up below an empty untitled page. Useless.
One cannot distribute inside an empty page, nor create a section without an empty page. Is there anybody out there who can magically fix this? Would mean the world to me.
Is there a way to create dialogue boxes in OneNote via any macro's?
1. Go to page to select
2 Pin to Favorites
3.Select Manage Favorites
4. When File Explorer opens drag the desired page to the OneNote icon on the task bar.
I do not think there is any way to pin your page to the taskbar by itself, but you can pin it into the OneNote - When you right click on OneNote in the taskbar you will able to see a 'pinned items'.
Here is how to do it:
1. Simple Navigate to the page you want pinned in your File Explorer.
2. Simply drag that down into your taskbar.
I am on a Surface Pro (the new one) so my screen space is to limited to dock it to my desktop.
Any guidance would be appreciated.
Thanks!
It has not been English language after installation of Ontastic. Please informed me what is wrong.
Thanks.
Ahmad
I have a separate surface pro with separate onetastic account the same everything as above and it freezes on language page, nothing I do can make it work.
I know you said it was a Windows 10 bug below but why would it work on one and not the other? You have got to be getting this complaint all over the place. Surface Pro with Pen and Onenote is huge.
I just wanted to try the LaunchOneCalendar, but when the window that ask me to pick a language appears, the window just freeze and there is no response. I downloaded the 64Bit version (because I use a 64 Bit version of OneNote) and when I open the task manager to close the it, there appears that the name of that window is "OneCalendar (32 bit)".
Could someone tell me how to solve this problem?
That comment actually transacted.
Great!
Thank you
Is there a table of contents that is downloadable? Something that can be searched in order to find the action / process wanted? The icons are bunched up, and or, I am uncertain how it is categorized.
Also, I am REALLY tired of having to watch videos these days. Is there not a transcript of the learning / seminar sessions?
Thank you
How disappointing