How to indicate that the application is working
How to indicate that the application is working
Hi, I have a script that calls an external exe file to process some data. This can take anywhere from 1-3 minutes to do. I have tried to use the progressbar to show that the application is working in the background, but until now I haven't been succesfull. What I would like to do, is to have the progressbar(or any kind of animation in fact) to run/animate WHILE the external exe file is doing what it does. I can only make the progressbar increment before or after the exe file. Is there any way of doing what I'm trying to do ? Best regardsKenneth
How to indicate that the application is working
You might want to look at the Blog article on the Progress Bar: http://www.sapien.com/blog/2011/07/14/p ... r-control/ I recommend using the Marquee style, since you have no idea when the process will end. David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
How to indicate that the application is working
Thanks, but as I understand it, the 'Marquee' is only supported up to Win XP ? Also, the examples in the blog article doesn't seem to run/change while external commands are executed with the '&' function ? RgsKenneth
How to indicate that the application is working
The Marguee style works with all the latest windows versions. Are you running a script or starting an external application? If you are running a script you might want to consider using Jobs. If you running an executable, I recommend using Start-Process. David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
How to indicate that the application is working
I run an executable - I'll have a look at start-process, thanks
How to indicate that the application is working
May not be the best way but I change my cursor to the Wait while executing a function and then return it to normal when the function exits. Poor mans I'm busy but it works.
$buttonTab2Go_Click={
#Change the cursor to Hour Glass while executing CreateMoveRequest function
$formEST.Cursor =[System.Windows.Forms.Cursors]::WaitCursor
CreateMoveRequest
$formEST.Cursor =[System.Windows.Forms.Cursors]::Default
}
$buttonTab2Go_Click={
#Change the cursor to Hour Glass while executing CreateMoveRequest function
$formEST.Cursor =[System.Windows.Forms.Cursors]::WaitCursor
CreateMoveRequest
$formEST.Cursor =[System.Windows.Forms.Cursors]::Default
}