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

How to - Convert Advanced Action to JavaScript code ?

Engaged ,
Mar 08, 2017 Mar 08, 2017

Hello.

Cap9. HTML5 only.

Question:

Is it possible to convert / export / extract / hack the Conditional Advanced Actions to actual JavaScript?

Why?

As someone who is not a JavaScript programmer I find using the Advanced Action creation panel useful for beginner.

However, after a while I would like to dip and 'tweak' the Advanced Action code by hand.

So, if there was a method of converting the Advanced Action to JavaScript it would be helpful.

(This type of facility was available in the MS Access database, a 'macro' could be created using drag & drop, and then converted to Visual Basic later.)

Also, I would kill for the ability to specify an external editor, such as Notepad++, rather than using the tiny little JavaScript editing window provided by Captivate.

Thank you,

Peter.

998
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

correct answers 1 Correct answer

LEGEND , Mar 08, 2017 Mar 08, 2017

I cannot offer you an answer to the question. You have to know that AA's are converted to either AS3 (for SWF output) or to JS (for HTML5 output) on runtime. You can launch an AA by JS.

A 'macro' is something totally different (I have been writing a lot of macro's in Lotus 1-2-3).

You can always use an external editor (I have both Brackets and Notepad++ for that purpose) and create a JS that you can call from the index file. This works fine for HTML5 output, not always for SWF output.

I stick most

...
Translate
LEGEND ,
Mar 08, 2017 Mar 08, 2017

I cannot offer you an answer to the question. You have to know that AA's are converted to either AS3 (for SWF output) or to JS (for HTML5 output) on runtime. You can launch an AA by JS.

A 'macro' is something totally different (I have been writing a lot of macro's in Lotus 1-2-3).

You can always use an external editor (I have both Brackets and Notepad++ for that purpose) and create a JS that you can call from the index file. This works fine for HTML5 output, not always for SWF output.

I stick mostly to Advanced actions, or whenever possible to Shared actions which can also be used as 'template' for a new advanced action. Reason: I'm not a programmer and turn only to JS when Captivate's actions are too limited.

The CpExtra widget by InfoSemantics is also a big help! It is IMO a must for any CP developer. Only HTML output!

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
Engaged ,
Mar 08, 2017 Mar 08, 2017

Lilybiri,

Thank you for your comments.

I will have to put up with the AA creation panel, which I just find slow and clunky.

Hopefully Adobe have introduced loads of improved editing features in the v10. !

Peter.

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 ,
Mar 08, 2017 Mar 08, 2017
LATEST

Sorry, thought you were talking about the JS window? You can always create the script in another editor and paste it into the JS script window.

Personally I have logged improvement feature requests for the AA window, but don't find it slow. Do you use all its features, like the filter option in dropdown lists, the duplicate and copy/paste functions for commands and decisions, the rearrangement buttons etc.? What I don't like is the fact that you don't see the ELSE part in the same window, but I quickly switch to the Preview to see the whole conditional action.

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
Resources
Help resources