I'm trying to build macro recording into the Scintilla Class/ActiveX I've been working on.

I'm a bit lost on this one though.  As near as I can guess from looking at other sources is lParam is the pointer in memory where the character was entered if I entered say the letter p, or perhaps if I pasted something into it.  However I've tried getting the data stored at that pointer and just gotten a lot of useless information. 

So as it stands I'm at a bit of a loss on what exactly is happening and I would need to handle and how I would need to handle it to catch the neccisary info.  The way I see it I need one bit of information most the time, and occasionally 2.

As I see it if a paste or copy, event or something of that nature  is called then I just need to send that msg to scintilla.  That's easy enough. 

Where I run into problems is entering text.  If I ! say enter the character "f" then I need to I presume know which character was entered.  I thought I could use the scMsg variable I have which is derived from the SCNotification type (just SCNotification converted from C++ to VB) and call scMsg.ch.  That unfortunatly did not work.  I'm guessing that the ch only has something assigned to it when entered.

Anyway as it stands what I've done as a bit of a hack is created a variable that each time text is added I store the ch to it.  Then when scn_macrorecord is called I pass that with it. 

This works but I figure there must be a better way.  Any help is greatly appreciated.  Thanks

Stewart


Yahoo! Photos – Showcase holiday pictures in hardcover
Photo Books. You design it and we’ll bind it!
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to