Modeless window by using the "palette" does not remain upward in CS5

I have a problem running a modeless dialog box with CS5 (on 64-bit Windows).  My own script does not stay in place and either don't extract of SnpCreateDialog.jsx that comes with the ESTK and is supposed to demonstrate modeless dialog boxes.  I tried:

  1. From the Scripts panel
  2. Add #target photoshop
  3. Be sure that the drop down menu says Photoshop, no CTSK

as suggested in an older discussion at http://forums.Adobe.com/message/3008230#3008230 .  (I decided to make a new discussion as this one was marked answered.)

It also does not stay in place when moved to the folder of Photoshop Scripts and run on the file menu in Photoshop.

The corresponding code in SnpCreateDialog.jsx is:

function SnpCreateDialog() 
{
     this.windowRef = null;
}

/**
 Functional part of this snippet. 
 
 Create a window of type "palette" (a modeless dialog) and display it.

 @return True if the snippet ran as expected, false otherwise.
 @type Boolean
*/
SnpCreateDialog.prototype.run = function()
{
     // Create a window of type palette.
     var win = new Window("palette", "SnpCreateDialog",[100,100,380,245]);  // bounds = [left, top, right, bottom]
     this.windowRef = win;
     // Add a frame for the contents.
     win.btnPanel = win.add("panel", [25,15,255,130], "SnpCreateDialog");
     // Add the components, two buttons
     win.btnPanel.okBtn = win.btnPanel.add("button", [15,65,105,85], "OK");
     win.btnPanel.cancelBtn = win.btnPanel.add("button", [120, 65, 210, 85], "Cancel");
     // Register event listeners that define the button behavior
     win.btnPanel.okBtn.onClick = function() {
          $.writeln("OK pressed");
          win.close();
     };
     win.btnPanel.cancelBtn.onClick = function() {
          $.writeln("Cancel pressed");
          win.close();
     };

     // Display the window
     win.show();
          
     return true;
          
}

/**
 "main program": construct an anonymous instance and run it
  as long as we are not unit-testing this snippet.
*/
if(typeof(SnpCreateDialog_unitTest) == "undefined") {
    new SnpCreateDialog().run();
}


If I put a breakpoint on the "return true;" line, then I see that the dialog box, in fact, was created and is visible, but he came back to win.show () and will disappear as soon as the script continues.

Any help would be appreciated.

Kenneth Evans wrote:

The advantage of a modeless dialog box, is that you can continue to do things in Photoshop while the dialog box is in place.  At least, I suppose, since I don't have to work, including the example ESTK.

Sorry but no, most of the Photoshop UI is disabled while a script is running even if the script displays a palette window.

A dialogue window waiting for show() end. This is what makes the modal dialog boxes. A palette window does not expect show() end. He runs the rest of the script.

In the example you posted the entire script after the window display is return true, then ends. That is why there is no blink the window. If you put a line of $.sleep (1000) before the real return line, that display the windows until sleep wait times then the script will exit and the window will close. That's why with Photoshop palette windows are really only useful progress bars or other type of script status windows.

Although windows palette can allow the user to intreact with application UI while the window is displayed and does not work with Photoshop. The window shows only while the script runs and Photoshop UI interaction limited a running script.

I tested windows palette in CS2, CS3, CS4 and CS5 with the same results. The window shows only while the script is running.

With Photoshop if you want the user to interact with the user interface you will need to create a Panel.

Tags: Photoshop

