Skip to main content
Inspiring
August 18, 2021
Question

Shortcut is working fine but freezes AE for a few seconds

  • August 18, 2021
  • 1 reply
  • 152 views

Hi, 

I've developed an extension for AE, which was working fine until I updated to the second last version (3 months ago aprox).

 

In the extension you can trigger a specific function in two ways.

The first one is by pressing a button, the second one is by using a shortcut. The first method is working fine, the second method executes fine but sometimes freezes the software for a few seconds. 

 

I don't know where the problem could be to be honest and so far I don't know how to find it.

 

Anyway, the shortcut works like this:

it opens a second extension which runs this code

 

 

(function () {
    'use strict';
    var csInterface = new CSInterface();
    var event = new CSEvent("myExtension.copyShortcut", "APPLICATION");
    event.data = "Copy";
    csInterface.dispatchEvent(event);
    csInterface.closeExtension();
}());

 

 

The main extension is listening and when it receives the order it executes the callback function.

 

var csInterface = new CSInterface();
csInterface.addEventListener("myExtension.copyShortcut", callbackCopyShortcut);

 

 

Any ideas?

Thanks

 

 

This topic has been closed for replies.

1 reply

Mylenium
Legend
August 18, 2021

And what keys are actually used? What system are you on? Language settings? AE keyboard settings? Does AE stay in focus or does another system window take over? Any other apps/ tools running? Global system shortcuts? There could be a million reasons for the behavior. In fact this could be just anotehr manifestation of the more general copy&paste issues that plague recent versions of AE, at least on Mac or it could even be something unrelated like AE always checking the cache state when you fire the script. Certainly some more information is needed.

 

Mylenium