Help with an Action

I have been trying to figure this out for a while now,
What I want to be able to do is When I click a key on my keyboard, For example F5, It starts or stops a function depending on a boolean, but I can't figure out how to do this.
Thanks for help.

I am using Swing, And that is why you should be posting Swing related questions in the Swing forum, so we don't waste time guessing what you are talking about.
But there is no need to repost this time because you have the answer from the tutorial and there are plenty of examples that you can search for in the Swing forum.

Similar Messages

  • Help with folder actions

    Automator is still a little confusing to me, I have virtually no experience, but wish to have automated emails sent when the contents of certain folders in my idisk/public folder are updated.
    First thing that confuses me is I thought automator worked with folder actions, it doesn't seem to for me and am left running an applescript to detect the changes and tell automator to send the email. This seems rather long winded and not what I'd expected.
    Second thing I can get what I've done to send emails when items are added to the folder, but not when they are modified/updated which is what I wanted. This is due to my lack of experience with scripting so any help would be appreciated.
    What I've got so far is
    '....on adding folder items to this_folder after receiving added_items
    try
    tell application "Automator".....'
    how do I change this to do what I want ?

    Winston,
    You need to save the Automator workflow as a folder action plug-in with it attached to the folder of interest. You start this process by selecting the "Save as Plug-in..." command under the File menu. You will then have to enter the name you want to use for the plug-in and select the "folder action" from the "Plug in for:" drop-down menu. An "Attached to Folder:" drop-down menu will appear and you can select one of those presented or navigate to something else by selecting the "Other..." choice (which you will have to do to get to your idisk/public folder).
    Once this is done then every time something is added or modified within the watched folder the Automator workflow will be triggered and run. In your case, because the folder is on iDisk, it will only be triggered when you are logged into your iDisk account.

  • Help with installing actions PSE9 on Mac

    Hi everyone! Thank goodness for support forums! I've been searching all over this afternoon to see if I could just install some simple presets in PSE9--I just got it and installed it on OSX 10.6.
    I just can't figure out how to install actions. I've tried a number of things and it seems pretty simple but for some reason nothing is working (and yes, I've restarted PSE, multiple times in fact).
    At first I was told to go to Library > Application Support > Adobe > Adobe Photoshop Elements 9. The only file in there is "Presets" which I opened and there was a list of different files for different stuff (such as patterns and gradients). I thought it looked relatively easy because there's an empty folder in there called "Actions" into which I dragged my actions files. That didn't work, so I tried including the 64 x 64 png image with it, still no luck. Another place said that you should go to Applications > Adobe Photoshop Elements 9 > Locales > en_US and there would be a file called Mediadatabase.db3 that I'd have to edit the file name--I don't have that file in there and it's nowhere to be found on my computer.
    So long story short, whichever method I try, actions still won't work/show up! I'd really appreciate any help on this. Thanks in advance!

    For the first file path, it sounds like you are in the wrong library. You have three library files:
    Your username>library
    System>library
    and the one at the top level of your hardrive. You want the last one.
    Mediadatabase.db3 is in there too.

  • Help with onclick action

    Can someone help? I am struggling with a working code. I used this code before when I was testing as a gif animation. I didn't like the clarity of the gif and want to do this in edge but am relatively new to it.
    <img src="http://pacificoauto.com/AutoGroupemails/Ford%20Black%20Friday/electrifiedshopnowsmaller.gi f" alt="" onclick='javascript:(this.src=="http://pacificoauto.com/AutoGroupemails/Ford%20Black%20Friday/electrifiedshopnowsmaller.gi f"?this.src="http://pacificoauto.com/AutoGroupemails/sonatathon/savings_burst.gif":"")' />
    What I would like to do is pause a looping animation on mouseover and start a different animation onclick. If this isnt possible maybe just how can I create the onclick action?
    Please please help this is driving me nuts!!! Thanks in advance!

    Sure there must be a way for Automator to look in /Folder/ and it's sub folders and find 1.mpg, 2.mpg and 3.mpg and rename them.
    There is, but with your current setup-other .mpgs in the same folder-there's no real way to specify those three files in a single action.
    An alternative that would probably work out better-put the files into a static folder. That way you can use the Get Specified Finder Items. Then after the Rename-
    1.Get Specified Finder Items on the static Folder-
    Break the action flow by clicking on Files/Folders and selection Ignore Results.
    3. Get Folder Contents
    2. New Folder (under your /Folder/ folder)
    Then, if you want:
    4. Get Specified Finder Items on the static Folder-
    Break the action flow by clicking on Files/Folders and selecting Ignore Results
    5. Get Folder Contents
    6. Move to Trash

  • Help with button actions

    Hi all,
    The last Flash version that I am use to, is 5.5 which was extremely easy to use. I have used CS3  a little, but now I have CS4. You use to be able to set the action right in the button, then just copy the button. Now it's totaly different. I have watched some tutorials in Adobe TV, but find that my property windows do not look like theirs, which is very confusing.
    Can any one point me to some URLs that show me basic buttons tutorials, such as: on release goto and play scene 1 frame 10, etc.
    Thank yoou
    HDsuperglide

    you can use as1 if you want.  cs3, cs4 and cs5 are all backwards compatible with the coding style you've used in the past.
    nevertheless, i'm not an adobe employee/company rep.
    this forum is for people that want help and i'm here to help people that want help.
    if you want to complain/provide suggestions, here's the place for you:  https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Need Help with the Action Wizard...Help please?

    I am using the Adobe Action wizard to split documents into multiple pages.  Once the docs are split, the Action wizard saves them to a new folder exactly how I want them, however it also moves a copy of the original document into the source folder (Which I do not want)  is there a way to stop this from happening?

    Hi lpurollpsmi,
    Could you please provide more details of the action that have you added for the same.
    You might take a look on the KB doc link mentioned below with detailed understanding on Action Wizard:
    Acrobat Help | Action wizard (Acrobat Pro)
    Are you running the latest Acrobat version i.e. 11.0.10?
    Hope to get your response.
    Regards,
    Anubha

  • Please help with data action problems

    Ok, this is driving me nuts, every example I try seems to work half the time...and I can't figure out why.
    I'm using JDeveloper 10g, ADF/UIX/Struts.
    All I want to do is:
    Access the application module for my project in a struts data action.
    a) To manipulate view object where clauses based on request parameters.
    b) Call application module custom methods.
    c) Access request values.
    Sometime the following works after I've been playing around:
    findForward(DataActionContext ctx)
    ViewObject vo = ctx.getBindingContainer().getApplicationModule.findViewObject("myViewObject");
    //whatever with the vo from here
    MOST of the time, I get 500 Server Errors. They state:
    java.lang.NullPointerException
         at mypackage4.DataActi1Action.findForward(DataActi1Action.java:10)
         at oracle.adf.controller.struts.actions.DataAction.findForward(DataAction.java:575)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:152)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:233)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:163)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    I believe this has to do with there not being a binding container for the Data Action. However, I can drag custom methods and view object methods (create/delete...) from the data control palette onto it all I want, and I still get the same errors. I thought I read that it generates one, from the long document:
    Oracle ADF Data Binding Primer and ADF/Struts Overview
    Basically, I read through and am still confused on how I can access the application module reliably. I have some pages that it's work for, but I can't figure out why it doesn't work for others.
    Could someone clear this up for me please?

    I've tried using getBindingContext, get BindingContainer, and a host of others. I can assign iterators to he UI model, the cpx file, but I still can't seem to figure this out.
    I don't see a comparable example in the ones I've downloaded from otn either. Thanks for any help.

  • Help with an action refreshing script

    Hi,
    Ive been compiling a script to remove specific actions and load them up again. I work in a team where the action sets are updated regulary and this will make it easier to refresh. The script works great when run from the extendscript, but when called from a photoshop action it can remove the specified set but then does not load it up again. It throws no errors or anything.
    Below is the script, any help or ideas would be much appreciated!
    var checkstat = false;
    var w = new Window ("dialog", "Action Refresh");
    var stringOptions = [];
    stringOptions[0] = "EFFICIENCY";
    stringOptions[1] = "BANNERS & TEMPLATES";
    var imagename = w.add ("statictext", undefined, "Please select the action set you would like to refresh.");
    w.dropdownlist  = w.add("dropdownlist", undefined,"Baseline");
    var item
    for (var i=0,len=stringOptions.length;i<len;i++)
      {item = w.dropdownlist.add ('item', "" + stringOptions[i]);     
    w.dropdownlist.onChange = function() {
       //Save the selected value in a variable to be used later
       checkstat = stringOptions[parseInt(this.selection)];
    w.dropdownlist.selection = w.dropdownlist.items[0] ;
    w.buttonGrp = w.add ("group");
    var cancelbutton = w.buttonGrp.add ("button", undefined, "Cancel");
    cancelbutton.onClick = function() {   
       w.close(0);
        checkstat = false;
        return checkstat;
    w.buttonGrp.add ("button", undefined, "OK");
    w.show();
    if (checkstat == false){}
    else{
    try{
    delAction(checkstat); //Delete a specific action based on its name
    catch(e){}
    app.load(File("Z:/Editing/Actions & Templates/SITECORE/RETOUCHING ACTIONS/" + checkstat + ".atn")); //Load the action based on it's name from a pre-specified path
    function delAction(aName) {
        var idDlt = charIDToTypeID( "Dlt " );
        var desc1 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        var ref1 = new ActionReference();
        var idASet = charIDToTypeID( "ASet" );
        ref1.putName( idASet, aName );
        desc1.putReference( idnull, ref1 );
        executeAction( idDlt, desc1, DialogModes.NO );

    So can you suggest what I should do to get the following outcome?  I am new to this...
    I need the fields for Listing Agent Commission and Selling Agent Commission.
    If Listing Agent is checked, need $35.00 deducted from Listing Commission Share to make the Listing Agent Commission.
    If Selling Agent is checked, but listing agent is not, I need the $35.00 deducted from Selling Commission Share to make the Selling Agent Commission.
    If Both are checked, I only need the $35.00 deducted from the Listing Commission Share, and the Selling Commission Share should Equal the Selling Agent Commission.
    If neither are checked, both fields should be 0.00.

  • Help with Dynamic Action Construction

    I want to create a dynamic action that will disable a field called P1_TBRN when any of the following conditions in the form are true:
    :P1_TRIAL_STATUS in ('Off-Trial','Unknown') or
    :P1_DIAGNOSIS_MAJOR ='UNKNOWN' or
    :P1_INSTITUTION ='Unknown' or
    :P1_CONSENT_EXISTS <> 'Y';
    I assume I use a "Change" event but I can't work out how to enter the 4 condtions so that they are all checked each time. If I create 4 separate dynamic actions, when I change one of the fields, it does not take into consideration the other field values.
    An alternative I've tried is to set up a Read Only condition on P1_TRIAL with the above condition. The only problem is that I have to submit the page each time there is a change in one of the 4 fields above. It would be better if I didn't have to submit the page each time so I'd like to use a Dynamic Action.
    thanks in advance
    Paul P

    Hi Paul.
    If you want to evaluate 4 variables in 1 dynamic action you have to post the value of these 4 items on each change of one of these items as far as I know.
    I had a form with multiple checks of this kind and ended up having serieus performance issues.
    My way around was to evaluate in javascript. You creat a dynamic action on change of any of these 4 fields and set the condition to a javascript expression. The expression looks something like (quick edit so there might be some typos):
    $v('P1_TRIAL_STATUS')=='Off-Trial'||
    $v('P1_TRIAL_STATUS')=='Unknown')||
    $v('P1_DIAGNOSIS_MAJOR')=='UNKNOWN'||
    $v('P1_INSTITUTION') =='Unknown'||
    $v('P1_CONSENT_EXISTS') == 'Y'
    If this evaluates to true the true action of the dynamic action is executed, otherwise the false action.
    Cheers
    Bas

  • Help with timeline actions

    Hey guys, I'm currently working on my portfolio site and I'm trying to make my flash animation play until say frame 150 and then at 150 load a seperate web page. is this possible? It seems simple enough, I mean just like how a button could open another page I want the timeline/animation to load it automatically. Any help is appreciated.

    I'd say your url is the problem based on the results you get.  That url you show appears tainted with questionable symbols, which may just be the forum spitting out nonsense, and that undefined at the end of it indicates something is missing somewhere.  Is there a reason you cannot use a relative path instead of an absolute one?

  • Help with adding action script to an order form

    Hi - Firs time I'm on this board. Searched and didn't see
    anything that fit. Adobe/Macromedia Support told me my form needs
    an action script insert for me to gain access to a previous page.
    I'm revamping an online order form. It's about 2 1/2 pages in
    length. I find that I can't go back to the first page -- I'm locked
    in the second one. On split screen the HTML coding shows there is
    more than one page. Also, when I look at it in a browser the whole
    page is there.
    Does anyone know how and where I can put in action script.
    I'm not an HTML maven so this isn't my thing. Thanks for whatever
    advice you can give.
    Best - ETide

    Visit gotoandlearn.com and find a tutorial there for creating
    a preloader.

  • Help with button/action script

    As part of a class I have to create an aquarium where I have
    pictures of fish on the side and I want to be able to click on the
    fish and have it add the fish to the aquarium. I want to be able to
    have the viewer select the number and types of fish they want in
    the aquarium. I'm using Flash 8 if that matters. Please, any help
    would be wonderful.

    Thank you for your help so far.
    I am just a beginner and that coding went way over my head. I
    have created a movie clip for each fish and I have added the
    buttons to the aquarium. I have created the linkage for the movie
    clips in my library. I am having problems attaching the clip to the
    button. In all of the examples I have seen I have to include the
    instance name. How do I give a clip that is not on the stage an
    instance name?
    Can you please help?
    Thank you
    hgingrich

  • Help with photoshop actions

    hi everyone,
    i am trying to get an image then put it through photoshop and use an action to make the image look like it is on a 3d canvas, i have in work got he action for it, but i am off work at the moment and cant get hold of it, i am sure it was called a gallary wrap action or something like that, does anyone know of where i can get hold of this?
    kind regard
    rob

    Rob,
    This forum is for commenting on how the forums themselves work.
    Choose your Photoshop forum, Macintosh or Windows, here:
    http://forums.adobe.com/community/photoshop?view=overview

  • Need Help With an Action

    Hi,
    I have been trying to use an Action for some automated Smart Sharpening. What I want the Action to do is as follows:
    Resize Image;
    Convert to Smart Object;
    Smart Sharpen;
    Turn off the Smart Sharpen Filter effect;
    Select All
    Copy
    Alt click on the Smart Filters mask box (make it active);
    Ctrl + V (tp paste into the mask box);
    Find Edges;
    Levels (from the menu);
    Deselect (Ctrl +D);
    Select Mask panel and choose "Invert"; and
    Turn On the Smart Sharpen Filter effect.
    If I do this manually it all works as advertised. But when I try and run the Action for this I have a number of problems, please see the image below:
    As you can see it adds an extra Layer (Layer 1), which doesn't happen when these steps are done manually. Also if never does do the "Find Edges" step. It seems that Actions gets confused by the Ctrl +V (Paste) step and never pastes the image into the Filters MasK box, but instead makes a new Layer?
    If anyone can get this to work properly and explain why I can't it would be truly, truly appreciated.
    Thanks
    TB

    To get your action to work you might use Image>Apply Image instead of using the clipboard.
    Before you record the apply image step make sure the filter mask is active and apply image will
    put a copy of your image into the filter mask.
    MTSTUNER

  • Help with Installing Actions

    Hi,
    I've just installed an action in PSE8. Although the Action and the Thumbnail both appear in in the "photo effects" folder within program data the thumbnail appears as a blank in the "effect panel" in Elemets even though it has an image in the "photo effects" folder. The thumbnail format is a 64x64 pixel PNG file containing a digital image.
    What am I doing wrong?
    Wensumsnapper01

    Okay, I think I have them in the right place - it was in photo creations/photo effects.  I put the action file there but still can't find it in Elements.  Where exactly in elements would it show up?  Do I have to install the file in more than one place?
    Thank you

Maybe you are looking for

  • Great Problem with Usb

    Dear Customers, i have a powerbook g4 1.67 15' with Tiger last version. Since a couple of days the computer works perfect, BUT everytime the computer goes in standby ( generally after 10 minutes of unuse) than every USB stop working...even if i put a

  • External swf Font.enumerateFonts()

    Hello, I'm coding a FontRegister class that register fonts from an external library.swf. Instead of writing 'manually' all the font class names as strings ("MyFont1","MyFont2",...) to be registered via getDefinition(), I wanted the script to automati

  • I have a Europe unlimited subscription but uses up...

    I made a call from my desktop computer to a landline phone in Switzerland which is covered by my Europe subscription and it charged me and took from my Skype credit. I'd like my credit back please and to know why it's done this. I've never had proble

  • MSEG, BSEG, MKPF

    How would u go about improving the performance of a Program, which selects data from MSEG & MKPF or BSEG ?

  • Need data- multiple customers the same way as it appears in fpl9 chronology

    Hello All, I need data for multiple customers in the same manner as it appears in FPL9 chronology. Has anyone worked on tit before. Please could you share the logic...how it can be extracted from tables or query or abap report. Regards, Charvi