Can what information I leave the descriptor in the event callback function?

I have a plugin automation "A-plugin" when starting it uses AddNotify to set a reminder in waiting for an event to filter:
sPSActionControl-> AddNotify (pluginRef, eventFilter, reminder, this);

Then run a plug-in "B-plugin" filter, callback function will be called:
void CallBack (DescriptorEventID eventID, PIActionDescriptor desc, PIDialogRecordOptions opt, void * data) {...}

As a reminder, how can I get enough information of the "B-plugin" that raise the event? I knew that A plugin can get the name of the plugin-B, just use "keyUsing" as the key to query the descriptor, if the value of the result is the name of B-plugin, I'll do more surgery. But this method is not reliable because it is hard coded, the B-plugin name may change (e.g. in another language). So someone knows it is it possible to get specific information from the B-plugin? Any suggestion will be appreciated.

For filters of the event ID must be unique. Or in other cases of plug-in keyUsing ID must be unique.

Make sure that generate you a unique id for your filter and that place in your resource HasTerminology. Then use this resourceID and StringIDToTypeID to get your event ID. Now, your callback is called only for plug-ins and you know it's B-plugin. Because plugin A and plugin C and X-plugin you have generated a different id to use.

It's AutomationFilterPiPL.r, the 'AuFi"is ignored because that Photoshop found a string as the fourth parameter id.

You can use four character codes, but the chances of you be unique becomes less likely.

HasTerminology

{

"AuFi."

"AuFi."

16000,

'adc931a0-cfe2-11d5-98bf-00b0d0204936 '.

},

Tags: Photoshop

