How to prevent the charging Panel whenever it is open

Hello.

I made an extension of Photoshop with Extension Builder 3.

My extension works well, but everytime I open the Panel, the extension is reload... How to prevent this?

Certainly with the < lifeCycle > but I do not know how...

Thank you.

You can use the persistence feature in photoshop. The persistent aims to force it to not reload the HTML extension when it is closed or hidden. Photoshop has provided persistent since the version of 14.2.

To make your HTML in Photoshop extension

  • Upgrade Photoshop version 14.2 or later version
  • Send the event com.adobe.PhotoshopPersistent to the HTML extension to Photoshop to persistent demand:

function Persistent(inOn) {

   if(inOn) {

       var event =newCSEvent("com.adobe.PhotoshopPersistent","APPLICATION");

   }else{

       var event =newCSEvent("com.adobe.PhotoshopUnPersistent","APPLICATION");

   }

   event.extensionId = gExtensionId;

   csInterface.dispatchEvent(event);

}

Persistent(true);// persistent to prevent extension from unloading

Persistent(false);// turn off persistent feature

Tags: Adobe

Similar Questions

  • How to prevent the add-on compatibility checking whenever he opens Firefox?

    How to prevent the add-on compatibility checking whenever he opens Firefox?

    Which can be a problem with the compatibility.ini file in the Firefox profile folder.
    Try to rename (or delete) the file compatibility.ini in the profile folder of Firefox to see if that helps.

    You can use this button to go to the Firefox profile folder currently in use:

    Alternatively, you can check for problems with preferences.

    Delete possible user.js and files numbered prefs-# .js and rename (or delete) the file prefs.js to reset all the prefs by default, including the prefs set via user.js and pref which is no longer supported in the current version of Firefox.

  • lovely better does not work with windows vista home Premium what another program removes LSO and HOW to prevent the trackers?

    Question
    better privacy does not work with windows vista home Premium that another program removes LSO and HOW to prevent the trackers? Edit
    Details

    In current versions of Flash you can also do this via the control panel.

    • Control Panel > Flash Player, click on remove and erase data
  • BlackBerry smartphone how to stop the charge battery when it is connected to the PC?

    Hi guys, anyone know how to prevent the battery charge when the BlackBerry device is connected to the desktop via USB Manager? TKS!

    boldberries wrote:

    and I heard that it is bad recharge the battery when it is completely full.

    No good info. It is always good to overflow of a charge.

    Here's some good advice from loading, please read and you will see that many of them will be applicable to you.
    http://www.blackberrynews.com/2008/05/20/battery-use-tips-for-your-maximum-battery-life/

  • How to prevent the creation of 15000 files for 300 MB each day Firefox

    Firefox creates files of 'file' in C:\Users\LeRicain\AppData\Local\Mozilla\Firefox\Profiles\dnm04rk5.default\cache2
    There are about 10,000 and 20,000 files I have to remove to get about 300 MB of space each day

    How to prevent the creation of these files in Firefox

    Here are the files from cache. Basically, it takes Web sites that access you a lot and records bits of them so they'll load faster the next time you visit them. FOR EXAMPLE if you visit Google.com much, Firefox will save some elements of this page in the cache so that the next time visit you Google.com, it will not have to re - download.

  • How to prevent the scrambling of text as you type

    How to prevent the scrambling of text as you type

    Hello

    1. What do you exactly mean by interference?

    2 does this happen on all applications such as word, Notepad?

    I suggest you to follow these steps and check if that helps:

    Method 1:
    Start the computer in safe mode and check if the same problem occurs:
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Method 2:
    Try to perform the clean boot and check if it helps:
    http://support.Microsoft.com/kb/929135

    NOTE: When you are finished troubleshooting, make sure that restore you the computer mode normal startup such as suggested in step 7 of the above article.

    Check if that helps.

  • How to prevent the automatic updates

    How to prevent the automatic updates which closes the window and restart the computer in Windows 7, Vista OP?  I'm usually right in the middle of something when this happens.

    Hello

    change how to get updates to allow you to choose what you and when you install to stop it happening again

    http://www.bleepingcomputer.com/tutorials/tutorial140.html

    Download updates but let me choose whether to install them - if you select this option, Windows will download the updates on your computer, but not install them automatically. If you want to install updates, then you must install them manually. You should only select this option if you have a reason to not install updates automatically. Only advanced users should use this option.

    Check for updates but let me choose whether to download and install them - if you select this option, you'll be alerted when there are new updates available for download and install. You can then choose to download and install the updates that you want. This option should really be reserved for people who know exactly which updates they need, or those who have little access to the Internet.

  • How to prevent the faye error message when I try to install my printer 6510 throu hpofficejet

    How to prevent the faye error message when I try to install my hpofficejet printer 6510 throu on windows 7

    Marcia J Outten-Robinson

    Hi outten7429,

    Follow the steps outlined in the document below.

    http://support.HP.com/us-en/document/c02266980

  • How to find the Bookmarks panel is enable or disable the use of Applescript?

    Hi all

    In Indesign, how to find the Bookmarks panel is enable or disable the use of applescript?

    Please any idea on this subject!

    Thank you

    John.

    Hi John,.

    Version CC 2015 (and I guess in earlier versions) you would use:

    Tell application "Adobe InDesign CC 2015"

    the visible isVisible value of "Bookmarks" Panel

    tell the end

    isVisible

  • How to prevent the OSB 11g to change original prefixes xmlns?

    Hello


    Could someone tell me how to prevent the modification of the xml namespace that I have carefully specified in the WSDL and XSD OSB file?

    By example, if I deploy wsdl file beginning with

    <soap:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/"> ...

    Then I get to the BSO for the same wsdl wsdl file is something like

    <WL5G3N0:definitions xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/"/>


    He renames "SOAP" to "WL5G3N0".  This name change similar to most of the other namespace in the WSDL and XSD files xml prefixes.  This OSB causing to use for a purpose limited in our environment.  We simply turn this renaming feature off (or find different technologies of accommodation... ).


    So I hope it's possible to disable and someone knows how, in the community of Oracle users.  Could someone tell me if it is possible and how to disable the prefix renaming in OSB?


    Thank you

    or at least there is no known way to get that off, right?

    I'm not an employee of the Oracle, so I can't say with 100% confidence. I don't know a way, and I'm sure that the path does not exist.

    thinking of using 'engine for stateful service' Oracle SOA for this is very bad...

    It's not so bad. If you do not service calls in the Middle, then BPEL is not to dehydrate State, making it more or less stateless.

    DataContractSerializer seems to be picky and all pending schema corresponding to certain prefix text

    It's weird, but the code generators are a common source of bugs in SOA :-)

    Good luck!

    Vlad @ genericparallel.com

  • How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above.  This problem occurs when I try to convert a word in a PDF doc.

    How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above? This problem occurs when I try to convert a word in a PDF doc.

    Hi [email protected] ,

    Please try to follow the steps mentioned in this thread with a similar problem: Impossible to open the document. Please check if you have read permissions for the above file.

    Also, let us know the acrobat version you have and the version of the OS on your system.

    Let us know if that helps.

    Concerning
    Sarojini

  • Elemments 13 how to display the layers panel

    13 elements how to display the layers panel

    In Expert Mode, window > layers.

  • How to stop the transformation Panel Add stroke value to the form I created

    Hello

    No one knows how to stop the transformation Panel in Illustrator CC, adding the value of the race to the prayer of the size.

    In the preferences (Cmd [Ctrl} k]) uncheck the box use a snippet of the limits.

  • accordion jQuery how to reduce the default Panel

    Hi I'm using the latest Dreamweaver how to reduce the Panel so that none are open when the page opens.

    mayramoca33 wrote:

    foldingType: Boolean

    By default:false

    If all the sections can be closed at the same time. To collapse the current section.

    Code examples:

    Initialize a Accordion with the collapsible option specified:

    1

    $( ".selector" ).accordion({ collapsible: true });

    Get or set the collapsible option, after init:

    1

    2

    3

    4

    5

    // getter

    var collapsible = $( ".selector" ).accordion( "option", "collapsible" );

    // setter

    $( ".selector" ).accordion( "option", "collapsible", true );

    Hi Nancy I see this

    and I click on reducible in property panel and it gives me this:

    But I can't understand how to reduce the first Panel

    http://restoring-health.NET/resources.html

    Try the following:

  • How to prevent the squishing text stacked mode smartphone

    Hello

    How to prevent the squishing of text stacked for smartphone. Not sure if I use the right termonology. In any case, when my < Hello > menu resizes to view smartphone, my menu link throws up in the rest of my text on that line. I am at a loss on what to do about it. Any CSS help would be appreciated.

    http://cupcakemary.skeeterz71.com/_cm_mockup/

    menu-stack.png

    Give your position more line height.  Adjust as required.

    H1 {line-height: 55px}

    Nancy O.

Maybe you are looking for