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

Shortcut is working fine but freezes AE for a few seconds

Contributor ,
Aug 18, 2021 Aug 18, 2021

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

 

 

TOPICS
Scripting
129
Translate
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
LEGEND ,
Aug 18, 2021 Aug 18, 2021
LATEST

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

Translate
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