Communicate between extension html and c ++ plugin

Hi all

I'm developing an extension html for InDesign CC2014. There is a scenario where I need to communicate between the extension and the C++ InDesign plugin.

I followed the instructions at http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/cs-extension-builder/pdfs/CC_Extens ion_SDK.pdf and wrote on the extension of the code part. The part c ++ code has not changed since the Flex versions, so no problems there.

I tried to call the extension of the plugin and it worked. I recorded an event in the plugin to listen to and sent another event of the plugin. But the Committee does not seem to listen to or distribute any type of event. On the part c ++ plugin, the error of registration codes and send returned were codes of success, so the problem is not with the plugin.

Here's the code for the html Panel,

I save the event to listen to at the time of the loading of the page.

function onLoaded() {
    var csInterface = new CSInterface();

 // Register the named event handler
  csInterface.addEventListener("com.mypluginevent.test", myEventHandler); 

}
//Create a named event handler callback function
function myEventHandler(event)
{
  alert("Event captured!");
}

// This function is called on a button click
function onClick()
{
  // Create your local CSInterface instance
  var csInterface = new CSInterface();
  var event = new CSEvent("com.myhtmlevent.test", "APPLICATION"); 

  event.data = "This is a test!";
  csInterface.dispatchEvent(event);
}

Here's the part C++ code where I send the event "com.mypluginevent.test".

csxs::event::Event event = {"com.mypluginevent.test",
                              csxs::event::kEventScopeApplication,
                              "myEventHandler",
                              NULL,
                              NULL};

csxs::event::EventErrorCode err = sdkPlugPlugInstance.DispatchEvent(&event);

I always get a hit on the dispatch of the event, but the extension intercepts her.

Can someone tell what I am doing wrong?

Hello

I don't know if it will help but take a look at the documentation for CC 2014 (rather than the CC 2013 docs you use): official Adobe Extension SDK Documentation for 2014 CChttp://adobe.ly/1rin38t>

Best regards

Hallgrimur

--

René Hallgrímur | Product Manager Adobe EAC | @HallgrimurTh

Tags: Adobe

