Add Color Picker to Your Macros

April 19, 2019

With a new update, you can now use Color Picker in your Macro dialogs using DialogBox_AddColorPicker function. In the past when a macro needed user input for a color, the only option was to use a text box and ask for a hex color code which is much harder for users who just want to pick a color from a set of common colors.

Color Picker control looks like this in a dialog box:

Color Picker control

When user clicks on the dropdown, the standard Windows Color Picker is displayed to allow user to pick a color:

Color Picker window

Along with the color picker, a new base type Color is added. Certain properties of objects, like fontColor or highlightColor used to be String types. They are now using the new Color type. Color type has a few advantages over the String type. If a font color of a text is red, previously doing $text.fontColor == "red" wouldn't work, you would have to use the hex format (#ff0000). Color type is smart enough to compare color names and values, therefore such comparison or assignment will now work. There is also a new Color function to create variables of type color.

Macros that used to offer a dropdown with a set of predefined colors will be updated in the coming days to use the color picker.

Update information for Macros

Another feature added in the new update is the ability to see what updates are available for an installed macro. If you are looking at the details of an installed macro in Download Macros window, you will now see which updates are available and which version you currently have installed:

Available updates

This way you can see what the new update offers and decide whether you want to update to the new version of a macro or not.

Comments

Name
Comment
Gerry - 2019-09-20
Hi.  Love the TOC macro, but I wonder if anyone else is experiencing these two issues:  

1) I use TOC in Current Page, Version 5/28/2018 for 32-bit Windows.  It (or an older version) used to replace the current TOC with an updated one.  Now it just places the TOC on top of whatever's already there.  It's manageable but a nuisance to have to deal with it everytime I want to update the TOC.  

2) The links generated in the TOC work well within my OneNote desktop version, but do not work with the on-line version (360?) of OneNote.  I have other links that I created and they work with both versions.

Am I doing something wrong?
William Cox - 2019-09-16
Anyone have a macro or any program that will allow a user to export all photos on a page to a hard drive folder
I have pages with 30-60 photos and dragging out to a folder one at a time is tedious and frustrating.
Omer Atay - 2019-09-13
Nick, read more about that here: https://getonetastic.com/blog-onenote-win-10

Other Posts

Show all posts