Is it possible to know which tool is selected

I've successfully registered for the 'slct' event and have Photoshop calling back to my script so that I can handle it. However, I'm trying to target the marquee select tool specifically and so I need to know which tool has been selected. Is there any way to find that out?
Thanks for your help!
Jeremy

I probably need to provide better context for my question. I apologize for not doing so beforehand; it was late at night by the time I decided to finally ask the experts here (after hours of unsuccessfully attempting to figure this out on my own). So here it is (let me know if you need more information):
First, pictured at left are the Photoshop tools to which I am referring. When a user selects a tool from the tool palette, I am able to get the message. But what I don't know is how to determine which tool has been selected so that I can accurately reflect the state of the marquee tool in my panel UI. Here is a snippet of the handling code in AS3:
private const SLCT_INT:int = Photoshop.app.charIDToTypeID('slct');
private function myPhotoshopCallback(eventID:Number, descID:Number):void { 
var desc:ActionDescriptor = new ActionDescriptor();desc.fromID(descID);
switch (eventID){
 case SLCT_INT:
//handle slct case
//check if marquee is selected and if so select the panel's marquee button, else deselect the panel's marquee button 
jsxInterface.popAlert(
"slct");
break; 
default: 
//should not get here 
break;}
I know I have everything hooked up correctly because I am calling a JSX function to show an alert and that is showing up correctly:
//JSX function call from AS
function popAlert(s) {
    alert(s);
While debugging, I see that the eventID = 1936483188:
So... is there any way to further disambiguate which tool is triggering the event?
Thank you in advance for any help you can provide. I'll keep digging into this, but I hope someone with more expertise than I can chime in as I am stumped at present.
Jeremy

Similar Messages

  • I have synced two devices in FF. Is it possible to know which computers are synced using? I am worried about someone figuring out my email address and password.

    I have synced two devices in FF. Is it possible to know which computers are synced using? I am worried about someone figuring out my email address and password.

    HI nilhanw,
    No currently there is not manage devices, only manage device. However changing the password will change the certificates on all the devices within less of an hour.
    I hope this helps.

  • SO Pricing User Exit - How to know which item is selected for re-pricing.

    Hello Experts,
    I have to modify material data when user does a update pricing in VA02, the problem is...How do I know which item is selected for re-pricing (in MV45AFZZ)? I am using user exit USEREXIT_PRICING_PREPARE_TKOMP.
    For Ex: If my order has 3 items and 2nd one is selected and then 'Update' is done on 'conditions' tab. Above pricing user exit is triggered 3 times for all items, so I cant check XVBAP.
    Your help will be appreciated.
    Thanks,
    Sagar

    Hi J@Y,
    Thanks for reply. But USEREXIT_PRICING_PREPARE_TKOMP is triggered for all items, so how do I know which is current item?
    If you see in debug mode, xvbap-posnr and tkomp-kposn will have 10,20,30 everytime (for 3 times). How do I know if user has selected 20?
    Thanks,
    Sagar

  • How do you specifically let the Itemlistener know which Item was selected..

    How do you specifically let the Itemlistener know which Item was selected in a JComboBox? Anyone has any idea? What should the coding look like?

    getSelectedItem()

  • How do you specifically let an Itemlistener know which Item was selected?

    How do you specifically let the Itemlistener know which Item was selected in a JComboBox? Anyone has any idea? What should the coding look like?

    Hi,
    Try this method
    String[] petStrings = { "Bird", "Cat", "Dog", "Rabbit", "Pig" };
    JComboBox petList = new JComboBox(petStrings);
    if ( petStrings[0]==(String)petList.getSelectedItem() )
    System.out.println("I'm a bird");
    }else{

  • Hierarchical Tree. How do I know which node is selected.

    Hi All,
    I have a Hierarchical tree, How do I know which node is selected
    by the user. Similar is the case with list item.
    Thank You,
    Raj.

    Raj,
    For the hierarchical tree, use the when-tree-node-activated
    trigger and the Ftree.Get_Tree_Node_Property built in to identify
    the node that was selected.
    For a list box use a when-list-changed trigger. To refer to the
    value of the selected list item you can use the block.item
    syntax.

  • Is it possible to know which iTunes song my music is being matched to?

    I have a lot of ripped music that I aquired over many years, but I no longer have the albums. In order to have the correct artwork displayed and proper info tagged on my music, it would be really nice to know which exact song my music is being matched with in iTunes. Often times, you can find out by listening and length of song, but many times this turns out to be too tedious of a detective issue.
    So is this something than can be relatively easily figured out?

    Thank you for your response.
    I actually have Tune Up, and whereas the software is somewhat glitchy it does a decent job. However, I would really like to know which specific song in Apple's iTunes library my song is matched to.
    Thanks again.

  • No Matter which tool I select I get Eraser Tool

    I've been using CS4 problem free on my system until just the last 2 weeks.
    The problem is that when I go to work on an image, no matter which tool is
    actually selected, the eraser tool is applied. So, say I go to crop an image,
    I select the crop tool, click on the image to draw my crop box and I get a
    white line and in the history palette it says eraser. The problem goes away
    temporarily if I reboot the computer but simply relaunching Photoshop makes
    no difference. All I've been working on lately are small JPEGs about 1000 pixels
    high. Also, I get no error messages. Oh also, I tried resetting the crop tool  and
    that did nothing.
    System specs;
    Photoshop 11.0.1
    OSX 10.5.8
    RAM 5GB
    First gen Octo (2007)
    Thanks,

    I just wanted to let anyone interested know that this was finally diagnosed as a HD going bad.
    One of the HDs in my internal RAID finally bit the dust today and after pulling that out there
    are no more tool issues. PS was using the RAID for a scratch disk.
    I thought it was the Wacom driver but after a week the symptom reappeared.
    And I tried everything to figure it out until this morning it made itself apparent.
    Just another random thing that can happen with a dying drive.
    Thanks again to those that offered suggestions,
    Jeffrey

  • Knowing which Row was selected when Hide/Show is clicked

    Hi everyone,
    I have an advanced table, with some search criteria that works. I have added a "detail" flag and when I click the link Hide/Show, the details are displayed.
    How can I get in the code which Hide/Show link was clicked? I am more interesting in getting the Row from the VO which the Hide/Show link was clicked?
    When I get the "event" parameter from the pageContext (pageContext.getParameter("event") ) it returns "hide" or "show", but I don't know which was row that was clicked.
    What I am trying to accomplish is the following. In my advanced table I have "Select" checkBoxes. I want to add the "Hide/Show details" functionality and try to have the details displayed in an advanced table with its own "Select" checkBoxes.
    Can it be done?

    Hi,
    Create a Primary Key in View Object's Query for the table.
    Now to know on which row hide/show has been clicked you need to capture the row reference which is nothing but Primary Key for that row.
    Use this code in processformrequest:
    if(("hide".equalsIgnoreCase(pageContext.getParameter("event"))))
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    TestMassDeleteSearchVORowImpl row = (TestMassDeleteSearchVORowImpl)am.findRowByRef(rowReference);
    String lname = (String) row.getSelectFlag();//to get the value of checkbox
    Thanks,
    Gaurav

  • Is it possible to know which thread created a component?

    Hi,
    I have two thread running, one of them opened up a model dialog and waits for user interaction. Between, I got a reference to the model dialog object in my second thread and I want to know the thread name which has shown/created this component. Is is possible?
    thanks in advance .............

    If you need it, you can arrange to store it just as you stored the reference to the dialog component itself.
    But why would you need it?

  • May i know which tools used for spell check in iphone 4..?

    Hi,
         I want to know what kind of tools used in iphone 4 for spell check. It works fantastic while typing messages and it pop up related words automatically..I liked it very much..So, i want to know what kind of tools they used to achieve this..
    Thanks..

    im pretty sure that it private information.  Apple doesn't want other companies knowing their secrets.

  • Is it possible to know which bluetooth services are available with a MIDlet

    ...Bluetooth Services like Serial Port Support, Obex File Transfer, Dial-up Networking...
    I've already try to search with "getProperty()" (api.version, n� max. of devices...) but it awlays return "null" !!!!. I'm a beginner in j2me BLUETOOTH. Thanks!

    Varies from phone to phone.
    I believe it is recommended to use a port between
    16001 and 16999 on a J2me app as these are almost
    always free.
    In my opinion the best way to find out what will work
    and what won't is to create a small app which will
    try to create an SMS connection on a specified port
    (specified through something like a textbox) and
    which will display something indicative if an
    IOException is thrown during the process of
    creation.
    Most manufacturers usually also have documentation on
    this on their developer sites...hi i have a similar problem with they guy above
    i have installed a camera network wich has acces to web from port 8080 i have access from any computer that has internet but when i connect with the java app provided from the cameras company it throws "java.lang.securityexception untrusted midlet attempted to connect to a restricted port" i was wondering if i change te port tha i connect will i have access from that program?? and if yes wich port should i use? i am asking because its not easy to have access to the router to change the port forwarding settings thank you in advance

  • How to know which radiobutton is selected in case of dynamic UI generation and how to pass it to back end?

    This is how I have written for dynamically generating radiobuttons. I have some categories on left view, by selecting which, i will get corresponding questions and it generates 5 options, and user selects one and I need to pass it to back end. I am using IModifiableSimpleValueSet for filling the radiobuttons.
    ISimpleTypeModifiable myType = wdThis.wdGetAPI().getContext().getModifiableTypeOf("Ans.option");
      IModifiableSimpleValueSet values = myType.getSVServices().getModifiableSimpleValueSet();
    values.put(d,wdContext.nodeAns().getElementAt(d).getAttributeValue("option").toString());
    Kindly help, if I am missing something.
      IWDRadioButtonGroupByKey radioKey = (IWDRadioButtonGroupByKey)view.createElement(IWDRadioButtonGroupByKey.class,           "ansRadio"+radio_count++);
      IWDMatrixHeadData matrixHead_radio = (IWDMatrixHeadData)radioKey.createLayoutData(IWDMatrixHeadData.class); 
      IWDAction radioAction = wdThis.wdCreateAction(IPrivateRightView.WDActionEventHandler.SELECT_ANS, radioKey.getId());
      wdComponentAPI.getMessageManager().reportSuccess("radio id"+radio_count);
      radioKey.bindSelectedKey("Ans.option");
      radioKey.mappingOfOnSelect().setString("optionID", radioKey.getSelectedKey());
      wdContext.currentContextElement().setSel_ans(wdContext.currentAnsElement().getOption());
      radioKey.setColCount(1);
      questContainer.addChild(radioKey);

    Hi Jun,
    I have to prepare a questionnaire. Some set of questions will be there in backend having 5 options. Based on category I have to fetch questions and its corresponding answers. Ans is the node which I am filling with choices, based on questions.

  • Is it possible for Applescript to know what link is selected in the Indesign Links Palette?

    Hi there,
    I've written some ApplesScripts for Indesign that act on all links, missing links and/or selected links, but what if I wanted to perform an action on a link that is only selected in the links palette?
    Is it possible for AppleScript to know which link is selected in the Indesign links palette?
    Regards,
    David

    Hi czigrand,
    Thanks for visiting Apple Support Communities.
    Currently, you can gift dollar amounts or individual items (EG. songs) on the iTunes Store. See this article for more information:
    In the iTunes Store, you can gift a dollar amount or specific music, movies, TV shows, or apps from your iPhone, iPod touch, iPad, Mac, or PC. Follow these steps to send a gift from the iTunes Store.
    iTunes: Sending iTunes Gifts
    http://support.apple.com/kb/HT2736
    Best Regards,
    Jeremy

  • Which tool is better for ETL?

    I want to transfer data from RLDB to Essbase, there are many method and tools, I don't know which tool is better for my case. Now, what I am doing now is:
    1. Create views in Oracle
    2. Export view to falt file
    3. Import flat file to Essbase using rule file and MaxL import script.
    4.The data size: flat file rows 3-4 million, time used: 13 hours
    I want to use more powerful ETL tools, such as: Informatica PowerCenter, OBIEE, FDM, EIS, ..., I have basic knowledge for the above tools, but don't know which tool is better for my case? Please advise?

    First to streamline your existing process, you could get rid of step 2 and add a odbc connection to the server and Sql statement to the load rule to pull directly from your Oracle database. Of course with the number of rows you have, if you use the same extract multiple times, I would create a table to load into from the view and pull from that table.
    As for using an etl (Elt) tool, Informatica is pretty powerful and there is a version of it (although not supported in the future called DIM). I might go the ELT route with ODI(Oracle Data Integrator). In the future I might use OBIEE, but I don't think it fully ready for Essbase until the next version and I don't think it will rank on the same level as a full ETL tool for conversions.
    Edited by: GlennS_2 on Jan 2, 2010 9:58 AM
    As for EIS, I would not use it, but might use Essbase Studio. (It can use OBIEE as a source) again this is not an etl tool, it would just take youe existing views and load them.

Maybe you are looking for