Pass information from the Panel to the Script?

Hello

I wrote a JSX script to automatically generate forms of grid for me, then used 4 configurator to create a panel that triggers the script.

It would be much more useful if I could have text fields so that users can specify how many grid lines, columns, etc., but I don't see any method to do that in the configurator.

Is it possible to pass on a panel user input in a script?

I use CS6.

Chaila

Hi eshan.mathur,

I would say that's not possible, but I'm not a big expert Configurator 4.

If you need a simple GUI on CS6, I suggest to use a scripted dialog box. It is not difficult if you do not want stuff, to see this code snippet:

var yourFunction = function(first, second, third) {
    // Do whatever you need here
    alert("Params\nFirst: " + first + "\nSecond: " + second + "\nThird: " + third);
}

var res = "dialog { \
    margins: 15, spacing: 20, \
    preferredSize: [200,100], \
    orientation: 'column', \
    text: 'Demo Scripted Dialog', \
    alignChildren: ['right', 'top'], \
    \
    firstParam: Group { \
        sText: StaticText { text: 'First Parameter:' }, \
        eText: EditText { \
            characters: 4, \
            text: '10' \
        } \
    }, \
    secondParam: Group { \
        sText: StaticText { text: 'Second Parameter:' }, \
        eText: EditText { \
            characters: 4, \
            text: '20' \
        } \
    }, \
    thirdParam: Group { \
        sText: StaticText { text: 'Third Parameter:' }, \
        eText: EditText { \
            characters: 4, \
            text: '30' \
        } \
    }, \
    buttonsGroup: Group { \
        cancelButton: Button {text: 'Cancel'}, \
        okButton: Button { text: 'OK' } \
    } \
}"

var w = new Window(res);
var retVal = w.show();

if (retVal == 1) { // User clicked OK
    var firstParam  = w.firstParam.eText.text,
        secondParam = w.secondParam.eText.text,
        thirdParam  = w.thirdParam.eText.text;
    yourFunction(firstParam, secondParam, thirdParam);
}

Hope this helps,

Davide Barranca

---

www.davidebarranca.com

www.cs-extensions.com

Tags: Photoshop

