Search code examples
javawindowexecutable-jarleap-motion

Runnable jar pauses when on another window


I made an simple java code to control a powerPoint presentation through hand motion with the help of an device called leap motion. The code works fine in Eclipse, but whenever I switch to an actual powerPoint slide my runnable jar pauses and stops doing what it's suppose to. How do I fix this problem??


Solution

  • Set the background frames policy.

    controller.setPolicy(Controller.PolicyFlag.POLICY_BACKGROUND_FRAMES);