[SOLVED] SynEdit - How use macro lazarus / 13-General ---------------------------------------------------------------------- bubulemaster · 2009-08-31 18:56 Hi, I continue my french documentation about Lazarus's SynEdit component. I try use SynMacroRecorder component but how use it ? How record (by defaut Shift+Ctrl+R I think) ? How stop ? How save ? Do you know where I can find example ? Thank you ---------------------------------------------------------------------- Martin_fr · 2009-08-31 21:51 I haven't looked at SymMacroRecorder before. From a quick exploration, it defines only 2 keyboard-shortcuts. That happens in   constructor TCustomSynMacroRecorder.Create(aOwner: TComponent);     fShortCuts[mcRecord] := Menus.ShortCut( Ord('R'), [ssCtrl, ssShift] );     fShortCuts[mcPlayback] := Menus.ShortCut( Ord('P'), [ssCtrl, ssShift] ); look at   procedure TCustomSynMacroRecorder.OnCommand(Sender: TObject; to see how they are used. While recording: - pressing the playback command will pause/resume - pressing the record command will end recording. Afaik the save and load methods will have to be called by the application. There seems to be no automatic way to save. ---------------------------------------------------------------------- bubulemaster · 2009-09-01 18:59 It's very easy. To start recording press Shift+Ctrl+R Stop recording SynMacroRecorder1.Stop; Replay recording press Shift+Ctrl+P Thank you