Plug-in without Menuitem/Tool-button

Hi,
I want to implement a plug-in for which i don't want to add any Menu/toolbutton, but when the acrobat is launched it has to perform the operation which i assign to the plug-in(say, if i set a different action to a mouseclick for a link). Is it possible to do that way? how to do that?
any help would be highly appreciated.

when i was using Menu for the application, i coded like this
and it was working fine,
static ACCB1 ASBool ACCB2 MouseClickProc (AVAnnotHandler annotHandler, PDAnnot pdAnnot, AVPageView pageView, AVDevCoord xHit, AVDevCoord yHit, AVFlagBits16 flags, AVTCount clickNo)
static ACCB1 void ACCB2 EzAnnotTooltipCommand(void *data)
AVAnnotHandlerRec *handler = AVAppGetAnnotHandlerByName( ASAtomFromString("Link") );
handler-> DoClick = ASCallbackCreateProto(AVAnnotHandlerDoClickProc, &MouseClickProc);
AVAppRegisterAnnotHandler(handler);
ACCB1 ASBool ACCB2 PluginInit(void)
menuItem = AVMenuItemNew("&ezLinkInfo", "DFIPI:ezLinkInfo", (AVMenu)NULL, false, NO_SHORTCUT, 0, NULL, gExtensionID);
AVMenuItemSetExecuteProc(menuItem, ASCallbackCreateProto(AVExecuteProc, &EzAnnotTooltipCommand), NULL);
AVMenuItemSetComputeEnabledProc(menuItem, ASCallbackCreateProto(AVComputeEnabledProc, &EzAnnotTooltipComputeEnabled), NULL);
AVMenuAddMenuItem(commandMenu, menuItem, APPEND_MENUITEM);
later i removed the menu item and added the stuff inside EzAnnotTooltipCommand in the "PluginInit" function directly which is
ACCB1 ASBool ACCB2 PluginInit(void)
AVAnnotHandlerRec *handler = AVAppGetAnnotHandlerByName( ASAtomFromString("Link") );
handler-> DoClick = ASCallbackCreateProto(AVAnnotHandlerDoClickProc, &MouseClickProc);
AVAppRegisterAnnotHandler(handler);
Now it is not calling "MouseClickProc", i couldn't make out where it is failing. Can anybody help in this regard.
thank you,

