WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Hiding-Disabling Apps to Prevent User Intervention

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to make a program to run hidden

Keywords: 	  hide program hidden Winbatch

Question:

How do I make a program to run in a silent model so the user will not see anything. I'm sending Keystrokes to Microsoft Software Inventory Analyzer which I'm launching with ShellExecute using the @HIDDEN flag.

Answer:

Ummm.

Well if you are compiling the WBT file, under the "Settings" option button oyu can select "Run Script Hidden"

And/Or you can add

WinHide("") to the top of the script.

If you are referring to the MSIASCAN software, I see you already execute it via a ShellExecute with a @HIDDEN parameter. If the problem is that it is not appearing hidden......well it looks like you are trying to do SendKeys to it. To Sendkeystrokes to an applicaiton it must be on top and visible, just like an application that gets keystrokes from the keyboard.

In many cases you can control a lot of applications without the keyboard by using the Control Manager extender. Writing scripts that use the Control manager extender can be greatly assisted by using "RoboScripter" which you may already have.

If you can control the application via the Control Manager/Roboscripter method without any SendKeys then you can *usually) run the applicaiton completely hidden.


Article ID:   W15158
File Created: 2002:09:05:13:50:10
Last Updated: 2002:09:05:13:50:10