This project is read-only.

Record/Stop/Play Macro

May 23, 2008 at 12:38 AM
Edited May 28, 2008 at 11:51 PM
Has anyone ever gotten macro working?

I am trying to record a set of macro for keystrokes.  For example, I want to record the following:

Hello world <cr>

I stream the messages from SCN_MACRORECORD to a file, storing only the message (string), wParam(int) and lParam(int).  When it comes to play the macro, I just stream it back and call SendMessageDirect from the scintilla interface.  However instead of getting "Hello world <cr>". I get a bunch of unicode characters.  Am I doing this correct?

Any hints would be appreciated.