Thanks,

That works perfectly.

By the way, SciTELua.html, the doc page about Lua Scripting Extension,
doesn't mention editor.Focus. Is there a reference of Lua commands that
can be used?

I looked at Scintilla.iface, and I'm guessing that "get bool
GetFocus=2381(,)" can be referenced as "editor.Focus".

-Ben

Benjamin Fisher wrote:
> Lately I have been having fun creating a lot of lua scripts
> and macros.
> This is cool.
> 
> I see that lua scripts can be set up to respond to events. I'm using
> OnChar() to listen to characters that are pressed. My goal is
> to create
> an interactve console in the output panel.
> 
> Is there a good way to find out whether the characters were
> typed in the
> editor or the output? After looking around, the extman.lua

output.Focus is true if output window has focus,
editor.Focus is true if editor window has focus?


_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to