Attachmate Worldwide  |   Contact Us  |   NetIQ.com
Home » Support » Solution Library

Technical Notes

Reflection Macro Recorder Supports .NET
Technical Note 1809
Last Reviewed 09-May-2005
Applies To
Reflection Windows-based Products version 12.0 through 14.x
Summary

The Reflection Macro Recorder supports .NET. You can use the recorder to record scripts in C# and VB.NET, copy the text to a clipboard, and paste the code in a code editor.

Recording .NET Syntax

The Reflection script recorder allows you to select VB.NET and C# syntax for recorded scripts (in addition to support for VB and VBA syntax). Commands are recorded to the Windows clipboard. You can paste the resulting code directly to your code editor.

To record commands

  1. Click Macro > Start Recording.
  2. Perform the actions that you want to record.
  3. Click Macro > Stop Recording. This opens the Stop Recording dialog box.
  4. In the Stop Recording dialog box, select Clipboard from the Destination drop-down menu. The Clipboard options group box displays.
  5. In the Syntax drop-down menu, select the appropriate syntax, VB.NET Source or C# Source.
  6. Optional: If you choose, you can enter a value for Function (or use the default). Also, you can select the Include object prologue check box so that the recorded code includes Sub and End Sub statements for VB.NET, or, for C#, a function declaration.
  7. Click OK.
  8. Open your code editor and paste in the recorded code.
Related Technical Notes
2183 Developer Tools for Attachmate Products
9993 Index of Reflection Scripting Technical Notes

Did this technical note answer your question?

Yes    No    Somewhat     Not sure yet

Additional comments about this tech note:

Need further help? For technical support, please contact Support.