Tutorial

Getting Started with Macros

Macro Editor

User Interface

Menus and Toolbar

Editing Macro Statements

Expression Editor

Macro Debugging

How To

Using variables

Finding and modifying objects

Creating new page content

Asking for user input

Storing persistent data

Sorting objects

Sample Macros

Concepts

Expressions

Objects

Properties

Variables

Data Types

Arrays

Functions

Literals

Operators

Comments

Color

Creates a variable of type Color.

Syntax

Color Color(
	String value)

Parameters

String value

The color value. Following string values are accepted:

#rrggbb: Red, green and blue values specified in lowercase hexadecimal (0-9, a-f)

#RRGGBB: Red, green and blue values specified in uppercase hexadecimal (0-9, A-F)

Predefined color names:

AliceBlue #F0F8FF LightSalmon #FFA07A
AntiqueWhite #FAEBD7 LightSeaGreen #20B2AA
Aqua #00FFFF LightSkyBlue #87CEFA
Aquamarine #7FFFD4 LightSlateGray #778899
Azure #F0FFFF LightSteelBlue #B0C4DE
Beige #F5F5DC LightYellow #FFFFE0
Bisque #FFE4C4 Lime #00FF00
Black #000000 LimeGreen #32CD32
BlanchedAlmond #FFEBCD Linen #FAF0E6
Blue #0000FF Magenta #FF00FF
BlueViolet #8A2BE2 Maroon #800000
Brown #A52A2A MediumAquamarine #66CDAA
BurlyWood #DEB887 MediumBlue #0000CD
CadetBlue #5F9EA0 MediumOrchid #BA55D3
Chartreuse #7FFF00 MediumPurple #9370DB
Chocolate #D2691E MediumSeaGreen #3CB371
Coral #FF7F50 MediumSlateBlue #7B68EE
CornflowerBlue #6495ED MediumSpringGreen #00FA9A
Cornsilk #FFF8DC MediumTurquoise #48D1CC
Crimson #DC143C MediumVioletRed #C71585
Cyan #00FFFF MidnightBlue #191970
DarkBlue #00008B MintCream #F5FFFA
DarkCyan #008B8B MistyRose #FFE4E1
DarkGoldenrod #B8860B Moccasin #FFE4B5
DarkGray #A9A9A9 NavajoWhite #FFDEAD
DarkGreen #006400 Navy #000080
DarkKhaki #BDB76B OldLace #FDF5E6
DarkMagenta #8B008B Olive #808000
DarkOliveGreen #556B2F OliveDrab #6B8E23
DarkOrange #FF8C00 Orange #FFA500
DarkOrchid #9932CC OrangeRed #FF4500
DarkRed #8B0000 Orchid #DA70D6
DarkSalmon #E9967A PaleGoldenrod #EEE8AA
DarkSeaGreen #8FBC8B PaleGreen #98FB98
DarkSlateBlue #483D8B PaleTurquoise #AFEEEE
DarkSlateGray #2F4F4F PaleVioletRed #DB7093
DarkTurquoise #00CED1 PapayaWhip #FFEFD5
DarkViolet #9400D3 PeachPuff #FFDAB9
DeepPink #FF1493 Peru #CD853F
DeepSkyBlue #00BFFF Pink #FFC0CB
DimGray #696969 Plum #DDA0DD
DodgerBlue #1E90FF PowderBlue #B0E0E6
Firebrick #B22222 Purple #800080
FloralWhite #FFFAF0 Red #FF0000
ForestGreen #228B22 RosyBrown #BC8F8F
Fuchsia #FF00FF RoyalBlue #4169E1
Gainsboro #DCDCDC SaddleBrown #8B4513
GhostWhite #F8F8FF Salmon #FA8072
Gold #FFD700 SandyBrown #F4A460
Goldenrod #DAA520 SeaGreen #2E8B57
Gray #808080 SeaShell #FFF5EE
Green #008000 Sienna #A0522D
GreenYellow #ADFF2F Silver #C0C0C0
Honeydew #F0FFF0 SkyBlue #87CEEB
HotPink #FF69B4 SlateBlue #6A5ACD
IndianRed #CD5C5C SlateGray #708090
Indigo #4B0082 Snow #FFFAFA
Ivory #FFFFF0 SpringGreen #00FF7F
Khaki #F0E68C SteelBlue #4682B4
Lavender #E6E6FA Tan #D2B48C
LavenderBlush #FFF0F5 Teal #008080
LawnGreen #7CFC00 Thistle #D8BFD8
LemonChiffon #FFFACD Tomato #FF6347
LightBlue #ADD8E6 Turquoise #40E0D0
LightCoral #F08080 Violet #EE82EE
LightCyan #E0FFFF Wheat #F5DEB3
LightGoldenrodYellow#FAFAD2 White #FFFFFF
LightGray #D3D3D3 WhiteSmoke #F5F5F5
LightGreen #90EE90 Yellow #FFFF00
LightPink #FFB6C1 YellowGreen #9ACD32
.

Examples

$color1 = Color("yellow") $color1 == "#ffff00" // True $color2 = Color("#6A5ACD") $color2 == "#6a5acd" // True $color2 == "SlateBlue" // True $color2 == "SpringGreen" // False

Reference

Statements

ForEach

If

Else

While

Expression

Comment

Break

Continue

Return

Hierarchy Objects

NotebookRoot

Notebook

SectionGroup

Section

Page

Page Objects

Title

Outline

Table

Column

Row

Cell

Paragraph

Text

Image

EmbeddedFile

Tag

Other Objects

DialogBox

Functions

Array Functions

Color Functions

Data Store Functions

Date/Time Functions

Dialog Box Functions

Macro Execution Functions

Object Functions

String Functions