Similar Questions

  • How to communicate between the host and the guest in a stand-alone PC

    I have a professional Standalone XP (host) that is not connected to a network. I created a host (XP Professional) using vmware. Pls know me how to communicate and transfer files between the guest and the host.

    Pls post the procedure or send it to [email protected]

    Thanks and greetings

    Ganesh.

    Use "NAT" or "Host-Only' networking for your virtual machine, NOT bridged.

    Activate a shared folder on your virtual computer configuration, map as a network of virtual machine of your shared folder on the host drive.

    Good bye

    Riccardo Riva

    VCP, RHCE, FCNSA

    If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '. Thank you!

  • How to run code and to communicate between the computer and myRIO?

    Hello

    I am trying to create a colortracker using the myRIO. The system is pan tilt servo with a webcam. The project works well and is able to follow and move with the desired color. However, in order to continue the project, I want to ensure the system with another device for the perception of depth and want to use the host computer for webcam and image processing and the myrio to get signals for the servos. The idea is to connect two webcams directly to the computer usb ports and keep the myRIO connected to everything does time i.e. no wifi. Can anyone guide me as to how I would go about sending signals constantly between the computer host and myRIO?

    I advise to use Variables shared Network-Published or network stream.

    You can read about them both in the cRIO guide Developer: http://www.ni.com/pdf/products/us/fullcriodevguide.pdf

    There are also examples for both in the Finder for example LabVIEW.

  • What is the difference between extensions and Plugins and Add-ons?

    I'm sorry if here is not the right place for this post.

    What is the difference between extensions and Plugins and Add-ons? Apparantely, they differ in some sense or aspect, but I do not know how. Please, if it is not too complicated, explain in detail and simple language. Thanks in advance to 1 million.

    Kind regards
    Danesh

    Hi Danesh,

    You should take a look at this article for an explanation. Plugins and extensions are essentially types of Add-ons as well as of the characters and themes.

    Hope this helps!

  • What is the difference between an extension, an add-on and a plugin? Thank you.

    Simple question of title, please.

    Add-ons - is the collective name for the extensions, themes and plugins. This link sums up what constitutes the extensions, themes and plugins - https://support.mozilla.com/kb/Customizing+Firefox+with+add-ons

  • How can I communicate between MUSE and animate CC OEM element?

    Hi all

    Please let me know how can I call the Muse javascript function (written using the object > option Insert HTML code) by a click of a button.

    This button has been designed and coded using CC animate and its OEM file has been imported in MUSE.

    Basically, I'm looking for a solution communicate between MUSE and OEM, and vice versa.

    Help, please!

    Thank you

    AshishK

    There is no adequate way to do file OAM control over site of muse. In fact, even a simple button OAM is a html document independent, which has a head, body and its own scripts and html code. OAM - is a site within your site are located in an iframe. This format is used for banners and animations for beauty, but not for the features. If you need the functionality, you must export your animation in html and javascript, disassemble the part code and integrate the muse - something on your mind, in the body. And of course, you have to understand with in the code. But even for a experienced, coders this approach would be absurd. It is easier to make a simple button in cssto integrate this a whopper for the site, which would create a disproportionate burden

  • Restricting calls between a subarea and specific extensions on Cisco VCS

    Hello, I use Cisco VCS 8.5.3, my goal is to restrict calls between a subarea and specific extensions.
    I tried following solutions:

    1. Download of XML strategy
    2. Use of political appeal web interface in order to limit calls

    XML file:


     
     


     
       
       

       
       

       
       

         
       

       

     


    But when I apply the XML file, or try using the web simple rule (for example: 11111 12222 destination source, dismiss the action) I'm still able to place the call to 11111 to 12222.

    What can be the cause of the problem and what else can I try to be able to prohibit calls between a particular Subzone and exentions?

    Attached, is an example of CPL script that should work.  Using this script, CPL, I was able to block calls to a subarea set to a destination alias located in the subzone of default and was always able to call any other end point in the default subfield without problem.  Note that you must enter the name of the subarea, as you have configured on the VCS, including spaces if they exist.

    The scenario is based on the example of CPL "limiting access to a local gateway" X8.5 VCS Administrator's Guide on pg 413, other documents of CPL reference and examples can be seen starting on pg 410.

  • I try to install FontAwesomePS_1.0.0 for Photoshop CC15. This extension cannot be mounted, it requires the version of photoshop 64 to inclusively between 14.0 and 15.9. Can someone explain why this extension is not installed? Thank you!

    I try to install FontAwesomePS_1.0.0 for Photoshop CC15. This extension cannot be mounted, it requires the version of photoshop 64 to inclusively between 14.0 and 15.9. Can someone explain why this extension is not installed? Thank you!

    Looks like you are installing in the extensions manager that is no longer supported for 2015 of CC. Please refer to the CC app instead.

  • Firefox 4. What is the difference between addons.sqlite and extensions.sqlite in the profile folder?

    I have separate facilities 3.6.15 Firefox and Firefox 4RC2, using their own separate and distinct profile folders.

    I already know that, in the profile folder:

    • Firefox 3.6.x has extensions.log, extensions.ini and extensions.rdf files
    • Firefox 4 has replaced extensions.rdf with extensions.sqlite
    • Firefox 4 has apparently no extensions.log
    • Firefox 3.6.x does not have addons.sqlite
    • Firefox 4 is has addons.sqlite

    For a better understanding of the present, can someone please clearly, answer the following 3 questions?

    What is

    1. the purpose of addons.sqlite in Firefox 4?
    2. How it / its function differ from the extensions.sqlite in Firefox 4
    3. both are really necessary?

    addons.SQLite stores the information that appears in the tab Addons > Extensions - under the button more , as well as the AMO URL for extensions that are not configuration to use this new feature.

    Extensions.SQLite stores the data on the installed extensions, by replacing the extensions.cache and extensions.rdf files.

    You really not need the addons.sqlite file, but I do not know the ramifications to delete the content of this file and 'locking' so that it is used. Not that it stores a large amount of data; only 320kb with 30 installed extensions.

  • MAF: Navigate between the AMX and page HTML

    Hi all

    Now, I use a scenario:

    First step: a.amx-> b.html (also want to pass some parameters)

    Second step: b.html-> a.amx page


    How to implement the above function? Could someone give me some advice about this? Thanks in advance.



    Byron

    Concerning

    Hello.

    Since you can't combine HTML and AMX pages in the same element, you will need to create two separate functions. Unfortunately, HTML features cannot use the workflow. It complicates things a bit.

    A.AMX must be in a workflow. B.HTML should be the default page for the HTML feature.

    You must create a scope of Application JavaBean. This bean, implement a method that calls the HTML function. This is done via the utilities of the MAF container API. See http://docs.oracle.com/middleware/maf210/mobile/develop-maf/appx-maf-javascript.htm#ADFMF23884. You must also add a property for the parameter to the JavaBean, but also a getter/setter methods. Bind the JavaBean property on the a.amx page. This can be done by a setPropertyListener, for example.

    To navigate from a b, add a method call to the workflow where a.amx is referenced.

    To read the value of parameter b.html, simply use the MAF JavaScript APIs in your HTML page to access the value stored in the JavaBean.

    To return to a.amx b.html, use the goToFeature API JavaScript method. https://docs.oracle.com/middleware/maf210/mobile/js-ref/adf.mf.api.html#gotoFeature. The full reference for the JavaScript API of MAF is here: https://docs.oracle.com/middleware/maf210/mobile/js-ref/toc.htm.

    Best regards

    Frédéric Desbiens

    Senior Product Manager

    Mobility and Cloud oracle

    Twitter: @BlueberryCoder

    blog: http://blogs.oracle.com/blueberry

  • long delay between opening session and desktop

    When I enter my username and password, it takes more than 5 minutes, until what I Office. When I click on my computer, I have more drive E that is a USB to HDD eternal.

    When I enter my username and password, it takes more than 5 minutes, until what I Office. When I click on my computer, I have more drive E that is a USB to HDD eternal.

    Jump around, even if you KNOW you've done something before - do it again as data...

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find.  Reboot when necessary.  (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    The less you have to run all the time, most things you want to run will perform:

    Use Autoruns to understand this all starts when your computer's / when you log in.  Look for whatever it is you do not know using Google (or ask here.)  You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.

    You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory.  This can help you to identify applications that you might want to consider alternatives for and get rid of all together.

    Do a house cleaning and the dust of this hard drive:

    You can free up disk space (will also help get rid of the things that you do not use) through the following steps:

    Windows XP should take between 4.5 and 9 GB * with * an Office suite, editing Photo software, alternative Internet browser (s), various Internet plugins and a host of other things installed.

    If you are comfortable with the stability of your system, you can delete the uninstall of patches which has installed Windows XP...
    http://www3.TELUS.NET/dandemar/spack.htm
    (Especially of interest here - #4)
    (Variant: http://www.dougknox.com/xp/utils/xp_hotfix_backup.htm )

    You can run disk - integrated into Windows XP - cleanup to erase everything except your last restore point and yet more 'free '... files cleaning

    How to use disk cleanup
    http://support.Microsoft.com/kb/310312

    You can disable hibernation if it is enabled and you do not...

    When you Hibernate your computer, Windows saves the contents of the system memory in the hiberfil.sys file. As a result, the size of the hiberfil.sys file will always be equal to the amount of physical memory in your system. If you don't use the Hibernate feature and want to reclaim the space used by Windows for the hiberfil.sys file, perform the following steps:

    -Start the Control Panel Power Options applet (go to start, settings, Control Panel, and then click Power Options).
    -Select the Hibernate tab, uncheck "Activate the hibernation", and then click OK. Although you might think otherwise, selecting never under "Hibernate" option on the power management tab does not delete the hiberfil.sys file.
    -Windows remove the "Hibernate" option on the power management tab and delete the hiberfil.sys file.

    You can control the amount of space your system restore can use...

    1. Click Start, right click my computer and then click Properties.
    2. click on the System Restore tab.
    3. highlight one of your readers (or C: If you only) and click on the button "settings".
    4 change the percentage of disk space you want to allow... I suggest moving the slider until you have about 1 GB (1024 MB or close to that...)
    5. click on OK. Then click OK again.

    You can control the amount of space used may or may not temporary Internet files...

    Empty the temporary Internet files and reduce the size, that it stores a size between 64 MB and 128 MB...

    -Open a copy of Microsoft Internet Explorer.
    -Select TOOLS - Internet Options.
    -On the general tab in the section 'Temporary Internet files', follow these steps:
    -Click on 'Delete the Cookies' (click OK)
    -Click on "Settings" and change the "amount of disk space to use: ' something between 64 MB and 128 MB. (There may be many more now.)
    -Click OK.
    -Click on 'Delete files', then select "Delete all offline content" (the box), and then click OK. (If you had a LOT, it can take 2 to 10 minutes or more).
    -Once it's done, click OK, close Internet Explorer, open Internet Explorer.

    You can use an application that scans your system for the log files and temporary files and use it to get rid of those who:

    CCleaner (free!)
    http://www.CCleaner.com/
    (just disk cleanup - do not play with the part of the registry for the moment)

    Other ways to free up space...

    SequoiaView
    http://www.win.Tue.nl/SequoiaView/

    JDiskReport
    http://www.jgoodies.com/freeware/JDiskReport/index.html

    Those who can help you discover visually where all space is used.  Then, you can determine what to do.

    After that - you want to check any physical errors and fix everything for efficient access"

    CHKDSK
    How to scan your disks for errors* will take time and a reboot.

    Defragment
    How to defragment your hard drives* will take time

    Cleaning the components of update on your Windows XP computer

    While probably not 100% necessary-, it is probably a good idea at this time to ensure that you continue to get the updates you need.  This will help you ensure that your system update is ready to do it for you.

    Download and run the MSRT tool manually:
    http://www.Microsoft.com/security/malwareremove/default.mspx
    (Ignore the details and download the tool to download and save to your desktop, run it.)

    Reset.

    Download/install the latest program Windows installation (for your operating system):
    (Windows XP 32-bit: WindowsXP-KB942288-v3 - x 86 .exe )
    (Download and save it to your desktop, run it.)

    Reset.

    and...

    Download the latest version of Windows Update (x 86) agent here:
    http://go.Microsoft.com/fwlink/?LinkId=91237
    ... and save it to the root of your C:\ drive. After you register on the root of the C:\ drive, follow these steps:

    Close all Internet Explorer Windows and other applications.

    AutoScan--> RUN and type:
    %SystemDrive%\windowsupdateagent30-x86.exe /WUFORCE
    --> Click OK.

    (If asked, select 'Run'). --> Click on NEXT--> select 'I agree' and click NEXT--> where he completed the installation, click "Finish"...

    Reset.

    Now reset your Windows with this FixIt components update (you * NOT * use the aggressive version):
    How to reset the Windows Update components?

    Reset.

    Now that your system is generally free of malicious software (assuming you have an AntiVirus application), you've cleaned the "additional applications" that could be running and picking up your precious memory and the processor, you have authorized out of valuable and makes disk space as there are no problems with the drive itself and your Windows Update components are updates and should work fine - it is only only one other thing you pouvez wish to make:

    Get and install the hardware device last drivers for your system hardware/system manufacturers support and/or download web site.

    If you want, come back and let us know a bit more information on your system - particularly the brand / model of the system, you have - and maybe someone here can guide you to the place s x of law to this end.  This isn't 100% necessary - but I'd be willing to bet that you would gain some performance and features in making this part.

  • What is the difference between. MHT and. HTM?

    Original title: is anyone know about MHT files?

    What is the difference between. MHT and. HTM?

    Hi Sheryl,

    Welcome to the Windows 7 community!

    I understand that you would like to know the difference between file MHT and HTM file. I'm happy to help you.

    MHTML, short for MIME HTML, is a format to archive web page used to combine resources that are usually represented by external links (such as images, Flash animations, audio files, Java applets) as well as the HTML code in a single file. The content of an MHTML file is encoded as if it were an email message to HTML, using the MIME type multipart/related. The first part of the file is normally encoded HTML; subsequent parts are additional resources identified by their URL original and encoded in base64. This format is sometimes referred to as MHT, after the suffix .mht given to these files by default when created by Microsoft Word, Internet Explorer or Opera. MHTML is a proposed standard, distributed in an edition revised in 1999 as RFC 2557.

    HTML Web page that is used by Web browsers; contains the code markup that is stored in a plain text format; used to display and format the text and images in a Web browser.

    HTM files serve the same exact than purpose. HTML files. The extension ".htm" appeared with the use of the Web Microsoft, such as FrontPage, SharePoint Designer and Expression Web development software.

    HTM files are much less common than HTML files.

    It will be useful. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

     

     

    Kind regards!

  • What is the difference between codec primary and secondary codec in cts-3000?

    Hello

    I'm a novice on telepresence. This community is only a place to resolve issues for me.

    What is the difference between codec primary and secondary codec in cts-3000?

    I know the primary function of the codec. but I don't know exactly of secondary function of codec.

    Help me please.

    Hello

    On a CTS 3000 system, you have 1 codec primary and secondary 2 codecs. Secondary codecs are responsible for the camera left and right and view the connections. They communicate the main codec via an Ethernet cable.

    Here is a guide to the installation of a CTS-3000 so that you can see the routing of cables.

    http://www.Cisco.com/c/en/us/TD/docs/Telepresence/cts_3000/guide/3000_assembly_guide/CH08_Routing_Power_and_Signal_Cables.html

    In addition, if you are interested to learn more about the telepresence as of last year, Cisco introduced the video CCNA certification track. Maybe it's something you are interested in.

    https://learningnetwork.Cisco.com/community/certifications/ccna_video

    PEI

  • Difference between Standalone Converter and converter integrated with VMware vCenter Server?

    What is the difference between Standalone Converter and converter integrated with VMware vCenter Server, except that it comes integrated with Vcenter and another does not?
    Please confirm is there the technical differences between them?

    Also take a look at the Release Notes for vCenter Server 4.1.

    of http://www.vmware.com/support/vsphere4/doc/vsp_esx41_vc41_rel_notes.html

    VMware vCenter Converter plugin. VMware vSphere 4.1 and later versions of the update and patch are the latest editions of the VMware vCenter Converter plugin for vSphere Client. VMware will continue to update and support the free Converter Standalone product, which allows conversions from sources such as physical machines, machine formats virtual VMware and Microsoft and some third-party disk image formats.

    André

  • where can I get a complete guide to html encoding 5 plugins

    starting to become frustrated cause I can't find good documentation on creating HTML 5 plug-ins for some videos started get me. I'm using eclipse and the constructor of the extension.  but I need to learn how to program things as import videos, create sequences, put videos on the timeline, adjust paramitors and add effects.

    It surprised me to hear they switched to html plugins and im surprised there aren't a ton of thing in the extensions Manager.

    Here's a better 'getting started' web page: articlecontentAdobe_numberedheader http://www.adobe.com/devnet/creativesuite/articles/a-short-guide-to-HTML5-extensions.html#

    HuxtabelRex, sample of job board I provided does most of what you mention.

    Eddie (and others), please email me directly and I'll give you the same; b b b at adobe dot com.

Maybe you are looking for