Similar Messages

  • Tool Button Not Working in Adobe Reader 9

    Hello,
    I have a custom tool button - folder level script (with a trusted function) to digitally sign a drawing template.
    The tool button works in Reader 8 and Reader X, but is not working in Reader 9.
    The error message is shown "Not Allowed Error: Security settings prevent access to this property or method".
    Can any one please advise why this would not work in Reader 9 when the tool buttons work in other versions of Adobe Reader?
    Thank you.

    Adobe changes JS with every major release, check the Acrobat JS API Reference to see what has changed with regard to your code.
    Without seeing your code, there is no way tell what is going on. Also check the preferences to see if there is an option that needs to be checked to allow your script to work.
    Since Reader X works and it is free, why not upgrade?

  • Not able to expand tool button in Acrobat 9.0

    I have implemented a plugin which contain two Tool buttons using Acrobat SDK 7.0.
    I created a "Flyout" using function AVToolBarNewFlyout(). I am adding those two tool buttons into this Flyout using function
    AVToolBarAddButton() and at last I am doing AVToolButtonSetFlyout().
    When I load this Plugin into Acrobat version 7 and 8 the flyout is working fine (where I can expand tool button) with or without opening any document in Acrobat window.
    The problem is when I load the same Plugin into Acrobat version 9 the Flyout is working fine (where I can expand tool button) only when the document is opened in Acrobat window.
    I am not able to expand tool button if active document is not present.
    Please help me..

    Hi Leonard,
    Please find the below Source code:
    Creating toolbar using AVToolBarNew function.
    AVToolBarPositionRec positionRec;
    memset(&positionRec, 0, sizeof(AVToolBarPositionRec));
    positionRec.size = sizeof(AVToolBarPositionRec);
    positionRec.inDoc = true;
    positionRec.dockPosition = kAVToolBarDockTop;
    positionRec.stackNum = 1;
    positionRec.offset= ASMAXInt32;
    positionRec.order = ASMAXInt32;
    positionRec.hidden = false;
    CreateButtonsFromDescriptors (toolBar);
    AVAppRegisterToolBarPosition("Our Plugin Toolbar", false, &positionRec);
    //This is the function to create flyout for toolbutton.
    static void CreateButtonsFromDescriptors (AVToolBar target)
    PIButtonDesc *buttonInfo = gButtonInfo;
    ASInt32 *buttonOrder = gButtonOrder;
    AVExecuteProc commonExecCallback;
    AVComputeEnabledProc commonEnableCallback;
    // Create our toolbuttons.
    while (*buttonOrder != 0)
    // Create the main toolbutton.
    AVToolButton toolButton = AVToolButtonNew (ASAtomFromString("Button 1")/*(buttonInfo->buttonName)*/, NULL, false, false);
    // Creating our common callbacks.
    AVToolButtonSetHelpText (toolButton, "Button 1");
    buttonInfo++;
    // Create the rest of the buttons in the section on a flyout toolbar.
    if (*buttonOrder > 1)
    AVToolBar flyout = AVToolBarNewFlyout();
    for (ASInt32 i = 1; i < *buttonOrder; i++)
    AVToolButton tButton = AVToolButtonNew (ASAtomFromString( "Button 2"/*buttonInfo->buttonName*/), NULL, false, false);
    //Creating our common callbacks.
    AVToolButtonSetHelpText (tButton,"Button 2");
    AVToolBarAddButton (flyout, tButton, false, NULL);
    buttonInfo++;
    // Add flyout to button.
    AVToolButtonSetFlyout (toolButton, flyout);
    // Finally, add button to target toolbar.
    AVToolBarAddButton (target, toolButton, true, NULL);
    buttonOrder++;
    With the above Source code I am creating a Plugin.When I added this Plugin into Acrobat 7 and 8 I am able to expand the ToolButton( i.e flyout ) with or without active document.
    But when I load the same Plugin into Acrobat 9 I am able to expand Toolbutton( i.e Flyout ) only when the active document is Present.If active document is not present in Acrobat window I am not able to expand the Tool Button( i.e Flyout ).
    Thank you,
    Santhosh

  • How to Lock the Plug in Add on Tools in Adobe X?

    Hello,
    I have a folder level javascript with a tool button installed on users hard drives.
    Those with Adobe Reader 8 and 9 shows the add on tool button automatically.
    Those with Adobe Reader X have to use the steps as follows to show the plug in tools
    show tools pane
    extended features
    Plug in add on Tools
    The user has to follow all of the above steps each time a document is opened to click on the tool button.
    This can become time consuming when many documents need to use the tool button consecutively.
    Is there a way to lock the tool button so the user just has to click the tool button when a document is opened in Reader X?
    Any assistance will be most appreciated.
    Thank you

    In response to a question about finding the internal name of a custom button (such as one added using a folder-level JavaScript):
    The app.addToolButton() method for Acrobat 9 and earlier uses the cName parameter to define the internal name of the tool and posts it to a special "Add-on" toolbar, for example:
    app.addToolButton({
      cName: "myToolButton",
      cExec: "app.alert('Someone pressed me!')",
      cTooltext: "Push Me!",
      cLabel: "My Button",
      cEnable: true,
      nPos: 0
    In Acrobat X this function will create a new pane in the Tools Panel called "Plug-in Add-on Tools" if it's not already present, and post the button there rather than on the system toolbar or Quick Tools area; but the internal name of the resulting button used by the registry preferences will have the prefix "_legacy:". In this example, if you create a button using the above script and are referring to the button in the Acrobat X registry keys to pre-populate the button into the Quick Tools area, you should use the name
    _legacy:myToolButton
    However the button itself still has the internal name "myToolButton", so if you try to create it a second time, the script will fail because the name "myToolButton" is no longer unique. Don't use the "_legacy:" prefix in your button-creation script.
    Note that in Acrobat X 10.0 you cannot use the app.removeToolButton() method to remove any buttons from anywhere (the toolbars or the Panes), nor can you use the app.listToolbarButtons() function to return an array of all the objects; as the API has no direct connection to the toolbars or Panes. When a script tries to create a new button the Acrobat X API diverts the function call to the Tools Pane, but it's strictly a one-way conversation.

  • My firefox opens without the firefox button in the upper left

    I have the edition 9.0.1 installed on Windows XP home edition, but it opens without the Firefox button appearing in the rectangular box at the upper left of the screen. It does show File, Edit, View, History, Bookmarks, Tools and Help.<br /> Should I have the Firefox button? Do I even need it?<br />
    Thank you.<br />
    ''(unnecessary link removed by moderator)''

    thanks that was extremely helpful and easy to understand. thanks for the help.

  • So I have an iPad with the smart cover, and it's usually supposed to turn on the iPad when u open it, but it's no doing that for me. Nor is it turning off without pressing the button. What is the meaning of this?

    So I have an iPad with the smart cover, and it's usually supposed to turn on and off the iPad when u open it and close it, but it's not turning on for me. Nor is it turning off without pressing the button. What is the meaning of this?what caused it to be this way? Is there someway that I could fix it?

    Wait a sec did this just start?
    You set up the smart cover function in settings (you did that, right?) so, if you did that and it's failed you make an appointment at your nearest Genius Bar now.

  • How to disable the Tools Button in Bex Analyzer

    Hi Guys,
    How do I disable the Tools button only in Bex Analyzer so as to avoid the users messing with Query Designer.
    Thanks,
    Recca

    Recca,
    Can you do this via authoirsations instead?  ie. Allow two types of users, Designers who have access and Users who don't.
    User will be able to access the Query Desinger but have no access to create or save. That should suffice.
    If you start tweaking with the toolbar it may have wider negative implications.
    Regards
    Gill

  • Is there a fix for skipping or repeating songs, or for the voice over to come on without pushing any buttons?

    Is there a fix for skipping or repeating songs, or for the voice over to come on without pushing any buttons?
    I only use this 5th generation Shuffle when I run. I don't have headphone issues because I use running headphones meant to handle sweat. However, my Shuffle will, halfway through a song, go back to the beginning, play a few seconds and jump back to the beginning again. Also, when this starts happening, the Voice-over comes on again and again with no buttons being pushed. I keep the Shuffled clipped to the waistband of my running shorts, so it probably does get a little sweatty, but not like it would if it were clipped to the collar of my shirt!
    Is this a problem I'm going to have to live with? I never had this issue with my old Shuffle, which was the first of the clip-on Sheffles.

    Hi punisherbv,
    Are you using the beta? it's not fully secure, so try using Firefox 3 instead. If you are already using Firefox 3, it seems like what Firefox is saying is correct- the site is not supplying identity information. So what you could do is go to that exact site, then click on the little golden lock at the very corner of the page. Then, enter the 'permissions' tab and allow everything. Exit, and then try bookmarking the page!

  • My iPod touch isn't being recognized by my pc. The lock button on it won't work due to water damage, and a friend of mine fixed the problem by restoring it on his computer. How do I restore it without the lock button?

    My iPod touch isn't being recognized by my pc. The lock button on it won't work due to water damage, and a friend of mine fixed the problem by restoring it on his computer. How do I restore it without the lock button?

    first try:
    iOS: Device not recognized in iTunes for Windows
    next
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Robo v9 Show/Hide without Twisties - One button no longer working

    Hey there, as stated I am using Robo v9 with Show/Hide without Twisties (One button) with javascipts.  We have most of our images using DHTML drop-downs and when folks click on "Show All Images" on the page, the GIF changes to "Hide All Images" and all drop-downs (our images) and expanding text are diaplayed.
    It had been working all the time, but now it only works when I right click the topic in the TOC and choose "Edit Topic", then while in the Edit Window (Display view), when I do a View (Ctrl-W) and it displays the page within RoboHelp..I can click the "Show All Images" and it works like it always had.  BUT, if that page is not in the Edit Window, and I right click "Preview Topic", the click "Show All Images" (or on the DHTML dropdown itself) it will NOT show the images, *but the GIF image does properly toggle to "Hide All Images" (and if I do again, then it properly toggles to the "Show All Images" GIF, if I do it again), but now NO images are getting displayed for some reason.  It also NEVER works properly when I publish to our website (even when clicking the DHTML dropdown itself), but the GIF images toggle properly.
    If I right click and choose "Preview Topic" and click "View With" and use Internet Explorer 8 it still never works anymore, unless the topic is in the Edit Window (Display View), so I know the issue is not on the server.  It stops working after I do a generate and run on my pc.  Also when I view it IE8 within Robo (and Allow the Blocked Content to run the scripts), many instances of the same error is shown as:
    Message: Access is denied. 
    Line: 2646
    Char: 3
    Code: 0
    URI: file:///D:/Users/_RBH9_TPO-Generate/v9-testing/ehlpdhtm.js
    ...but I *do* have access to the folder system, but in checking the coding of the ehlpdhtm.js, that area show, where I believe line 2646, character 3 starts at the "values = getAttribute(element, prop );" line below...but maybe something does not exist:
    ==
      //End HTML code invoked function
    function InitEffect( element, prop )
    var values = null;
    if( getAttribute(element,prop)) 
      values = getAttribute(element, prop );
    else if( getAttribute( element, "currentStyle" )  && element.currentStyle.getAttribute)
      values = element.currentStyle.getAttribute( prop );
    else  if (element.style.getAttribute)
      values = element.style.getAttribute( prop );
    if( !values )
      return;
    var functions = new Array();
    ==
    I have a much older backup when restored, it all works properly again in all cases, but I have done so much work since then that I think would need to be manually redone.  I have played with keeping those some javascipts alone (in case I changed something) and updated the rest of the data files I had added, deleted the .CPD file, but it somehow stops working again, probably with some updated file.  I am not sure what specific files could be causing the negative impact that is preventing it from working.  Maybe if I knew what files could impact, I couldrestore those from my old backup.  The newer backups when restored do not work properly, so there was a point in time where something changed and is causing this.
    All prior versions of RoboHelp (v7 and v8) have always worked and still do.  I am using v9.0.1.262, as the latest version has not yet been allowed on our pcs (per security), but since my earlier backup works, I thought it may not be the issue, but wanted to tell you anyway.  ;->
    Any ideas on how I should proceed?  What files may have impact to cause it not to work anymore?  The showhide.js is the only .js to show up as a baggage file.  Also, the DHTML line does exits in each html page's code, as we are still using Robo v7 as the production software and the Show/Hide always works, and I copy them into the respective Robo v9 folders (and if new, then I copy them, then import them), otherwise the newer v7 updated pages are copied over the older v9 html files while RoboHelp is closed.
    Thanks in advance for any info you can provide!

    I may have figured out what to fix to get v9 back to working on the Show/Hide button, but not the "why?" .
    It looks to all be dealing with the Robo automatic html coding of where to locate the .js file(s)...here is a quick overview of this issue and what I did.  When I view the non-working pages within Internet Explorer 8 within Robo (and Allow the Blocked Content to run the scripts), I saw many instances of the same error is shown as this in the log, which implied since I *do* have access rights, maybe the file was just not being found.
    Message: Access is denied.
    Line: 2646
    Char: 3
    Code: 0
    URI: file:///D:/Users/_RBH9_TPO-Generate/v9-testing/ehlpdhtm.js
    OK, here are my findings.  EXAMPLE #1 and EXAMPLE #2 below are excerpts of the same file.  EXAMPLE #1 is from Robo v7 and is copied to the v9 folder after it was updated so our soon to be "production" webhelp will be from Robo v9 (instead of making the same manual updates in Robo v9 as in Robo v7, I copy the updated the .html file to the Robo v9 file system).  Note the direction of the directory slashes of the java scripts listed below, as they are all DOS type slashes (back slashes), EXCEPT for ehlpdhtm.js as it is the ONLY one using UNIX (forward) slashes.
    EXAMPLE #1 (from Robo v7)
    ==
    <link rel="StyleSheet" href="..\..\sty-std-topic.css">
    <script type="text/javascript" language=JavaScript x-save-method=compute-relative
    src="..\..\showhide.js"></script>
    </head>
    <body>
    <robohelp><script type="text/javascript" language=JavaScript1.2 src="../../ehlpdhtm.js"
    x-save-method=compute-relative></script>
    <script type="text/javascript" language=JavaScript1.2>
    <!--
    if( typeof( InitEffects ) != 'function' ) InitEffects = new Function();if( typeof( InitTrigger ) != 'function' ) InitTrigger = new Function();if( typeof( FilePopupInit ) != 'function' ) FilePopupInit = new Function();if( typeof( TextPopupInit ) != 'function' ) TextPopupInit = new Function();
    //-->
    </script>
    ==
    EXAMPLE #2(from Robo v9)
    This is from the restored backup of the Robo v9 files that always work when I restore them, and note they are ALL UNIX (forward) slashes.  These backup files were generated from Importing/Upgrading a copy of the Robo v7 files into Robo v9.
    ++
    <title>[Endpoint Protection] Symantec Overview</title>
    <link rel="StyleSheet" href="../../sty-std-topic.css" type="text/css" />
    <script type="text/javascript" language="JavaScript" src="../../showhide.js">
    </script>
    </head>
    <body>
    <?rh-script_start ?><script src="../../ehlpdhtm.js" type="text/javascript" language="JavaScript1.2">
    </script><?rh-script_end ?>
    ++
    Additional info: The following is from another file from the Robo v9 backup files that always WORK and once again they are ALL UNIX (forward) slashes. 
    ~~
    <link rel="StyleSheet" href="../../sty-std-topic.css" type="text/css" />
    <script type="text/javascript" language="JavaScript" src="../../showhide.js">
    </script>
    </head>
    <body>
    <?rh-script_start ?><script src="../../ehlpdhtm.js" type="text/javascript" language="JavaScript1.2">
    </script><?rh-script_end ?>
    ~~
    BUT since all .js files are referenced in EXAMPLE #1 have DOS slashes (back slashes), EXCEPT for the ehlpdhtm.js, I decided to change the line in ehlpdhtm.js FROM src="../../ehlpdhtm.js" TO src="..\..\ehlpdhtm.js" and IT (this one page) BEGAN WORKING AGAIN after I published.  So having all DOS back slashes DOES work in Robo v9!!!!  BUT it appears that Robo v9 only generates new pages using UNIX (forward) slashes in ALL coding.  I've read about issues like this occurring with the FireFox browser, but we only use IE8, and have not read anything like this related to IE8 issues. 
    So if all UNIX forward slashes and all DOS back slashes can work in Robo v9 in finding and using ehlpdhtm.js, (the Show/Hide buttons function properly) why is this problem existing in Robo v9 when there are mixed "slashes" (using forward and backward)?  ...and the mixed slashes ALWAYS works in Robo v7!  They do not have to all be in the same direction in Robo v7 as it appears to have to be in the newer/more advanced Robo v9.  Why does it matter that all slashes need to be all the same direction, if Robo v9 CAN actually read and figure out the DOS back slashes (formatted by Robo v7 creation) and actually generates UNIX forward slashes for the .js files in new Robo v9 output within the .html?
    More importantly will I have to always do a Global search and replace in Robo v9 to change the direction of the "back slashes" when I copy updated Robo v7 .html files into the Robo v9 folders (instead of manually reworking each change), while in transition from v7 to v9?
    Thanks in advance any information, recommendations, and feedback as your time is greatly appreciated!

  • Adobe Photoshop cs6 problem - it closes after ''move tool'' button

    After I push Move Tool button I cannot use any of the buttons bellow in that tool bar, when I try any button after it on closes the program with windows error ''adobe photoshop cs6 has stopped working''
    os: win 7 64bits.
    other adobe installed : adobe dreamweaver cs6

    OK, it seems to have been narrowed down to the video driver, or to its settings.
    What make and model video card do you have?
    What is the number and date of the installed driver?
    For OpenGL, what are your performance settings?
    Good luck,
    Hunt

  • I have no tools button, so I can't do anything with history or cookies - HELP!! Where is my tools button and how do I get it back???

    I got an error on a site that says I need to clear my cache but I have NO tools button - nothing that shows my history or helps me get to my cookies to delete them. ALL the articles you have start with the tools button. Where is my tools button on my Firefox and how do I get it on my toolbar permanently?????
    I've been at this for 1/2 an hour and am quite frustrated. Please help me!! Thanks!! : )

    Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily.

  • How to put ipod in recovery mode without a home button ???

    how to put ipod in recovery mode without a home button and i cant get in to my devise what can i do ???????????

    Place the iPod in recovery mode using one of these programs:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    or
    http://joshuabailey1997.wordpress.com/2010/09/02/recboot-v1-3/
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    and                                           
    RecBoot tip
    RecBoot may have problems on 64X windows, then try:       
    Tenorshare ReiBoot – Enter & Exit iPhone, iPad, iPod Recovery Mode with a Single Click
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    Installs blootware on PC too

  • Accessing Properties of Individual Tool Buttons via JavaScript

    Hi all!
    I am new to both this forum and scripting Acrobat so please excuse me if the question sounds naive.
    I am trying to find a way to access the properties of individual tool buttons via JavaScript (if there is one). I could not find it yet in JS API Reference. If anybody can help me or direct me to the right way, I will greatly appreciate that.
    For example, in 'Comment & Markup' toolbar one can right-click and change the 'Tool Default Properties' of various markup tools like Highlighter, Line, Rectangle etc. Is it possible to access these properties through JavaScript so that buttons can be added for dynamically changing these? Hope this makes sense!
    Thanks in advance for your interest and help.
    John.

    Hi Andy, thanks for the answer. It was pretty simple - I just added an authorization scheme to the report column, wehre the javascript is executed. Christof

  • Add / Delete a row in a table without using a button

    Hi,
    I was just wondering if it was possible to remove or add a row in a table without using the button?  I noticed that in all examples, it always involve putting code in the button click event but I wanted to add or delete a row in a table based on the fact if the row contains a certain value or not.  Is that possible?
    Much appreciated,
    Vincent

    Vincent,
         Here is the updated file..
    https://acrobat.com/#d=bVDBNM0pnS2IpfE58V01Tg
    You have checked the checkbox "Repeat subform for each Row" for Header Row under IndTable1. You need to do at Row1 level of Table1.
    I bound the Row1 of Table1 to <Row1> tag in your XML which can repeat multiple times.
    I wrote the code in the Doc Ready event of the Test1 field to check whether the value is existing or not. If it does not have a value, then I am removing the instance of the Row1 by passing the current index.. (You can check the code)..
    While creating a data connection using XML you need to make sure that the below structure is repeated atleast 2 times. And while previewing you can use make a copy of this same XML and remove Row1.
      <Row1>
        <Test1>Individual Name 1</Test1>
      </Row1>
    Thanks
    Srini

Maybe you are looking for