• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CS6 / Mac: IdleTask isn't running if Indesign is not in foreground

Explorer ,
Aug 27, 2012 Aug 27, 2012

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

TOPICS
SDK

Views

782

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Aug 28, 2012 Aug 28, 2012

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

...

Votes

Translate

Translate
Advocate ,
Aug 27, 2012 Aug 27, 2012

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 28, 2012 Aug 28, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines