Copy link to clipboard
Copied
Hi
As I know the IdleTask is just called if Indesign is in foreground. In my plugin I need a task who is called every time, independent if Indesign is in foreground or not.
What can I do?
Any ideas?
Thanks
Hans
Hi
It was my fault. I prevent the idle working by myself...
uint32 GenerationIdleTask::RunTask(uint32 iAppFlags, IdleTimer* timeCheck)
{
int iInterval = 0;
do {
getInterfaceCBPAdapterApp();
getInterfaceOptionData();
if (iAppFlags & (IIdleTaskMgr::kMouseTracking |
IIdleTaskMgr::kUserActive |
IIdleTaskMgr::kInBackground | // !!!!!!!
IIdleTaskMgr::kMenuUp)) {
return kOnFlagChange;
}
...
Sorry about that.
Kind re
...Copy link to clipboard
Copied
I've noticed the same for the CS5 scripting idle event, and would assume that Idle is considered an empty UI event queue. On the other hand, in CS4 an idle task does continue even in a suspended application.
You could retry with a long running background task, such as a big PDF export. Does that still continue? Then ask yourself whether you really need the UI part of "Idle" ...
Dirk
Copy link to clipboard
Copied
Hi
It was my fault. I prevent the idle working by myself...
uint32 GenerationIdleTask::RunTask(uint32 iAppFlags, IdleTimer* timeCheck)
{
int iInterval = 0;
do {
getInterfaceCBPAdapterApp();
getInterfaceOptionData();
if (iAppFlags & (IIdleTaskMgr::kMouseTracking |
IIdleTaskMgr::kUserActive |
IIdleTaskMgr::kInBackground | // !!!!!!!
IIdleTaskMgr::kMenuUp)) {
return kOnFlagChange;
}
...
Sorry about that.
Kind regards
Hans