Hide the WinBatch Icon
Keywords: Hide Icon WinHide HideIcon
How do I get rid of the icon while WinBatch is running?There are a few ways to get rid of the icon:
- After the script is debugged and working correctly you can add the following to the first statement of the script.
WinHide("") ;make sure you don't have spaces between the ""If you add it before your script is finished, you won't be able to test that your program is running correctly.or.....
- If your compiling, set the Hide option in the compiler dialog to so the icon does not show when the compiled script is run .
Or, you can do it with an internal control, as follows:
IntControl(1002, p1, 0, 0, 0) Sets WinBatch icon display state. p1 Meaning -1 Don't change (returns current setting) 0 Hide WinBatch icon. 1 Show WinBatch icon (default).This function sets the display state of the WinBatch icon for the duration of the script. The default display state is minimized. This IntControl is equivalent to using WinShow() or WinHide() on the current WinBatch window. However, WinShow and WinHide do not have the capability of hiding the icon permanently. If any Box[..] functions are used to display information, the WinBatch icon will return to its previous display state. Returns previous setting.
Article ID: W12992Filename: Hide the WinBatch Icon.txt