Macros that I created for the Onetastic add-in for Microsoft OneNote.
Last active
September 15, 2020 18:29
-
-
Save CodeCharm/97c69914cc5c4c129801e65b03a9fd9c to your computer and use it in GitHub Desktop.
Onetastic Macros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-16"?> | |
<Macro id="M285D04693B3542ADA8FCF9B77483028F" name="Automatic Color" category="Color" description="" version="25"> | |
<Metadata lastModifiedDate="2020-08-05T03:36:33.000Z" /> | |
<Expression>$selectedTextSectionsCount = 0</Expression> | |
<Expression>$sIndex = 0</Expression> | |
<Expression>$allTextSections = QueryObjects("Text", GetCurrentPage())</Expression> | |
<ForEach var="TextSection"> | |
<Array>$allTextSections</Array> | |
<If> | |
<Condition>$TextSection.selected</Condition> | |
<Expression>$selectedTextSectionsCount = ($selectedTextSectionsCount + 1)</Expression> | |
</If> | |
</ForEach> | |
<ForEach var="TextSection"> | |
<Array>$allTextSections</Array> | |
<Expression>$sIndex = ($sIndex + 1)</Expression> | |
<If> | |
<Condition>$TextSection.selected</Condition> | |
<Expression>$TextSection.fontColor = "#000000"</Expression> | |
<Expression>$TextSection.highlightColor = "automatic"</Expression> | |
</If> | |
</ForEach> | |
</Macro> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
< |