EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     Launching Macros when events occured
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
Yutaka
Posted on: 8/5/2008 1:40 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Launching Macros when events occured
Quote:

owilsky wrote:
Cool, thanks!
Will I be able to distinguish whether "save" or "save as" has been called?

I would need this ...


No, I am afraid not.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

owilsky
Posted on: 8/5/2008 1:05 am
Just can't stay away
Joined: 2/12/2008
From:
Posts: 76
Re: Launching Macros when events occured
Cool, thanks!
Will I be able to distinguish whether "save" or "save as" has been called?

I would need this ...
Yutaka
Posted on: 8/3/2008 9:08 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Launching Macros when events occured
Quote:

owilsky wrote:
Also there is an event "File Opened" but no event "File Saved".
Could you add this event please?


EVENT_SAVING event has been added to 7.5 alpha . This event will be sent immediately before saving the document. It is defined as:


#define EVENT_SAVING			0x04000000


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

owilsky
Posted on: 7/31/2008 6:06 am
Just can't stay away
Joined: 2/12/2008
From:
Posts: 76
Re: Launching Macros when events occured
Also there is an event "File Opened" but no event "File Saved".
Could you add this event please?
Yutaka
Posted on: 12/19/2007 4:48 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Launching Macros when events occured
Quote:

Passiday wrote:
Hello,

I just was playing with the new feature that allows to launch macros when some event has occured. I see how it works, but I feel I am missing something... As with events in typical programming environments, upon launching event handler, the code should have access to some Event object that keeps information about the type of event that has happened, and some extra info. For example, if I bind macro to a "Character inserted" event, I'd expect that the Macro is informed that it was triggered because that one or more characters were inserted, and also exactly what characters were insterted.


I am aware of need to implement more sophisticated event handlers like you wrote. Thanks!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Passiday
Posted on: 12/19/2007 3:26 pm
Just popping in
Joined: 9/29/2007
From:
Posts: 17
Launching Macros when events occured
Hello,

I just was playing with the new feature that allows to launch macros when some event has occured. I see how it works, but I feel I am missing something... As with events in typical programming environments, upon launching event handler, the code should have access to some Event object that keeps information about the type of event that has happened, and some extra info. For example, if I bind macro to a "Character inserted" event, I'd expect that the Macro is informed that it was triggered because that one or more characters were inserted, and also exactly what characters were insterted.
Threaded | Oldest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文