Hiding Shelled Application Activity

I have created a program using VB5 that uses the Shell command to launch QuattroPro and then issues a bunch of send key statements to create an analysis report.  While the analysis report is being created in QuattroPro (approx. 5 min.), I would like to display an avi file with an animated hour glass.  My question is, how can I hide what QuattroPro is doing and display the avi file without losing the focus of QuattroPro and thus screwing up the send key statements?  Also, is there any way of disabling the keyboard and mouse so that the user does not interupt the QuattroPro commands in progress?

Thanks,

Don
derossAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mcriderCommented:
To hide quattroPro, you can do a couple of things...

You can use:

   x = shell("xxx",vbHide)
   AppActivate x
   SendKeys....

Or you can maximize your form and set it to be "always on top".  This way, QuattroPro is visible, but can't be seen because your form is the highest form...  To do this, see the microsoft example:

HOWTO: Create a Form That Always Stays on Top
http://support.microsoft.com/support/kb/articles/Q184/2/97.ASP?LNG=ENG&SA=MSDN 
 

If you use the second option, after you do the sendkeys, set the focus back to your form and any keystrokes and mouseclicks will be sent to your application, not QuattroPro...

Hope this helps!

Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
derossAuthor Commented:
Thanks for the help.
0
mcriderCommented:
Glad I could help! Thanks for the points!


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.