Hey all,
I have written a script that has a GUI for interaction, but the desire to interact with it via command line has come up and I have implemented some basics of being able to run actions (functions) from the GUI silently without the GUI loading obviously, but is there a way to redirect the output to the Powershell window that called it? I know the purpose is to redirect all output to the GUI forms, but I also saw in the startup.pss :
Is there a way to achieve what I am asking? I did try tinkering with the above, but I was unsuccessful.
I have written a script that has a GUI for interaction, but the desire to interact with it via command line has come up and I have implemented some basics of being able to run actions (functions) from the GUI silently without the GUI loading obviously, but is there a way to redirect the output to the Powershell window that called it? I know the purpose is to redirect all output to the GUI forms, but I also saw in the startup.pss :
Code:
.SYNOPSIS The Main function starts the project application. .PARAMETER Commandline $Commandline contains the complete argument string passed to the script packager executable. .NOTES Use this function to initialize your script and to call GUI forms. .NOTES To get the console output in the Packager (Forms Engine) use: $ConsoleOutput (Type: System.Collections.ArrayList)
Statistics: Posted by NewRootUsr — Fri Nov 08, 2024 6:00 am