Similar Questions

  • What is the command of shortcut for all windows get the information from the computer?

    What is the command of shortcut for all windows get the information from the computer?

    instead of going to the computer / my computer > properties > discover the pc... basic information or go to the control panel...

    just a command for windows xp, vista, 7 for system looking for information....

    original title: what is the SHORTCUT COMMAND to get information from the computer system?

    Hello BlackSecret,

    The keyboard shortcut to get to the top of this information is Windows key + break Attn.

    Who does what you ask?
  • I try to install the Lexmark 810 series printer and I am unable to find the driver to download information from the drive to?

    I try to install the Lexmark 810 series printer and I am unable to find the driver to download information from the drive to?

    Try to install a Windows Vista driver if there is no native driver Windows 7.

    You can also run the troubleshooting of the printer.

    Open the printer Troubleshooter

    Open the printer Troubleshooter by clicking the Start button, then Control Panel. In the search box, type troubleshooting, and then click Troubleshooting. Under hardware and sound, click on use printer.

    For more information, visit the below mentioned link:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    Printer problems: http://blogs.technet.com/b/markrussinovich/archive/2010/04/12/3324570.aspx

    Run the printer problems to: http://support.microsoft.com/gp/printing_problems?entrypoint=WHHT

    You can see the below mentioned links.

    http://Windows.Microsoft.com/en-us/Windows7/install-a-printer

    http://Windows.Microsoft.com/en-us/Windows7/find-and-install-printer-drivers

    http://Windows.Microsoft.com/en-us/Windows7/change-your-default-printer

    http://Windows.Microsoft.com/en-us/Windows7/printing-to-the-correct-printer

  • How to extract information from the ovf file from a file of eggs by programming?

    How to extract information from the ovf file from a file of eggs by programming?

    Hello

    Please provide details:

    -On what OS you are programming (Linux, Windows,...)?

    -What programming or scripting language do you use?

    An EGG file is just a tarball of hard, .ovf and .mf files. The .ovf file is always the first. For example, on a Unix like operating system, this should be easy.

    For Windows, there are several options available to manage programmatically the tarballs. See for example http://www.codeproject.com/Articles/470999/tarlib-Windows-TAR-Library.

    And the ovf itself file is in XML format. For handling XML files are libraries available for literally every OS and programming language.

    Google is your friend.

    Andreas

  • I want to extract information from the same input field in multipal PDFs (created using document pro) and export them to an excel file. Is this possible? If this isn't the case, Adobe seeks to make this project a reality.

    I want to extract information from the same input field in multipal PDFs (created using document pro) and export them to an excel file. Is this possible? If this isn't the case, Adobe seeks to make this project a reality.

    -Extract all data from a single file can be done via the tools - forms - more form Options - export data...

    -Extract some data from a single file will require a script to measure.

    -Extract all the data from multiple fields in a single file can be done via the tools - forms - more form Options - merge data files into spreadsheet...

    -Extraction of data from several files will require a script Custom Action, as I've written before.

  • I had to get a new phone because I dropped one and damaged the screen how am I supposed to remove the information from the old phone if I'm not

    I had to get a new phone because I dropped one and damaged the screen how am I supposed to remove the information from the old phone if I don't?

    Are you turning in the Apple device, a company or the insurer? Can you turn on the device? If so, you could try to send a command to erase with iCloud. If this is not the case, if her deal with Apple, they he will wipe away. If the only damage the screen, you don't want just the screen replaced?

  • Firefox Help my firefox top bar has been changed, I used to be able to get the file to bookmarks Format printed, and other services that I have found useful when you take information from the internet, where they went, I want them back?

    Firefox help

       Search
    

    "Found 0 results for" my firefox top bar has been changed, I used to be able to get the bookmarks printed Format file, and other services that I have found useful when taking information from the internet, I found bookmarks to the right of the new game to the top, but it seems not instantly friendly where they went, I want that they come back? »

    See:

  • Removes really all the information from the old operating system recovery disc?

    Hello!
    I wanted to know if the recovery disk that came with my Toshiba computer deletes * all * the hard disk information, * or is it possible, which has damaged the malicious software that was installed on my computer sometime before resists after using the recovery disk? *

    "If I use my drive recovery the program just wonder if I wipe my hard drive and informs me that my data will be destroyed if I use this recovery CD. After this issue alone, it begins with the recovery process. Is ' normal for this drive, he'll ask me any other questions on "what partition will recover and so on and it starts recover after this issue alone?

    What Toshiba drive cleanup could I use the case, if this recovery disk deletes all old information from the hard drive to ensure that * all * of my last hard drive is wiped clean?

    Thanks for the reply!

    Hello

    If you use the disk recovery Toshiba, all data will be erased on the HARD drive.

    Before the start of the resettlement, the HARD drive will be formatted. Malicious software and other software will be deleted.

    So you n t need another drive or another program to erase the HARD drive.

    Try it and you will see that it works. But first, back up your data.

  • Passing arguments to the script

    Hello

    I have created a dialog box load the files in the folder and when I click the button I run another script of command StartScript (...)

    How can I pass arguments to the script (the paths of files)?

    Thank you

    Hey OzShimon,

    As long as you use a tiara predefined global variables (T1, T2,...)  you'd be fine. You can also define user variables (.) SAV files) or even to declare your own global variables with: call GlobalDim ("Myname").

    These variables are not re-initialized until you restart the script engine. So just change 'obj' for T1 your test should work

    ' Dim obj

    Void Button1_EventClick (ByRef This)

    T1 = "Hello World".

    Call ScriptStart("C:\Users\Oz\Desktop\test.vbs")

    End Sub

    * the script code (test.vbs):

    Call MsgBox (T1)

    Kind regards

    Javier

  • How to read information from the smart phone

    Hello

    I want to get the information from the BB Phone, as the OS version, model munber, IMEI and so on.

    can someone help me?

    Thank you

    String imei = GPRSInfo.imeiToString (GPRSInfo.getIMEI (), false);

    String deviceId = DeviceInfo.getDeviceId)
    String deviceName = DeviceInfo.getDeviceName)
    Soft string = DeviceInfo.getSoftwareVersion ();

  • How to remove all information from the computer so I can sell it?

    How to remove all information from the computer so I can sell it?

    Hello

    You will want to format the hard disk:

    1. you can use DBAN - http://www.dban.org/

    or

    2. you can follow this tutorial to clean install up to the step where you format the disk, in which you would then STOP (because you just want to get rid of the files on the hard drive, do not install Windows) - http://www.sevenforums.com/tutorials/1649-clean-install-windows-7-a.html

    Kind regards

    Patrick

  • currently still have PP CS5.5 & want to install on another office, understand that I can only use one at a time. don't have a CD, can I get information from the current installation and a link to download PP CS5.5?

    currently still have PP CS5.5 & want to install on another office, understand that I can only use one at a time. don't have a CD, can I get information from the current installation and a link to download PP CS5.5?

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    Find your http://helpx.adobe.com/x-productkb/global/find-serial-number.html serial No.

  • Get information from the low level of the Subvi ni5660

    A quick explanation of the problem: I need to create several VI just to return a value of the PXI-5660 (ex: Center frequency, Span, etc.) while the entries are only a "VISA" and one "error in.»

    Detailed explanation of problem: I need to create multiple VI that the properties 'Set' or 'Get' of the PXI-5660 module (ex: the Central frequency value, get frequency, etc...).  Each VI must have a VISA in/out and in/out Error, but the only other present in/out should be the property of game/called.  Global variables are not allowed.

    One of the biggest problems for me is that ni5660 drivers do not contain a property node.  I managed to (apparently) set some of the properties by feeding only a single entry in the icon 'configure ni5660 for spectrum', but the only tool that seems to be able to output all information is the icon «MT get Attributes»  The release of 'MT get Attributes' does not contain many of the properties that I need good output.

    I tried to use the icon 'MT get Attributes' linked to "ungroup by name" which has the value "handle receiver.handles.niScope" which feeds on the reference to a property niScope node, hoping that I would be able to obtain information through the niScope 5660 (it seems that ni5660 software uses the niScope on a lower level software ", correct me if I'm wrong).  This VI finished, when put online with the 'ni5660 Initialize.vi' and ' ni5660 Close.vi, ' returned the error (-1074135028) with the explanation 'ID attribute not recognized.' ""  (The error occurred on the property node in the Subvi "Get the Central frequency")

    The goal is to make the action of PXI chassis similar to a HP8563E Spectrum Analyzer.  With this in mind, the list of attributes that I will need in the end to set and get (the separate VI) are the following: Center frequency, Span, window, number of Points, resolution bandwidth, level of reference, mitigation and time sweep.

    I apologize for my (very probably) simple question, but endless (I only started programming in LabVIEW there about 2 weeks).  If someone would be able to point me in how to make apparently PXI-5660 current property settings from thin air, I would be very grateful.  If more information or details are needed, feel free to ask.

    Thank you

    zdunn wrote:

    ....

    but unfortunately, I'm still at a loss, how to create a VI that "calls" that same property back and the fate, while using only 'VISA In' and 'In Error' as inputs.

    Located on how silly that statement. You want to create a function where (for example) you want to set the resolution bandwidth and do not want to pass as a parameter the name of the instrument. You have created the programming language that is able to read minds?

    You can use a function where you can pass a parameter in (or use a function that retrieves a parameter) or do nothing at all with the instrument. It is more complicated than that.

    There are tutorials available that can help yu with LabVIEW to learn, but I think that there are certain fundamentals means.

    Edit: Sorry, I may have misunderstood. to query does not require an entry but I don't understand what you want to query. The parameters of the instrument are all under control stripped - a program you or any other writing. Unlike a GPIB instrument, there is no one '?' command to read a rear frame. It is assumed that you know how the instrument has been configured in the first place.

  • Get information from the file for use in Action of PS

    I am trying to create an Action that adds text from a photo of an image metadata.

    When recording an Action, I could open the information file and copy the text and then paste the text from the image. However, when I replay the Action on another image, for example the text of the original photo is pasted, the Action does not save the copy and paste it to the Clipboard.

    How can I automate paste the title of the Document, Description and other similar texts on a picture?

    The larger goal is to create a Droplet use to process a large number of images exported from Lightroom. However, I have not been able to successfully create the first step of a PS action that does what I need.

    Thanks for any help with this problem.

    Old Photo from Photoshop Web Gallery function would be inspired by galleries that could include the Image title and Description that is stored in the metadata of the Image. My scripts SimpleViewer and WS-Slideshow Photoshop create Web Flash galleries that support also the title and description of the metadata of the image and EXIF and notice of copyright. only Copyright metadata are superimposed on the image that the rest of text is displayed by Flash player in the XML file built by Photoshop script using the metadata of images. Example http://www.mouseprints.net/SVNewZealand/ws-slideshow.html

  • Get information from the Bank of Tables HZ

    Hi I mostly use CE_BANKS_V for the information of the Bank, but in case I want this HZ_PARTIES table information so how I can get because there is presented data of parties, people, etc.. i don't know which one I should mention to get only the condition information stores.

    Kind regards
    Shakeel Khan

    Hi Shakeel

    If you see the script for ce_banks_v, it uses the table hz_parties only. You can use the following query (this one is taken by the script of ce_banks_v only):

    Select * from
    hz_parties bankparty, hz_code_assignments bankca
    where
    bankparty.party_type = "ORGANIZATION".
    AND bankca.class_category = 'BANK_INSTITUTION_TYPE. '
    AND bankca.class_code IN ('BANK', 'CENTRE')
    AND bankca.owner_table_name = 'HZ_PARTIES. '
    AND bankca.owner_table_id = bankparty.party_id
    AND NVL (bankca.status, 'A') = "A".

    Thank you
    Serge

Maybe you are looking for

  • How to uninstall an earlier version of java for Add-ons?

    I upgraded java version 6 Update 21, but then the new version is present in 'modules' (java console 6.0.21), is old. (java console 6.0.20). Only the disable button is highlighted, so I clicked it and it is now off, but why can't I just uninstall it?

  • E-mail scan Delete

    I got my Razr Maxx the stock email app so I could slip on occasion such as reading and right left to remove the value. I could plow through dozens of emails in seconds. I liked this feature. On the Turbo, it is remove them all, right or left and cann

  • 8470p size dysku

    DzieńdobryMAM pytanie co mojego laptopa specyfikacji w my napisane, że wspiera dyski SSD SED SSD 240 GB, 256 GB and HARD 7200 RPM disk do 750Go. Czy ten portable obsłużyłby disk HDD 1 TB, SSD 256Go (bez SED) oraz SSD 512 GB (bez SED)?

  • My Acer Travel Mate 4060, set Ram to upgrade to 2 GB 7 sp1 32 bit windows welcome

    I'm unable to open mode without failure or normalmode. . DVD/CD player does not work. When I start pressing F8 repair windows opens. No available to restore to an earlier restore point. I tried to open it with a USB key provided by my internet provid

  • Can not open attachments to email with Extensions PowerPoint ppt or pps

    I can't open attachments with PowerPoint extensions ppt or PPS. I get the message 'set associatiions', but once you get to the set associations Control Panel I don't know what to do to make it work.  It says 'click on an extension to display the prog