Problems to use shift-click in the AE - CP

Try to use a function of the combination SHIFT + click for a script in the AE - CP, the function works perfectly in AE - CS6, but when I try the CC script, it doesn't work.

Any idea what could be the problem in my code?

var win = new Window ("dialog", "test");

var button = w.add ("button", undefined, 'Button');

button.addEventListener ("click", function (k) {detect (k)});

function detect (k) {}

var keyState = ScriptUI.environment.keyboardState;

If (keyState.shiftKey)

{

Alert("Shift-click");

}

on the other

{

Alert ('click');

}

};

w.Show ();

Quentin

It works fine for me until the CC2014 cs6:

var w = new Window("dialog","test");
var button = w.add ("button",undefined,"Button");

button.onClick = function (k){
    var keyState = ScriptUI.environment.keyboardState;
    if (keyState.shiftKey){

        alert("shift-click");
    }else{
    alert ("Click");
    }
}

w.show();

Tags: After Effects

Similar Questions

  • Link to shift + click on the Google search result

    How can I open new tab/windows by link shift + click on the Google search results?

    It is the way in which Firefox opens the link.

    My current setting is Ctrl + click opens a new tab in a new background tab, shift + click opens the link on the same page.

    Firefox 40.0.3 Windows XP

    For the Google site, you can set preferences on the Google page via the top gear icon to the right of the results, click this button to open the list of menu and select search parameters.

    Where results open: Open search results in a new browser window.
    

    Google settings are stored in a PREF cookie on your computer, you must create an exception to allow him to keep cookies for Google to save settings, otherwise you will have to repeat.

  • Photoshop doesn't let me shift-click with the Eraser tool. Help?

    Hi people! My copy of Photoshop CC 2014 doesn't let me shift-click with the tool eraser to erase a straight line with one single click to another (brush and other tools not working). Is this a known bug? Or make me something tilt that I don't know?

    Thank you!

    One way to know is to reset the Eraser tool. If something was off this command he would set it back to default values.

    Here's the text, the example tool, but simply select the Eraser tool and right-click to sound ' icon above the Toolbox.

  • Shift-click with the spot removal tool does not remove the straight lines

    Hello, I am after a tutorial on Lynda.com, which demonstrates the use of the spot removal tool to remove a task from a straight line.  Click on one of the ends of the line, hold the SHIFT key and click on the other end of the line.  Pouf!  Nothing happens.  The technique works very well for me in Photoshop.

    I have a PC with Windows 7 Pro 64 bit and Lightroom CC 2015.6.1, Camera Raw 9.6.

    In fact he worked sporadically on the image of a practical, but hot in a reliable way and does not at all in all the other images that I try.    Advice will be greatly appreciated.

    Thanks - Dave

    The technique is

    Hold the SHIFT key FIRST, then click and drag horizontal or vertical.

  • What do you do when shift-click (on the wire automatically) does not work?

    All-

    I got shift-click for work with the loaded text icon, automatically thread text to the left of the white pages in the document.  But tonite, it won't work (and I remember once it didn't work either, and then somehow I him have had to work.)

    Any ideas?

    Thank you!

    Sunday morning

    In fact, I don't know how to display the hidden files on the Mac. Not even sure you can, but I think that SavedData will come in a search.

    The path is hard drive/users/Library/Caches/Adobe InDesign ///InDesign SavedData. Worst case, you can move the entire folder. He'll get rebuilt when you restart ID.

  • Problems of bit shift left in the node of the formula

    Hello

    Sorry, but my English is not good.

    I am trying to run a bit left SHIFT in the node of the formula, but the left SHIFT does not work as I expected.

    uInt32 parametro[5];
    float32 valorAmostra;
    int16 indiceAmostra;
    uInt8 indiceResposta;
    int16 controle;
    int32 valor;
    int8 i;
    
    for(i=0; i<5; i++)
        parametro[i]=param[i];
    
    valor = parametro[5]<<16 | parametro[4]<<8 | parametro[3];
    controle = parametro[1]<<8 | parametro[0];
    
    indiceAmostra = (controle & 0x3FF);
    indiceResposta = (controle >> 10);
    
    valorAmostra = valor & 0x7FFFFF;
    valorAmostra = valorAmostra*(2.4/8388607);
    
       if((valor & 0x800000) == 0x800000)
          valorAmostra = valorAmostra*(-1);
    

    the input param array is uInt8 type, because I saw in other topics that does not move with uInt8,

    I copy the values in the array param to parameter , which is of type uInt32, but still does not work.

    Test the input parameter with the following values:

    [] param = {10,14,10,0,16}

    the returned valorAmostra is 0,00117188 then it should be 0,300003.

    Can someone help me please?

    Portuguese:

    OLA,

    Is um no bug no LabVIEW para esta operacao. Este bug devera ser corrigido em paid futuras. UMA Solução para esta down e use int32 ao investment of um ulnt32 um.

    Any doubt please between let em.

    Obrigado.

    English:

     

    I studied the problem you are having, and it turns out that this is a bug that has already been reported and documented. The work around is to use int32 instead of uInt32.

    Thank you.

  • How can I make multiple selections in a tree by using &lt; shift &gt; click

    I feel like I'm something obvious missing here, but I searched a bit around without solution.

    I have a tree with checkboxes (ATTR_SHOW_MARKS is enabled). I am able to select multiple items in the list (ATTR_SELECTION_MODE is VAL_SELECTION_MULTIPLE). click work to select several, but my question is, when you use click it only marks (as in the boxes of checks) on the first and last items. The others are selected but not verified.

    Is there an option I'm missing here, or I don't have to write code to manually mark? If I need to write the code, is the best way to check the State KEYPRESS if EVENT_SELECTION_CHANGE?

    Thanks in advance,

    Chris

    You can try to define ATTR_DRAGGABLE_MARKS and see if it suits your needs.

    If you really want to set the status of the brand by using , then Yes, you will need to write the code to do. You can use GetGlobalMouseState to get if the SHIFT key is down.

  • I used right click with the right button on the down time to send my films on television, the options are parties, where can I find these options again. THX

    streaming options went to send video to my tv, where they went or where I can find them?

    Hello

    I suggest to create a new user account and check to see if the same problem happens:

    http://support.Microsoft.com/kb/279783

    It will be useful.

  • Problem window appeal while clicking on the sim card

    Greetings of the day
    One issue that I am facing as the day I bought my Xperia peripheral aqua IE double m4 is
    Whenever I try to call, after you have selected the contact or call the number at the time of simcard selective option, it uses still stuck there, this selection of simcard en window flashes and disappeared, and then I need to select the contact and I'll choose the SIM card (where I have to call) this new pop-up flashes and turns off Sometimes I put one on 2-3 attempts and sometimes 10 to 20 times too much is not enough.
    So this is my humble request to you guys, please look at this and make me a solution or a software update with the solution, because I love this phone and Xperia devices, so that this question will not be able to force to that extent where I throw the phone out of the window I never want.i am a student and I have invested my hard earned money on this phone, I think that now you can get an idea of my attachment with this phone, so guys please help me out of this problem.
    You are looking for a positive return as soon as possible.

    Thank you

    Follow this link, you can read how to start in safe mode:

    https://talk.sonymobile.com/T5/FAQ/How-to-boot-your-phone-into-safe-mode/TD-p/348008/jump-to/first-u...

    In short, safe mode is a special way to start your phone on without load the extensions or app at startup. It's the best way to check what the problem with the phone as no apps will interfere with the operating system and the device.

    If the phone act normally in safe mode then the question is an application installed on your phone.

  • Possible problem HARD drive - by clicking on the sound and the system hangs on Qosmio G30 - 116

    Hello

    I just got my G30-116 return of service (replacement of the screen) and after 2 days another problem. He just continues to hang out.

    I do not change a thing since I got it and now it just stop working on things sometimes like browsing the internet. It has not happened before. And my biggest concern is the trigger that made my hard drive.

    What can be wrong? It not crash until I have it sent to the service, I think that my hard drive is defective... Thank you

    What to say? If you can not find out why freeze the problem occurs, try to preinstall the operating system with recovery DVDs delivered.

    In any case, from your description, I'm afraid there is a serious problem with HARD drive and it can be simply worse then now. Please be sure that your data is backed up.

    Please contact service again and explain the situation. If the HARD drive is faulty, you will get a new, and if they have the HARD drive on stock, it can be replaced very quickly. G30 is lovely and I hope that you will be satisfied. A few days ago my friend visited me and we have tested his G30 with HD-DVD player on my LCD TV. I can tell you one thing: I am really impressed with the HD picture quality.

    Good luck!

  • CTRL + click / SHIFT + click does not not on the specific Web site

    I'm an admin for this blog site: http://undividedblog.org.uk/

    If you use Firefox, I discovered that, for almost all of the links on the site above, perform a CTRL + click or a SHIFT + click the link does not open the link in a new tab or window, but on the contrary is no nothing that either.

    I tested a 22.0 Firefox running on two separate computers, and a Firefox running 16.0.2, and machines/versions behave exactly the same way, i.e. CTRL + click and SHIFT + click the links does nothing.

    By clicking normal on the links behave as expected, navigate to the location of the link. Using the right click > open link in a new tab, or right click > open the link in a new window works fine too.

    I tried CTRL + click and SHIFT + click on the site above using the two Chrome and IE, and they work fine. So I've narrowed the issue down to be something to do with the way Firefox processes the HTML of the site. Firefox on both machines deals very well with links on other sites by doing a CTRL + click or SHIFT + click. but not on this specific site.

    Can someone help me to find out why this is happening? Why is that a problem on Firefox? What is the specific site that Firefox has issues with?

    Thanks long before any wisdom or experience that you can lend to it. She was driving me crazy, as I have always used Firefox and I rely heavily on CTRL/SHIFT + click, especially when doing admin stuff.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    Thank you.

  • Changed the behavior of the combination SHIFT + click in Editor?

    In versions cc2015 of Photoshop, the checker behaves differently than older versions when I use 'shift-click' to connect the dots. In PS CS6, for example, when I take the SHIFT key, the clone tool in (or cure) continuously from point to point as I click. In the last two versions of Photoshop, this has changed: a click, then shift + click to a new location translates into a 'line', although it is not until the next point clicked, even by pressing the SHIFT key all the time. Instead, the point is considered as the beginning of a second 'line' of healing.

    I hope that makes sense - it's surprisingly complicated to describe such a simple thing. But the effect is really disconcerting - if I'm along a surface of healing, I can't have a continuous 'cure' along a curve, for example.

    Tools brush and Clone Stamp don't show it at all - they behave as expected, click connection points without interruption until the SHIFT key is released. I can't find any preference which may have changed, and I'm using a very simple toolset - without wild brushes or anything like that. Very frustrating!

    How can I get the old behavior back to the Healing Brush tool? What Miss me?

    Thank you

    John

    -running Mac OS X 10.10.5, Photoshop versions cc2015 and cc2015.5 show that (also another machine at work, OS 10.11, PS cc2015.5.1 shows the same behavior)

    I have been informed more in 'PhotoshopFamily' that it is a bug, they sent to engineering to investigate (& difficulty, hopefully!)

    «More tests, I found that this problem goes away * if * the source and the destination are on a layer "background" (e.g., on a flattened image).» But try to 'cure' / clone of a source layer to a layer of different destination (or even the same layer, if not a background layer) product failure in the behavior of the combination SHIFT + click. »

  • where is my most used windows displays when I open a new tab by clicking on the +?

    When I used to click on the tab + one already open to open a new tab that he used to open a display of windows (not tabs) my most used sites and I could simply click on the window to directly join the debates. Now I get only a blank page and the address bar empty. I am very unhappy that this facility has disappeared. How can I get it back? I have used many. He disappeared only since I've upgraded to Version 6.02. Using Windows 7 Home Premium 64-bit.

    See if the following add-on will do what you need:

    You can find other modules: https://addons.mozilla.org/en-US/firefox/

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You must update some plug-ins:

  • How can I select all instances of a component in the timeline at once without manually shift clicking on each instance?

    Title says it all!

    How can I select all instances of a component in the timeline at once without manually shift + click each instance?

    The reason why I want to do this is because I have a video clip with MANY quick cuts. So the clips are cut out and splattered everywhere. I'm color correction now and so I want to be able to select a clip around wherever it exists in the timeline so I can drag the effect on all the at once, without having to search each occurrence of the item in the timeline panel. This lot "select" would make it so I don't miss not all instances of the clip and saving a ton of time going through the timeline and Shift clicking whenever the clip is also up.

    I hope that the PP is smart enough to do this

    Thanks in advance!

    -Tim

    Choose a single instance of the element, perhaps even the first bit... and use the new Master Clip feature... Firstly here is a written explanation and a video tutorial on this operation... This is a great feature.

    Adobe Premiere Pro help. Master Clip effects

    How to apply effects to all instances of a clip. Adobe first Pro CC tutorials

    Neil

  • Attention keyboard shortcuts Wizards - impossible to right-click with the on-screen keyboard

    original title: hotkeys Attention, please

    Hello

    I have persistent, repeated with problems trying to right click on the desktop without the aid of a Mouse / touchpad.

    He has a key to right click (context menu) on my keyboard between the AltGr and the right CTRL key.

    This always works for everything except a right-click on the desktop, when it only works about half the time.

    Often, if I try to right click on the desktop with this key (mouselessly), me seems to end up right click on an icon on the desktop instead.

    I usually then try to 'tab' (mouslessly) by using the TAB key to the desktop, but it onlygi annoys me to the start menu, and then in the box quick launch, and then to the bar of tasks, and to the area of Notification, then back to an icon on the desktop again... jump the desk itself... then back to the start menu... round and round in circles never the bureau itself becomes the "Active window" - such that I could right-click by using this key.

    Is it possible that I can TAB on the desktop, so that it becomes the "Active window"?

    I find this only happpens problem after I have been using applications for a while. In general, I can use the key to right-click on the desktop, or use CTRL + N to open a Windows Explorer window bit time after startup, but 3 hours later, it's a different scenario.

    I use Vista, SP2, Standard Windows Aero disabled (because the active windows or icons are stronger highlghted in blue in the standard).

    (Why not use a mouse like everyone else? I do, but 3 months ago I lost my pointing device (touchpad mouse) in some type of a software problem. I had to reinstall Windows to get it back. It was like losing my right hand, I couldn't even click on the Windows Setup diskettes, so I swore that I would never so helpless once again, so I'm learning... keyboard shortcuts and a few BACK... I came to believe that if you can't use a computer, a way, it is essential that you should be able to use it otherwise using different methods).

    Thanks for any advice.

    If the keyboard focus is on a desktop icon rather than the bureau itself, then you should be able to press Ctrl-space to toggle the current icon between the selected and deselected (which should deselect the first press), and then Rightclick (or Shift + F10) key should open menu contextual of own Office.

    (This paragraph is in the interest of someone else coming in your question).  If you are not sure whether the desktop icons are chosen or not, simply move the highlight with the arrow keys box must select the highlighted icon and deselect all other icons.

    Edit: How I force the Office to have the circumflex accent is to use Ctrl-Esc instead of the Windows Logo key to bring up the Start Menu (the difference is subtle but there), then Esc to close the Start Menu (but keep the circumflex on the Start Menu button), then SHIFT + Tab to go back into the tab on the office order.

Maybe you are looking for