Detecting Esc key

On 23/06/2014 at 06:33, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   14 
Platform:      Mac OSX  ; 
Language(s) :     C++  ;

I have a process that can take a long time to process.
It is inside a Message method of a DescriptionToolData because it is activated by a button.
How can I detect that the Esc key was pressed inside this process? (the process involves two nested for-loops).

I was using:

BaseContainer bck;
if (ESCAPE && bck.GetLong(BFM_INPUT_VALUE)==KEY_ESC) ...

But it is not working.

On 24/06/2014 at 00:58, xxxxxxxx wrote:

I saw this thread the other day it`s python but might be useful -

On 24/06/2014 at 08:49, xxxxxxxx wrote:

Thank you very much, Eclectrick.
It worked great :-)