Page 1 of 1

Using "Preview GUI" for Pre-Existing Script

Posted: Tue Mar 13, 2018 5:52 am
by jt0821
I apologize if this has been previously discussed, but I am unable to find any answers - I am trying to use the GUI Designer features of PowerShell Studio with a script/form I previously manually developed. I have not been able to accomplish this by creating a new form and then trying to preview it. Does PowerShell studio look for specific button, form, etc names? Is this even possible or do forms have to be created in PowerShell Studio from scratch?

Re: Using "Preview GUI" for Pre-Existing Script

Posted: Tue Mar 13, 2018 8:52 am
by jvierra
PSF files are not scripts and PS1 files are not designable form files. You have to manually convert hand coded scripts to PSS forms. PSS cannot convert them.

Re: Using "Preview GUI" for Pre-Existing Script

Posted: Tue Mar 13, 2018 9:47 am
by jt0821
Thanks - Any suggestions for manually converting them? Is there a guide, etc.? Or do I just need to create the same buttons, output windows, etc. and then copy the code from the PS1 script?

Re: Using "Preview GUI" for Pre-Existing Script

Posted: Tue Mar 13, 2018 9:52 am
by jvierra
Use the designer to create a similar GUI and add the events and values as needed. Use the PS1 as a guide. There is no other way and no guide for doing this.