Compartilhar via


Macros and Add-ins (Windows CE 5.0)

Send Feedback

In the Platform Builder integrated development environment (IDE), you perform many tasks manually. For example, you use menu commands to open workspaces, change source code files, save changes to these files, and then rebuild applications that use the files.

If your tasks are routine or repetitive, you can benefit from automating them. Automation reduces the time spent on these tasks, and can help you prevent errors that often result from performing the tasks manually.

Macros and add-ins let you perform tasks by manipulating objects in the IDE. For example, you open, edit, and close a document by manipulating it as an object. Similarly, you activate or size a window by manipulating it as an object.

An object can be a single object in the IDE, or it can represent a collection of related objects. For example, a Document object represents one open document, whereas the Documents object represents all open documents.

Similarly, a Window object represents one open window, whereas the Windows object represents all open windows. The Documents and Windows objects are called collection objects because they include collections of related objects.

You manipulate objects by using methods, properties, and events associated with the objects. Methods represent actions you take against the objects. Properties represent characteristics of the objects, such as their type or size. In addition, events represent conditions under which actions are taken against the objects.

You can use Microsoft® Visual Basic® Scripting Edition (VBScript) programming language macros to simplify your work in the IDE. VBScript macros are procedures that you write by using the VBScript language. You can use these macros to combine several commands, speed up routine editing, or automate a complex series of tasks

You can use Platform Builder add-ins to automate routine tasks in the IDE. For example, you can update a workspace by automatically opening the workspace, changing some workspace files, saving the changes, and then rebuilding the workspace.

With add-ins, you automate tasks by adding commands to the IDE. Each add-in can add one or more commands, and each command can perform one or more tasks. The number of commands and tasks is up to you.

Optionally, add-ins can provide toolbar buttons and key sequences to carry out their commands. Without buttons or key sequences, however, you must carry out the commands from the command line.

See Also

Differences Between Macros and Add-ins | Macro Implementation | Renaming a Macro | Deleting a Macro | Writing a Macro Manually | Editing a Macro | Installing a Macro File | Assigning a Macro to a Toolbar Button | Assigning a Macro to a Key Sequence | Add-in Implementation | Creating Platform Builder Add-ins Using Visual C++

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.