Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 480

PowerShell GUIs • Re: Unresponsive form while module loads

$
0
0
runspaces?
I use this method over 10 times in my form to ensure the UI stays responsive , which is to wait until the runspace is complete

When my form is loading I import the slashscreen, that post is from last week maybe

when my splashform is visible via my startup.pss and the runspace(function from globals.ps1) hasn't completed, every tick my pbar moves on my splashscreen
you can see an example of importing the webview and visualbasic modules and what the function does depending on which screen is visible
even above that I use it to run robocopy to download the files to the local PC and then again to add them

you can see on the right side, any parameter I put in prior to get attached on step 3..
Snag_101162fa.png

Statistics: Posted by apowershelluser — Mon Dec 18, 2023 4:33 pm



Viewing all articles
Browse latest Browse all 480

Trending Articles