Answered
AEGP_ExecuteScript Examples
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 ?
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 ?
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));Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.