Similar Questions

  • How can I access the data associated with an event within the event handler function?

    Hello

    In my LabWindows code, I try to use a DLL that has been developed in .NET (c#).  I used the built-in labwindows Wizard that converts the DLL to a usable 'instrument'.  Almost everything seems to work, except that I have 1 problem.

    There is an event (defined in the DLL) that I am able to detect.  I know that the reminder of the event is called at the right time.  But the problem is that in this function, I can't access the data that is supposed to be attached to the event.  It worked fine in c#, but I don't know how to do in LabWindows.  Here's what looked like in c# event handler function:

    void AppLoaderEventCallback (CommonLib.CommandResult MyResults)

    {

    MyResults is used in the body of this function

    }

    But in LabWindows, I can't seem to access the MyResults data structure.  Here's what I do:

    public static int CVICALLBACK AppLoaderEventCallback (CommonLib_CommandResult MyResults)

    {

    I can't access MyResults here

    }

    Can you help me with this?  I'm doing something wrong?

    Thank you very much for your help.

    -Mike

    I think that your statement of callback function is perhaps not quite correct. Look using the parameter "callback function" function Panel of the generated __Create function associated with this event. This shows the declaration of the callback function - make sure that your callback function is declared in the same way.

  • What to do during the start up function keys?

    What to do during the start up function keys?

    I understand that you will learn and new, that's why I looked up the following to help you learn more about your computer and Vista

    http://windowshelp.Microsoft.com/Windows/en-us/default.mspx

    Vista Help and how items

    http://windowshelp.Microsoft.com/Windows/en-us/default.mspx

    What is the system restore

    http://h30434.www3.HP.com/PSG/

    HP Support Forums

    http://search.HP.com/query.html?cc=us&lang=en&Qt=system+recovery&la=en

    Search for system recovery

    If you have problems with Windows Update, feel free to start a new thread about the same.

    For any other information of Vista: -.
    http://social.answers.Microsoft.com/forums/en-us/category/windowsvista

    HTH

    TaurArian [MVP] 2005-2010 - Update Services

  • I noticed that my remote access has been activated twice in a week but I did not. no way to verify when, what, who activated via the event log,...?

    I noticed that my remote access has been activated twice in a week but I did not. no way to verify when, what, who activated via the event log,...?

    Hi dewthisnow,

    The information office for remote access must be in the security log.

    For more information, see:

    To disable remote desktop

    To view the logs in Event Viewer, see:

    Using the event viewer        

    Procedure to view and manage event logs in Event Viewer in Windows XP

  • pass data to the event handler function

    I'm trying to pass the value of the event handler function, but I get the following error. Can someone please tell me what I'm doing wrong?

    1067: constraint implied a Sub type value to a type unrelated function

    Here is the code

    private void myClickListener(myid:int):void {}
    Alert.Show ("button was clicked");
    }


    public void handleStringResult(event:ResultEvent):void {}
    catInfo = event.result as ArrayCollection collection;
    for each {(var o: Object in catInfo)
    var b:Button = new Button();
    b.label = o.FILLCOLOR;
    b.ID = o.CATID;
    b.setStyle("fillColors",['#'+o.FILLCOLOR,'#'+o.FILLCOLOR]);
    b.setStyle ("color", "#FFFFFF");
    b.setStyle ("fontFamily", "Arial");
    b.setStyle("fontSize",8);
    b.setStyle ("textRollOverColor", "red");
    b.addEventListener (MouseEvent.CLICK, myClickListener (o.CATID));
    myvbox.addChild (b);
    }
    }
    []] >

    "Merlyn MM" wrote in message
    News:gb901m$2QD$1@forums. Macromedia.com...
    > Of course, here's the code. I am very new to flex and if my code is not
    > sense
    > so please let me know the correct way to proceed. I really appreciate
    > you
    > take the time!
    >
    >
    ' > http://www.adobe.com/2006/mxml '.
    > layout = "absolute".
    > backgroundColor = "#FFFFFF."
    > initialize = "myService.getcategories.send ()" > "
    >
    > useProxy = "false".
    "" > wsdl = " http://devsite/rc/category.cfc?wsdl"
    > showBusyCursor = "true" >
    >
    > result = "handleStringResult (event)" "
    > fault = "Alert.show (event.fault.message)" / > "
    >
    > fault = "Alert.show (event.fault.message)" / > "
    > //Need CATID to pass the ID of category here
    >
    >
    >
    >
    > > import mx.collections.ArrayCollection;
    > import mx.rpc.events.ResultEvent;
    > import mx.rpc.events.FaultEvent;
    > import mx.controls.Alert;
    > import mx.controls.Button;
    >
    > [Bindable]
    > private var catInfo:ArrayCollection;
    >
    > private void myClickListener(myId:String):void {}
    >
    > myService.getcounties.send () / / I need to send the catid here to the
    > webservice
    > }
    >
    >
    > public void handleStringResult(event:ResultEvent):void {}
    > catInfo = event.result as ArrayCollection collection;
    > for each {(var o: Object in catInfo)
    > var b:Button = new Button();
    > b.label = o.FILLCOLOR;
    > b.id = 'btn' + o.CATID;
    >
    > b.setStyle("fillColors",['#'+o.FILLCOLOR,'#'+o.FILLCOLOR]);
    > b.setStyle ("color", "#FFFFFF");
    > b.setStyle ("fontFamily", "Arial");
    > b.setStyle("fontSize",8);
    > b.setStyle ("textRollOverColor", "red");
    > b.addEventListener ("click", myClickListener);
    > myvbox.addChild (b);
    > }
    > }
    > ]]>
    >

    I would like to change it to this:

    private void myClickListener(e:Event):void {}

    I do not see where you use the ID, but to do it,
    Use this code:
    var e.currentTarget.data = myID;

    myService.getcounties.send () / / I need to send the catid here to the
    WebService
    }

    public void handleStringResult(event:ResultEvent):void {}
    catInfo = event.result as ArrayCollection collection;
    for each {(var o: Object in catInfo)
    var b:Button = new Button();
    b.label = o.FILLCOLOR;
    Note that you could not have used your ID
    as a 'handle' to anything, so I replaced
    This logic with something you _could_ use
    b.Data = o.CATID;

    b.setStyle("fillColors",['#'+o.FILLCOLOR,'#'+o.FILLCOLOR]);
    b.setStyle ("color", "#FFFFFF");
    b.setStyle ("fontFamily", "Arial");
    b.setStyle("fontSize",8);
    b.setStyle ("textRollOverColor", "red");
    b.addEventListener ("click", myClickListener);
    myvbox.addChild (b);
    }
    }

    You could also use a Repeater and establish in MXML.

    HTH;

    Amy

  • Is it possible to see what information shows on the LCD remote?

    Hello

    I was wondering if there is a way to see what information shows remote on the LCD screen.

    We have servers on an external data store and wanted to check a few errors on a server.

    Is it possible to do?

    Nothing that shows the actual error LCD text but the LCD is just a relay of messages stored in the recorded material that can be seen in OMSA.

  • What is different between the event create and save

    I do not understand the position of the event details, create and save, I want to know the behine the theory of functions. Can anyone give some information?  Thank you!

    You can set the part listening to an event in the register for events.
    -Create and destroy functions are necessary for user events.
    -If you always talk registration of events front, yes you can do it dynamically register events and you must create and destroy the user event: https://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/dynamic_register_event/
    -If you can post vi/extract it might explain a little better what you're asking.

  • Inform them of the events compared to filter events

    Hi all

    I'm sitting here in the first day of the "Core 2".  It was mostly review for me, but I just learned about "notification events.  The instructor tried to describe when you would use an event filter against a notification event, but I have not been able to wrap my brain around the difference.  Someone can point me to some examples of the real world where you would use a notification event and when you would use an event filter?

    Thank you!

    Landlords make the action event that is the user interface warns LV runtime to change the value, click the mouse etc. and code peform labview in the structure of the event.

    Filter notify does not immediately notify LV of the value change, but allows the possibility to cancel the notification at the time of mouse click LV, value change etc.

    She's.

  • What shared variable caused the event?

    Hello

    I save the shared variables to trigger the event (see attached photo). How is it possible to detect which shared variable triggered the event, but not analysis of chain of the shared Variable in the terminal dynamic event of the structure of the event?

    Thank you.

    Hello Martin,

    Looks like you have access to the shared variable that raises the event, take a look at the photo in the following link:

    https://decibel.NI.com/content/docs/doc-4375

    Michel

  • [JS] The event handler function is presented as the result in the ESTK

    I have a ScriptUI tree, with a onExpand event, like this:

    Window1.tvwTree.onExpand  = function (item){
        $.writeln(item.key + " is now expanded.");
    }

    Whenever the script is run, I get this in the console to ExtendScript Toolkit Javascript:

    Execution finished. Result: onExpand()
    

    First question is: why?

    Second question: what is the best and cleanest way to take care of the event onExpand? I failed to assign a function to the event of onExpand, in the same way as I do for functions without parameters.

    For simple events, without parameters, I did like this:

    Window1.....DropDownList2.onChange = cboNewLanguage_onChange;

    ... but the onExpand event has its parameter to "point" to take care of, and I can't seem to assign the function in a similar way. Please enlighten me.

    (It would be possible to use a prototype approach, events like this? Get a common function for all events of onExpand...?)

    Thank you

    Andreas

    Hi Andreas,

    First question: what is supposed to be item.key? Did extend you the ListItem properties?

    How assign you the function of onExpand seems correct to me. The following code should work:

    var myExpandHandler = function(/*ListItem*/ item)
    {
         // this => TreeView
         // item => expanded ListItem
         alert( item.text + ' is now expanded.' );
    };
    myTree.onExpand = myExpandHandler;
    

    Alternatively, you can create a generic handler in the prototype of TreeView :

    TreeView.prototype.onExpand = function(/*ListItem*/ item)
    {
         // this => TreeView
         // item => expanded ListItem
         alert( item.text + ' is now expanded.' );
    };
    

    Works for me in CS4 & CS5 +.

    Note: the onExpand function has no equivalent event listener, you cannot use the form: .addEventListener ('expand', myEventListener).

    I don't know why your script causes the ESTK console display "result: onExpand() '. Your code probably contains the corresponding $.writeln somewhere, isn't? In addition, consider that if your user interface code uses something like myListItem.expanded = true; then the onExpand handler is called before win.show (). This may explain the unexpected reactions in the console (?)

    @+

    Marc

  • How to raise an event (in the structure of the event) comparison function output

    Hello

    I want to triger specific event from a structure of event with the release of the comparison function. I tried several times but the output of the comparison function is not triggered. Please, propose solutions.

    Kind regards

    Mlad

    If you want to use a structure of the event, you must react on the digital inputs, for example as follows:

    Notice that the VI is inactive unless a change control (x, y, stop), date on which Boolean values are updated, comparison made, his played if necessary, and VI stopped if you press stop.

  • How can I start OMSA leave the CLI - Linux

    I just install OMSA since the repo:

    wget - q - O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

    yum install srvadmin-base

    Now how to start the service?

    I don't see any registration to one of the insrtuctional a PDF file showing how actually start the service under Linux, when installed via yum :(

    Sorry for the delay of Cameron,

    The command you need is as follows:-

    /opt/Dell/srvadmin/sbin/srvadmin-services.sh start

    Let me know how it goes.

  • I clicked "forget this site", I can cancel it by running the "System Restore" function to retrieve my story?

    I clicked "forget this site" and I am looking for a way to undo it. I have heard say there is no way to retrieve the history of a particular site, once it has been deleted, but surely, it leaves some kind of record in the system? I read an article that suggested running the "System Restore" feature which gives me the option to "restore my computer to an earlier time" before that some changes have been made. Would this work?

    Hello, windows system restore will not restore the file that contains the history of firefox unfortunately (it's called places.sqlite). you would need a backup of your firefox profile folder to retrieve such data.

    Please also update firefox - the version that you are currently using is outdated and affected by many security vulnerabilities.

    Update to the latest version of Firefox

  • How to get to 'leave the event' script to run again when the form with the data file is reopened?

    I've created an Adobe Dynamic XML using LiveCycle Designer form with many fields / subforms that are 'visible' or the 'hidden' according to the selected options of different menu drop-down lists. Also, the form has been activated to save. Users can successfully fill out the form and save a copy with the data that has been entered.

    The problem I have is that when the recorded file is opened again in the 'hidden' fields / subforms that were previously made visible by selecting the appropriate options in the drop-down list NOT displayed now. However if you make the same selections from each of the drop-down list shows still hidden ONCE the fields / subforms are displayed, and do not contain data that has been entered.

    The problem seems to be that the script that determines whether a field / subform is 'hidden' or 'visible' is a

    "<event activity="output" name="event__exit">" "

    that is followed by

    If (this.rawValue is '0')- (i.e. the value of the drop-down list)

    sfCompanyDetails.presence = "visible";

    sfRecruitmentAgency.presence = 'hidden ';

    etc, etc.

    and, therefore, it is not executed again when the file is reopened.

    Can someone advise please how do I do this?

    Hello

    Check if you enabled the "auto" option to keep the script changes in the properties of the form.

  • How can I remove projects including the event attachment and clips?

    I need to create a space on my external hard drive and have tried to delete projects, but no additional space makes its appearance. I tried to delete also a few photos that are in an event, but the original media always seems to be there and it does not have any space free.

    So I need to delete entire projects, including events and clips and also in some projects and events to reduce the amount of clips including the original media. How do I get there?

    I use Final cut pro x and OS X El Captain 10.11.5 version operating system

    Select one a clip in the browser, and then press shift-command-R.

    Will reveal the path to this item.

    Set the Finder in column view all firstly to facilitate the visualization.

    Al

Maybe you are looking for