Similar Questions

  • When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.

    When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.  Help, please.

    As I suggested previously, conversion to a format like
    . WMV before you import it into Movie maker may be the solution.

    The free Converter from Microsoft can be a place to start:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download Microsoft Expression Encoder 4 with Service Pack 1 (SP1) (freeware)
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24601
    (runs under WinXP SP3 / Vista / 7)

    When you install the program...
    Start Microsoft Expression Encoder 4
    (Start / programs / Microsoft Expression /)
    Microsoft Expression Encoder 4)

    On the "Load a new project" screen...
    Left click... "Transcoding project '...

    When the program opens, click on... File / import...

    (If at any time you get lost while browsing
    the program of... to... Window / active Reset
    Type or workspace... CTRL + SHIFT + R)

    Look for the file/s that you want to convert.
    (If files do not appear... open the fall
    window and choose... All files)

    Click (highlight) left the files and the left on the Open button.

    You can see the files in the "Multimedia content" pane

    In the right column... left click on the tab "Output"...

    Open the drop directory window and choose an output folder.
    (This is where you will find your converted file)

    On the left, click on the button "encode".

    Wait... video encoding CPU intensive and can
    be a slow process. It is always best if you do not have
    multi-task while files are encoded.

    Now... try import you again. File WMV in Movie Maker.

    More converters:

    There are to many converters available on the net...
    the following links are some examples. You can
    need to experiment to find the best result.

    Proceed at your own risk *.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    (1) format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup270.zip<>
    (FWIW... installation..., you can uncheck
    'all' boxes on the last screen... even in this case, it may
    install the Ask toolbar on your system)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag FFSetup270.exe out of the folder
    and drop it on your desktop. To install left click.

    (2) Freemake Free Video Converter (freeware)
    http://www.Freemake.com/free_video_converter/
    (Windows XP / Vista / 7)

    (3) Koyotesoft Free Video Converter
    http://www.koyotesoft.com/indexEn.html
    (2000/XP/2003/Vista/Seven)

    (4) Sothink Free Video Converter
    http://www.Sothinkmedia.com/video-converter/
    (Windows XP / Vista / 7)

    (5) hamster Free Video Converter
    http://www.PCWorld.com/downloads/file/FID, order 155794, 4 pages, 1/download.html
    (Windows XP, Vista, 7)
    (If you choose Custom Installation
    You can uncheck additional modules you
    do not want to install)

    (6) quick Media Converter
    http://www.Cocoonsoftware.com/
    (Win XP, Vista, Win 7 Home Premium)

    (7) SUPER © Simplified Universal Player Encoder & Renderer
    http://www.videohelp.com/tools/Super
    (the download mirror site is faster) (Windows XP / Vista / 7)

    (8) Xilisoft Video Converter
    http://www.Xilisoft.com/video-converter.html
    (not freeware but receives good reviews)
    (Windows XP (SP2 or later) / Vista / 7)

    Good luck...

  • Touchpad on the laptop does not scroll upwards or downwards

    The touchpad on the laptop does not scroll upwards or downwards, I was offline for 5 weeks that my router broke out between the change of operator, so I had to wait for another.
    When I was on the touch pad was'nt working properly. I can't do a system restore, because that would be the former provider. Ideas anyone please?

    First, check the scrolling settings in the advanced settings of Touchpad.

    If they are enabled, uninstall the mouse/keyboard 3rdparty as Logitech or Microsoft and Watcom drivers that may have installed you.

    If it's no good, uninstall the Toshiba touchpad driver, then download and install the latest version.

  • I am not able to open a web address, Windows Live, because the resource does not respond.

    I'm not able to open my Windows Live Calendar that is created by Windows;

    https://CID-cc49fdd95b0ee0dd.Calendar.live.com/calendar/private/c839cef8-8d4f-47E2-9c85-77c9f425c449/9f1db3ad-6994-4981-8d1d-8f0d174e6a0a/index.html

    I get a message that the resource does not respond.

    Your suggestions help to access detailed information, as well as my email.

    Nonsense. If you see the details of your calendar when you click on the link I gave, then you are connected with the Live ID that is associated with the agenda. No matter who else by clicking above will see either his own calendar so it is connected, or an invitation to sign it if it is not.

    If you try to share a calendar with other people, then use the options to share on the calendar page. You can specify how much or little detail people see, including the only periods of availability.

    Please ask questions about Windows Live Calendar in the forum dedicated to it.

    Noel

  • How can I reinstall windows xp when the computer does not start and there is no cdrom/dvd drive?

    I have an Acer netbook aspire one.  It will not boot past the windows logo.  I have a windows xp disc to reinstall windows, but the computer has no CD or dvd rom.  Can I copy cd of windows xp on startup SD memory card and reinstall windows?  Or can I run connect the non working pc a working PC to access the cdrom on the work pc to reinstall windows?

    First of all, you are mistaken when you say that the PC does not start.

    This is clearly starting. The problem comes from Windows, not with the real PC. It's actually a very important distinction!

    There are methods to repair Windows, but they can be a bit tedious. By all means, follow the advice given here to do if you're so inclined.

    If you would not rather to repair Windows (and I think it's interesting a try) or your repair attempts are unsuccessful, apparently, you would need to use an external optical disc drive and follow the instructions here:

    http://Acer.custhelp.com/app/answers/detail/A_ID/2631

  • T610 with Windows Embedded 7 - the system does not license for the operating system image

    Hello community,

    I bought a refurbished computer ThinClient T610 that is running a Windows 7 Embedded English. The label on the package says, that the computer ThinClient is allowed with W7E. When I now run Easy Tools installed on the computer ThinClient hp to create a USB Image with the German language, everything works fine: the image is downloaded from the web and put on the stick.

    But after you start the stick, the installation program tells me: "the system does not license for the operating system image. What I am doing wrong? The BIOS is already the latest.

    Or y at - it another way to transform the operating system in German? There should be an option to download additional languages, but this particual window has no other options. And I have not found any manual way to download other languages.

    Concerning

    Michael

    Sometimes it can be so easy... ;-)

    So here's my solution:

    1. go on the Web for hp Support site

    2. go in the software and driver download

    3. set the language of driver on the language of your choice (in fact: it was the main problem)

    4. download an operating system image

    5. run the configuration tool and copy the image of an operating system on a flash drive

    6. restart the workstation and install the os

    7. take advantage of your computer ThinClient in the language of your choice

    I don't know, why the hp Easy Tools downloaded the image of evil, but with this solution, that I find myself at the same point, as if they did.

  • Windows DVD maker, the music does not play while the menu is on.

    Make a movie on Windows DVD maker, the only problem is my music, which I have added to the menu does not work. He played during the preview. But not after the film was burned. (The music file was an MP3 of a complete song in my Windows Media Player file) Also, is there a way to make music to play more of the song that I added, as he only play on a second clip 10. Can I do play together somg as long as I keep the menu screen?)

    Make a movie on Windows DVD maker, the only problem is my music, which I have added to the menu does not work. He played during the preview. But not after the film was burned. (The music file was an MP3 of a complete song in my Windows Media Player file) Also, is there a way to make music to play more of the song that I added, as he only play on a second clip 10. Can I do play together somg as long as I keep the menu screen?)

    ==========================================
    It is possible that you have a problem of compatibility with MP3 files...
    convert to WMA format before importation may be worth a try. Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Re: Satellite A300-21I trying to start but the screen does not light upward

    I have a laptop Toshiba Satellite A300-21I 15.4-inch around the age of 2 months.
    He walks yesterday and received a message (very short)-initialization failed, see the event log.

    Laptop computer tries to start but the display does not illuminate.
    No prior problems.

    The indices of anyone?
    Stanley

    Hello

    You are able to access the BIOS?
    You see a Toshiba start screen that usually appears at the beginning?

    What happens if you press F8 at the beginning of the boot process?

    Please provide more details!

  • Windows 7 after the judgment does not turn off

    When I make a stop in Windows 7, it seems to stop, but it does not power the computer off.  I can then manually off (button for 4 seconds).  When I turn on and start Windows my (race mirrored) raid begins a check and fix (takes forever).

    Here's what does not (believe it or not):

    1. Can I do a restart of Windows 7 - it works fine, no problem, raid is correct.
    2. I can do a reboot and upgrade to Vista (I have a dual boot), and then click stop.  He shut down correctly.  I can then turn on and start windows 7 - it works fine, no problem, raid is correct.
    3. I can do a restart and boot from CD (like Acronis), then reboot Windows 7 - it works fine, no problem, raid is correct.

    There is something strangely different between shutdown and restart in Windows 7.  Also, I have no blocking problems in Vista.  My solution is to do a reboot, the boot of Vista and then do a stop.  At least when I power on, Windows 7 starts up fine and raid is correct.

    I tried everything I can find in the way of suggestions on this forum and other websites without success.  I am stumpted.  My last test involved using msconfig.exe and disable all non-Microsoft services.  But no joy!

    My computer is 3 years old. I use an ABIT card with an Intel processor.  This is the first problem I've had in three years.  No problem with XP from the beginning and none currently with Vista.  The only problem with Windows 7 is closing.

    Well, that's all.  There must be a smart person out there with the answer.  Thank you

    I thank all of you for your help. I knew that closing in safe mode has worked very well. So I decided to disable the services a group with the intention of finding the only service that was causing the problem

    It worked. I found that the 'print spooler' was the cause.  I had installed an old printer (worked fine on Vista) and it seems to work perfectly without any problems on Windows 7. So I guess the power off fault is another reason. But after noting that the "print spooler" service was originally the power off of failure, I deleted the printer, then the driver of the printer. The printer is a HP Laserjet 2100.  Now all works.

    Once again, thank you for the suggestions.

    Problem solved.

    Cecil J

  • How to go in safe mode on Windows 8, if the computer does not start?

    Recently, my computer won't start, suspended to the start screen. In order to diagnose certain things, I need to get through safe mode. In earlier versions of Windows, I'd use F8 to get in. However, this is not an option in Windows 8. How would you like to do in safe mode on Windows 8 if the operating system does not start?

    Hello

    This gives a try... sometimes it will not work with multiple partitions of hard disks installed because it looks like bad... It might work from a repair also disc...

    1) start from the Windows 8 DVD
    2) click Next
    (3) select repair your computer

    (4) select troubleshooting
    (5) select Advanced Options
    (6) select command prompt

    (7) type - Bcdedit/set {bootmgr} displaybootmenu Yes (note the spaces)
    (8) type - out

    (9) restart

    (10) to the start screen, select F8
    (11) to select Safe mode with networking

    This can then be turned off when you are finished.

    (1) run by the lower left corner (Admin) command prompt right-click when Start appears.

    (2) type - Bcdedit/set {bootmgr} displaybootmenu not (note the spaces)
    (3) type - out

  • Adobe should warn or reimburse users of the 16-bit window machines that the software does not work

    In good faith, I'm subscribed to Adobe expected of professional quality products.

    I have a fast and powerful - if by the standards of recent years - machine and it certainly would have been possible to run older versions of Photoshop and Lightbox on a Quad Core i5 but when I subscribed versions will not properly work on a 16-bit PC.  Windows 16-bit only will address I think 4 GB of memory and a large part is absorbed by the operating system.  I was not yet able to define the edges on a selection!

    I tried to unsubscribe, but Adobe has offered 60 days for free!  Clever.  They bought me comes back with who in the hope that I will be able to update my system at that time here.

    But they should warn people - creative cloud does not work on 16-bit computers when using images of modern resolution.

    Hello

    Please see the following links:

    Manage your creative cloud membership

    Cancel your membership creative cloud

    If you still need help please contact support: contact customer service

    *Remember to stay signed with your Adobe ID ( email id used to purchase the subscription ) before accessing the link above*.

    Select the exact options listed below for support options:

    Let us know if that helps.

    Kind regards

    BANI

  • Form using the writer does not - 6i

    Dear all,

    I installed form builder 6i in windows 7-32 bit operating system.

    Form builder works fine but the problem is that if I press F1 (help) in the form builder it does not open using form builder.

    Instead of coming alert an error. The alert message is 'forms '. And windows in Help and support for the opening of the window...

    A patch I need to install to get the form builder help?


    Concerning
    Sankar.M.N

    You need Microsoft WinHlp32.exe for Windows 7

  • Photo filter in CS4 - using the eyedropper does not work

    Sometimes I correct a dominant book using the photo filter, a technique that I shot of Katrin Eismann "restoration and retouching" color all over.


    You add a layer of Photo filter, make sure the 'brightness' checkbox is checked, push 'density' up to 100% and click the shade of color in the dialog box.


    Select color filter dialog box opens, with digital displays for STL, RGB, CMYK and Lab color In addition, the cursor turns into a dropper.


    You click in a box to the image problem. Change numbers. You reverse the 'a' and 'b' values in LAB color boxes. For example if LAB is called 65,16,24, you replace 16 and 24-16 and -24 (so that in my example the LABORATORY values are now 65-16,-24. You click OK and then adjust the opacity of the layer of color filter to your liking.


    Today I tried this in CS4 for the first time. When I click in a box to the image problem, LAB values becomes 100,0,0 - whatever the picture, no matter where I click.


    This result is not consistent. I did a number of tests on 2 different images, try stuff as brightness release, mowing the Photo layer filter to the underlying layer, use the dialog box filter of Photo that you can access from the bottom of the layers palette, rather than the settings panel, etc. Twice I got reasonable values when I clicked on the picture of the select a color filter dialog box. But try again the same parameters (brightness turned off, for example) into another image, or in the same image, led to the now dreaded 100,0,0


    I have reset my prefs. Same result.


    I got my partner to try it. He got the same result. I am running CS4 on Windows 7 x 64. It is on a Mac with Snow Leopard.


    Is this a known issue?


    Thank you


    Mary

    This is because the layer mask is active and therefore clicking on the image with the eyedropper picked up the pure white of the layer mask. You can also see that, in the title bar, it should say something like (Photo Filter 1, Layer Mask/8). To fix it just click on the adjustment layer thumbnail of the

  • using the do does not track will be my lojack still be able to find my location if stolen pc

    I followed by avg if pc is stollen by using the do not follow foxfire will be I have problems with avg to find my pc if stollen

    Hello Kime34759,

    Please contact the Mozilla Support. I'm not familiar with the Lojack of AVG software, but in looking at the site here , their tracking software is at the level of the bios and does not track of browser use.

    For more information please visit the site of the products mentioned above.

    See you soon,.
    Patrick

  • Restore windows files when the connection does not work

    After an accident at some point, I noticed "Restore to folder windows when connecting" did not work.

    In "Folder Options - view" it is checked.  Also, I did 'Restore Defaults' and rechecked it.

    Confirmed also with regedit it wasHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\PersistBrowsers set.

    Another user on the system do not have the problem.  How can this be corrected?

    Concerning

    Ray

    Raymond,

    What is the version of Windows installed on the computer?

    I wish that you perform a scan of System File Checker-

    https://support.Microsoft.com/kb/929833/en-us

    If it does not then, I would have you decant the contents of the user account to a new user account this account is possibly corrupt.

    Refer to this article-

    http://Windows.Microsoft.com/en-CA/Windows/fix-corrupted-user-profile

    Thank you.

Maybe you are looking for

  • Applications

    How do I close or exit open applications in the air of the iPad? They remain open even if I turned off my iPad air.

  • failure of the LCD

    pls help me. My hp pavilion dv6-3230us shows a pink line vertically on the left side of the screen. PLS, I need your help to continue to enjoy the machine.

  • The Bios Dell lapttop upgrade program will not work.

    Downloaded a laptop Inspiron 1501 Dell Bios upgrade win1501263.exe to fix a first battery problem.  However the program is is not running.  When it is activated according to the Dell there is a quick observation on a back screen and then nothing.  Wh

  • How can I view or load a flash drive without having to download all the content.

    Previously, with assistant, there was an option to do NOTHING to DO when you plug in a device (USB, CD key or camera), but I don't see this option now?  The program automatically downloads all of the volume that makes multiple copies if you keep a fe

  • Change a hyperlink on every page

    Using Dreamweaver CC 2015. On a Web site, you have the headers (subject, name, etc.), but to link them together, you would need to go to each page and hyperlink each header whenever that would take a very long time. Is there a way to hyperlink, these