[ID-CS5.5 plugin] The idle task is running while writing text in the document
Hi All,
I have written an idle task routine which periodically executing a simple function. Its working fine, except that it is trigerred even if the user is writing text in the document. What I want is that, the task should be halted when the user is writing. Here's my code-
uint32 MyIdleTask::RunTask( uint32 appFlags, IdleTimer* timeCheck)
{
if (appFlags == IIdleTaskMgr::kMenuUp || appFlags == IIdleTaskMgr::kMouseTracking || appFlags == IIdleTaskMgr::kUserActive || appFlags == IIdleTaskMgr::kInBackground)
return kOnFlagChange;
do {
DothisTask();
}while (false);
return 5000;
}
Thanks in advance.