IDE Window: Editor Macros/de

From Lazarus wiki
Jump to navigationJump to search

Deutsch (de) English (en) русский (ru)

  • Lazarus 1.0 unterstützt nur Makros via Tastatur
  • Das Editormakros-Fenster ist nicht verfügbar in Lazarus 1.0. Es ist nur verfügbar in der Entwicklerversion (SVN bzw. trunk snapshots).

Editormakros

Editor macros.png

Lazarus allows you to record any amount of macros. Using the Editor Macro window you can select which macro is currently used. You can also save macros by moving them to the project session, or the IDE config.

Anzeige

Die Makros werden in 3 Gruppen angezeigt:

Recorded
Zeigt kürzlich aufgezeichnete Makros. Diese Makros wurden (noch) nicht gespeichert und gehen verloren, wenn die IDE geschlossen wird.
Projekt
Shows macros that are saved with the project session. Each project can have it's own set of macros.
If the project is configured not to save a session, then macros in this group are not saved, and will be lost when the project is closed.
IDE
Zeigt Makros, die mit der IDE-Konfiguration gespeichert wurden. Diese Makros sind in allen Projekten verfügbar.

Makros können verschoben werden zwischen Projekt und IDE.

Makros können ein Status-Icon haben:

Editor macros current.png
Aktuelles Makro. This can be set using the "Select" button. This is the macro that is played, if using the keyboard shortcut.
Editor macros rec.png
Dieses Makro wird gerade aufgezeichnet.
Editor macros play.png
This macro is currently playing.
Editor macros broken.png
Broken macro. This indicates that the macro could not be loaded from the config. The macro can not be used. (It will be kept (in it's broken form) in the config)

Interface

Auswählen
Set current macro which will be used by the keyboard shortcut.
The Play button is not affected by this.
Rename...
benennt das Makro um.
Löschen
löscht das Makro.
Play
Play the selected macro. This is the macro selected by clicking the list. Not the "current" macro.
Repeat
Set how often the macro is played. Only affects the play button. The keyboard shortcut is not affected.
Record
Zeichnet ein neues Makro auf.
Während der Aufzeichnung erlaubt dieser Button das Anhalten/Fortsetzen der Aufzeichnung.
Wenn etwas aufgezeichnet wurde, dann wird das neue Makro als "aktuelles" Makro gesetzt.
Stop
Beendet die Aufzeichnung. The button also allows to stop repeated play. (in certain circumstances, it is possible to stop in the middle of a playing macro)
Move to
Project/IDE: Verschiebt das ausgewählte Makro in die angegebene Gruppe.

Using macros by keyboard

By Default the following 2 key shortcuts are set up:

  • Shift+Strg+P Play the current macro
  • Shift+Strg+R Start/Stop recording a new macro
During recording, the shortcut for play can be used to pause recording

Einschränkungen

  • A macro can only be recorded from a single editor.
    A macro can be played against any editor afterwards. But only to one editor at a time.
  • Macros only record commands issued by keyboard, and certain menus.
    Changes by mouse (moving caret, selecting text) are not recorded.
  • Die Makros sind beschränkt auf den Editor. Aktionen im Formulardesigner können nicht aufgezeichnet werden.
  • Recording actions that are not editing text may sometimes be possible, but is not supported, and playback may not render the desired effects. E.g. It is possible to record stepping in the debugger (F7,F8,F9), but if played back some of the commands may be skipped at random