Beenden
  • Globale Community
    • Sprache:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티

i run a script in Ps when I press the ctrl tab.

Community-Einsteiger ,
Apr 22, 2022 Apr 22, 2022

I run a script in Photoshop when I press the ctrl tab . IS IT POSSIBLE ? PLZ HELP.

THANKS....

THEMEN
Aktionen und Skripte , SDK , Windows
430
Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Adobe
Community Expert ,
Apr 22, 2022 Apr 22, 2022

@majhari49317888 – it appears that your post is somewhat lost in translation...

 

Are you asking if it is possible to make a custom Keyboard Shortcut to run an installed script using the CTRL TAB keyboard combination?

 

Have you tried using Edit menu > Keyboard Shortcuts... ???

 

On a Mac I can't do so.

 

Edit: Same in Windows, so I don't believe that it is possible.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Community-Einsteiger ,
Apr 22, 2022 Apr 22, 2022

@Stephen Marsh  -- Sorry for That

 

i want a script to run when i prees the control + tab. like the Script Events Manager but i dont found in Event ID Codes for Switch Between open Documents

not for Mac.

thanks.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Community Expert ,
Apr 28, 2022 Apr 28, 2022

@majhari49317888 

 

You can record an action or use a custom script to cycle forward or backward through the open doc windows, then add the code to "do something" and add a new custom keyboard shortcut to run the script (you can't use ctrl tab though).

 

// 1 forwards | -1 backwards
cycleDocWindows(1);

// Do something else...
alert("Hey, it's a new document window!");

function cycleDocWindows(forBack) {
    var s2t = function (s) {
        return app.stringIDToTypeID(s);
    };
    var descriptor = new ActionDescriptor();
    var reference = new ActionReference();
    reference.putOffset(s2t("document"), forBack);
    descriptor.putReference(s2t("null"), reference);
    descriptor.putInteger(s2t("documentID"), 0);
    executeAction(s2t("select"), descriptor, DialogModes.NO);
}

 

There are 'Prvs' and 'Nxt ' events, but they are not for ctrl tab, I'm not sure which events these are for...

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
LEGENDE ,
Apr 28, 2022 Apr 28, 2022

Store open documents to array and go through them by indexes.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Community Expert ,
May 06, 2022 May 06, 2022
AKTUELL

@majhari49317888 - Did you try this script?

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines