Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


AEGP_ExecuteScript Examples

Participant ,
Jul 18, 2021 Jul 18, 2021

Copy link to clipboard

Copied

I would like to offer a simple dialog box and capture user input via AEGP_ExecuteScript()

 

Then I would display the user input in a ECW 

 

Are there such examples ?

TOPICS
SDK

Views

46

Likes

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

Adobe Community Professional , Jul 20, 2021 Jul 20, 2021
Here's an example from a project a while back: AEGP_SuiteHandler suites(in_data->pica_basicP); A_Boolean outAvailablePB; AEGP_MemHandle outResultPH; AEGP_MemHandle outErrorStringPH; ERR(suites.UtilitySuite4()->AEGP_IsScriptingAvailable(&outAvailablePB)); ERR(suites.UtilitySuite4()->AEGP_ExecuteScript(NULL, "alert(123);", true, &outResultPH, &outErrorStringPH)); ERR(suites.MemorySuite1()->AEGP_FreeMemHandle(outResultPH)); ERR(suites.MemorySuite1()->AEGP_FreeMemHandle(outErrorStringPH));

Likes

Translate

Translate
Adobe Community Professional ,
Jul 18, 2021 Jul 18, 2021

Copy link to clipboard

Copied

i don't know of a sample that utilizes AEGP_ExecuteScript, but the ECW bit is demostrated in the "ColorGrid" sample project.

Likes

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
Adobe Community Professional ,
Jul 18, 2021 Jul 18, 2021

Copy link to clipboard

Copied

perhpas a custom UI is not necessary... you could just rename a param to show the data...

Likes

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
Adobe Community Professional ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

LATEST

Here's an example from a project a while back:

AEGP_SuiteHandler suites(in_data->pica_basicP);
A_Boolean outAvailablePB;

AEGP_MemHandle outResultPH;
AEGP_MemHandle outErrorStringPH;

ERR(suites.UtilitySuite4()->AEGP_IsScriptingAvailable(&outAvailablePB));
ERR(suites.UtilitySuite4()->AEGP_ExecuteScript(NULL, "alert(123);", true, &outResultPH, &outErrorStringPH));

ERR(suites.MemorySuite1()->AEGP_FreeMemHandle(outResultPH));
ERR(suites.MemorySuite1()->AEGP_FreeMemHandle(outErrorStringPH));

Likes

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