How can we add a menu in Adobe Illustrator CS3?

Hi
I want to create a new menu in Adobe Illustrator menu structure, and I want to call another application through that menu. After hours of searching in web I came to know that  I have to work with Plugin programming. So I downloaded the adobe illustrator SDK CS3 and started the programming using Visual Studio .NET 2005 with the sample codes provided with the SDK. And I am still  not able to find out the any solution for adding a new menu. The problem is the the documentation provided with the sample code is too short, I am not able to understand the control flow , the functions used in the sample code.
please help me!
Sreejesh K V

Hi,
Thank you very much for your help
I am not clear about the following code.
extern AIErr addMenu( SPInterfaceMessage *message ) {
     AIErr error = kNoErr;
     // Add a menu item to the About SDK Plug-ins menu group.
     SDKAboutPluginsHelper aboutPluginsHelper;
     aboutPluginsHelper.AddAboutPluginsMenuItem(message,
                    kSDKDefAboutSDKCompanyPluginsGroupName,
                    ai::UnicodeString(kSDKDefAboutSDKCompanyPluginsGroupNameString),
                    "Adobe Plugin...",
                    &g->aboutPluginMenu);
     // Add other menus.
     AIMenuItemHandle          throwAwayAIMenu;
     AIPlatformAddMenuItemData throwAwayMenuData;
     AIMenuGroup                    throwAwayMenuGroup;
     char strBuffer[255];
     #define kMenuPlayMenuGroup     "Menu Play Group"
     #define kSDKMenuGroup     "SDK Group"
     // First we create a normal plug-in menu to use a hierarchical root                                   
     throwAwayMenuData.groupName = "Window Utilities";
     error = sADMBasic->GetIndexString(message->d.self, kMenuStringResID, 1, strBuffer, sizeof(strBuffer));
     if (error)
          goto error;
     throwAwayMenuData.itemText = SUctopstr ( strBuffer );
     error = sMenu->AddMenuItem( message->d.self, kSDKMenuGroup, &throwAwayMenuData,
                                        0, &throwAwayAIMenu );
     if ( error )
          goto error;
     // Now we declare the menu item a menu group
     sMenu->AddMenuGroupAsSubMenu( kSDKMenuGroup, 0, throwAwayAIMenu, &throwAwayMenuGroup );
     // Now we can add menu items to it.
     throwAwayMenuData.groupName = kSDKMenuGroup;
     *strBuffer = '\0';
     error = sADMBasic->GetIndexString(message->d.self, kMenuStringResID, 8, strBuffer, sizeof(strBuffer));
     if (error)
          goto error;
     throwAwayMenuData.itemText = SUctopstr ( strBuffer );     
     error = sMenu->AddMenuItem( message->d.self, "Auto Update 1", &throwAwayMenuData, 0,
                                        &throwAwayAIMenu );
     if ( error )
          goto error;          
     // enabled for paths and no masks in the selection
     error = sMenu->UpdateMenuItemAutomatically( throwAwayAIMenu, kAutoEnableMenuItemAction,
                    kIfPath | kIfGuide, kIfMask,
                    0, 0,
                    0, 0 );      // don't care about other update options
     if ( error )
          goto error;     
     sMenu->AddMenuGroupAsSubMenu( kMenuPlayMenuGroup, 0, throwAwayAIMenu, &throwAwayMenuGroup );
     throwAwayMenuData.groupName = kMenuPlayMenuGroup;
     *strBuffer = '\0';
     error = sADMBasic->GetIndexString(message->d.self, kMenuStringResID, 2, strBuffer, sizeof(strBuffer));
     if (error)
          goto error;
     throwAwayMenuData.itemText = SUctopstr ( strBuffer );     
     error = sMenu->AddMenuItem( message->d.self, "Menu Play", &throwAwayMenuData, 0,
                                        &throwAwayAIMenu );
     if ( error )
          goto error;          
     error = sMenu->UpdateMenuItemAutomatically( throwAwayAIMenu, kAutoEnableMenuItemAction,
                    0, 0,      // don't care about what's in artwork
                    kIfGroup, // is selected and
                    kIfTextPath,      // are not selected
                    0, 0 );      // don't care about other update options
     if ( error )
          goto error;     
     Can you give me the sample code to call the functions within the SDK API.
For example adding an url in the plugin menu, calling another application ( .exe).
I just tried to do myself but it ended in syntax error because I am not familiar
With the VC++ programming.
Thanks
Sreejesh k v

Similar Messages

  • How can I add hebrew language to Adobe Creative Suite 5.5

    How can I add hebrew language to Adobe Creative Suite 5.5 ?

    Language swaps are only supported for current release versions (CS6). 
    http://helpx.adobe.com/x-productkb/policy-pricing/order-product-platform-language-swap.htm l

  • How can I uninstall old versions of Adobe Illustrator?

    How can I uninstall old versions of Adobe Illustrator?

    This is for uninstalling CS2, but you might find it helpful. EDITED: but watch out, since I don't know if trashing any of these will remove currently needed Illustrator files, if you have a later version.
    To uninstall Adobe Creative Suite in Mac OS 1 -- Double-click Activity Monitor.app in Applications/Utilities, select AHCRemind, and click Quit Process.
    2 -- If you intend to install the product on a different computer, transfer the activation. (See “To transfer the product activation” on page 1.)
    3 -- If you want to uninstall Adobe Acrobat, double-click the uninstaller in Applications/Adobe Acrobat 7.0 Professional, and follow the on-screen instructions.
    4 -- If you want to uninstall Version Cue 2, double-click the uninstaller in Applications/Adobe VersionCue CS2, and follow the on-screen instructions.
    Note: If the Version Cue uninstaller fails, see the alternative procecure, “To remove Version Cue manually” on page 4.
    5 -- From the Applications folder, drag the following items, if present, to the trash: Note: After you drag the items to the trash in steps 5-8, you must empty the trash before you can reinstall
    Adobe Creative Suite 2 on the same computer. • Adobe Acrobat 7.0 Professional • Adobe VersionCue CS2 • Adobe Bridge
    • Adobe GoLive CS2 • Adobe Illustrator CS2 • Adobe InDesign CS2 • Adobe Photoshop CS2 • AdobeHelpCenter.app
    6 -- From the Utilities folder, drag the following items, if present, to the trash: • Adobe Utilities • Adobe Updater.app
    7 -- From the Library folder, drag the following items, if present, to the trash: • Application Support/Adobe/AdobeHelpData • Application Support/Adobe/Assistance • Application Support/Adobe/StartupScripts/Workflow Automation Scripts
    • Preferences/Adobe/Workflow • Preferences/com.adobe.ActivationUtility.plist • Preferences/com.adobe.GoLive.plist • Preferences/Adobe Save For Web GL 8.0 Prefs
    8 -- From the Users/[user name] folder, drag the following items, if present, to the trash: • Library/Preferences Panes/Opera Preferences
    • Library/Caches/Opera Cache
    • Documents/AdobeStockPhotos
    To remove Version Cue manually (Mac OS only, not recommended)
    If you’ve accidentally removed parts of the Version Cue installation manually or if the uninstaller fails, you have to remove the remaining installed Version Cue components manually.
    1 -- From the Library/PreferencePanes folder, drag the Version Cue CS2.prefPane folder to the trash. 2 -- From the Library/Preferences folder, drag the com.adobe.versioncueCS2.plist file to the trash. 3 -- From the Library/StartupItems folder, drag the AdobeVersionCueCS2 folder to the trash. 4 -- From the Applications folder, drag the Adobe Version Cue CS2 folder to the trash.
    5 -- From [user home]/Library/Preferences/Adobe, drag the Workflow folder to the trash. 6 -- (Optional) From the [user home]/Documents folder, drag the Version Cue folder to the trash.

  • How can I add "Tools" menu bar item to firefox orange button

    After upgrading to FireFox 4 I decided to hide the menu bar, doing so I am not able to access the addons like "tamper data" which can be accessed only from the tools item of the menubar. Is there a way to customize the orange button of the firefox4 to add tools menu item?

    Thanks for pointing me to the add-on. But is there a way by which I can edit any xul file or any customize option like the customize toolbar.

  • How can I add page numbers using Adobe Reader?

    I am trying to add page numbers to my document only using Adobe Reader.  Is that possible?  Or do I need to use Adobe Acrobat?

    The free Reader can do very little more than reading (opening) PDF files. I'd use Acrobat.

  • How can I add my software in Adobe's Third-party plug-ins for Adobe Premiere Pro ?

    Hi,
    Our company have a software called Moyea Importer for Adobe Premiere.
    Moyea Importer for Adobe Premiere is a recommended FLV, MPG, RMVB, HD  video import plugin for Adobe Premiere Pro. This plug-in enables users  to import FLV videos with various codec like AVC/H.264, AAC, Screen  Video, Nellymoser, MP3, PCM, and Sorenson H.263. Besides FLV video, the  plug-in allows AVCHD import and HD video import in MTS, M2TS, TP, TS,  and MKV formats.
    Moyea Importer for Adobe Premiere do not convert your video so it keeps  video quality for you. The plug-in automatically detects the Adobe Premiere versions on your  machine and you can choose the versions to install the plug-in. It  currently supports Adobe Premiere Pro 1.0/1.5/2.0/CS3/CS4 and Elements  3.0/4.0/7.0/8.0.
    I notice in Third-party plug-ins for Adobe Premiere Pro this part, Adobe didn't get any such plug-ins. They only have two file support plug-ins and Moyea Importer can fill the blank.
    Now I want to submit this software on Adobe's site but I don't know where to submit or who I should to contact. Any suggestions? I really need your help and I am sure it is really good software.

    Any suggestion? Admin of this board? Who can help me

  • How can I add a menu button that will replay the autoplay startup movie

    I want to link from the menu to the autoplay startup movie on the DVD, but I want to do this without having to put the movie on the dvd twice. Can It be done?

    John:
    Click on the item in the autoplay box and select "Loop slideshow" from the Advanced menu. That will continuously play the slideshow till your manually stop it.
    OT

  • How can I open .mfg files in adobe illustrator?

    I have CS4 and I do already have the EscoArtwork plug in to open .ARD files but I can not open or place .MFG files created with ArtiosCAD.
    Any suggestions? Thanks

    Hello James,
    Unless Esko makes a plug-in for them in the future, the only way to open them is with ArtiosCAD and then exporting to an Illustrator compatible format. I don't think a plug-in will be possible since MFGs are very complex. Not only are they used for layouts, but they may also have dieboard, stripping, and counter data. They also contain embedded ARD files with their own sets of layers.
    The best thing to do is ask the person providing them to also make you an EPS or DXF.
    RC

  • How can i add a transparent image in adobe premiere 6.5

    Hi all ,
    How can i add a image in adobe premiere 6.5.  I tried to put the image tga and when i import the image to adobe premiere it has white background and it is not transparent ??
    please if any one can help me
    best regards

    I do not have Premiere 6.5 any more on my pc so its my heart and it has been a while.
    Rightclick on the tga and go to video options? transparancy settings. Now you select the track? matte key from the dropdown keymenu and i think the pagepeel has to be selected.

  • How can I add an information (including pic, text and button) area in the menu?

    The picture below is captured from on video in Adobe Muse official website. How can I add an area just like the picture shows? I mean the three sleeping bags, texts below and the learn more button.
    Thank you.
    (from http://tv.adobe.com/watch/creative-cloud-for-design/adobe-muse-november-2013-hide-menu-nav igation-on-rollout/)

    This tutorial <http://helpx.adobe.com/muse/tutorials/widgets.html> has a section titled "Hiding Composition widgets on rollout to create submenus" which covers how to use a Composition widget for this purpose.

  • How can I add more than one same spry menu (eg. collapsible menu)  with in different styles (font size, color, background, etc) on current page?

    How can I add more than one same spry menu (eg. collapsible menu)  with in different styles (font size, color, background, etc) on current page?

    Hi Nancy,
    This screenshot was only for imagination. A part of the code (not all) is below.  In the code there are some background images but they are not seem in live mode.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="css/my_site.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css"/>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <style>
    #CollapsiblePanel1 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-color: #003366;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel1 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        line-height: 52px;
    #CollapsiblePanel1 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/international.jpg);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel2 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel2 .CollapsiblePanelContent {
        background-color: blue;
    #CollapsiblePanel3 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel3 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel3 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel4 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel4 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel4 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel5 .CollapsiblePanelOpen .CollapsiblePanelTab {
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        font-size: 18px;
        line-height: 52px;
        color: #FFF;
    #CollapsiblePanel5 .CollapsiblePanelTabHover .CollapsiblePanelTab {
        background-color: #003366;
        color: #FFF;
        text-shadow: 1px 1px #000;
        font-weight: bold;
        background-image: url(images/TR_Col-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    #CollapsiblePanel5 .CollapsiblePanelClosed .CollapsiblePanelTab  {
        background-color: #C3CFDF;
        border-radius: 5px 5px 0px 0px;
        color: #999
        text-shadow: 1px 1px #000;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: bold;
        background-image: url(images/TR_Gray2-WEB.png);
        background-repeat: no-repeat;
        line-height: 52px;
    </style>

  • How can I add additional submenu items to Spry Menu Bar?

    The drop down header only allows for for 2 submenus - ie. child and grandchild pages
    How can I add a third or fourth submenu - ie great grandchild and great great grandchild pages?

    Its OK! I've just found an answer:
    http://forums.adobe.com/message/1049136#1049136
    PS. I did searching before I posted - but I didn't spot this till afterward

  • When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    Hi,
    I would suggest you to uninstall Adobe Reader using the cleaner tool and then re-install the latest version.
    Adobe Cleaner Tool:- Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs.
    Latest version of Adobe Reader:- http://get.adobe.com/reader/
    If you still experience the same issue, please share the following information:-
    - Screenshot of Adobe Reader showing printer options
    - Screenshot of Microsoft Word showing printer options
    - Screenshot of control panel- Control Panel\All Control Panel Items\Devices and Printers
    Regards,
    Nakul 

  • How can I add the hard drive icon to the menu bar on a MBPr

    How can I add the hard drive icon to the menu bar on a MBPr?  I have downloaded Google Earth and it wants me to drag it to the hard drive for install. I was able to display the icon but now I would like to put it on the menu bar. Is this possible? Or can I add it to the hardware section under system preferences?
    I'm a new Apple user, coming out of the dark ages of a lifetime in the PC Windows world.
    Thanks

    It's on your Desktop, is it not? You cannot put it on the menubar through OS X although you may find third-party utilities that will. If you want it on the Desktop:
    Select Preferences from the Finder's Finder menu and check the desired boxes:
    Click on the Sidebar icon in the toolbar to set what you want displayed in the Sidebar.

  • How can I add bookmarks to documents in Adobe Acrobat

    how can I add book marks to a document in Adobe Acrobat

    Open the Bookmarks panel on the left and click the New Bookmark icon in it, or simply press Ctrl+B.

Maybe you are looking for

  • VOICE MEMOS R GONE HELPPP

    Hi, i recently restarted my ipod by mistake and everything got deleted however i had alreaedy saved all the pics before this. problem is that all my voice memos r gone and i never made a backup file earlier. what do i do???????????i need 2 recover th

  • Restricting for creation or PO for material with other purchase group

    Hi,   We have one requirement  we want to restrict the user for creation of purchase order for the materials which is not in there purchasing group on ME21N  in order data we enter the Pur. Group  e,g  101  and if user enter the material XYZ  for whi

  • Why is the cloning and healing tool in lightroom 5 no longer showing the stamp where it is replacing from?

    When I use the cloning and healing tool it used to show a stamp indicating where it was replacing from. It suddenly stopped working. I can still remove spots but cannot move it around to see where I could use alternate space to clone or heal.

  • Connection to text datasource fails with REP-4100

    I built a Report with text datasource; doing like the "how to" document tells: (set up the textpds.conf, attach text datasource to the report) I use the file:///&<p_file> user parameter to define the datasource file and location like described in thi

  • SWIFT code change

    Dear, one of our banks changed the SWIFT code, we need to update it in Bank Master, do we need to update bank data on each vendor were we have this SWIFT or it will be updateted automatically after the change in BANK Master? Thank you for help