Create a splash screen
Keywords: Create a splash screen
Question:
I am trying to create a splash screen that pops up when my Winbatch script is executed. I have tried using the html editor to call an html file that has a JPG in it but I can not get the window to close without having the user close it themselves.Is there a way to create a splash screen at all???
Answer:
I would recommend the BOX functions. See your Winbatch\Samples directory for the "Box Drawing Demo.WBT" for a sample of what the Box functions can do.
If you absolutely *require* the ability include a .JPG graphic, you could try one of the following options:
- The HTML Dialog is *mostly* for input only. You can run a second script to put up a HTML dialog splash. However it does add substancial "bloat".
- Build an html file with the JPG you want in it, ("C:\InetPub\wwwroot\default.htm") then call the internet explorer...
Browser = ObjectOpen("InternetExplorer.Application") browser.visible = @true browser.navigate ("C:\InetPub\wwwroot\default.htm") ; first make sure the page is loaded... while browser.readystate <> 4 timedelay(1) endwhile ; now wait five seconds and close up shop... timedelay(5) browser.quit exit
Article ID: W14716Filename: Create a splash screen.txt