![]() ![]() Nice, huh? (You’re right, it does look a lot like the list of Scripting Guy achievements over the past year or so, doesn’t it?) What that does is remove the title bar, the close button, the minimize and maximize buttons, and just about everything else from the HTA window, leaving you with something that looks like this: Let’s start off by looking at the section where we configure the HTA properties: Īs you can see, we set only one property here: we set the Caption property to No. The HTA itself is divided into three sections: basic properties for the HTA, the message displayed in the body of the HTA, and the code that causes the HTA to dismiss itself after a set amount of time (in this example, after 5 seconds). Now let’s talk about the file you just created. So how do we get this all to work? Well, to begin with, copy the preceding code, paste it into Notepad or some other script editor, and then save the file with a. Where can you learn more about HTAs? Funny you should ask …. The little HTA we’re about to show you meets all those criteria. On top of that, you don’t want to give the user an obvious way to dismiss that message before the time expires. Technically it’s not a message box, but we’re assuming that doesn’t matter: you just want something to display on screen for a set amount of time and then disappear. In addition, you can create an HTA that does not include a close button (or even a title bar), and you can display any message you choose to display. HTA and are designed to run locally instead of over the Internet. An HTA is similar to an HTML file the big difference is that HTAs use the file extension. What we’ve got here is a simple little HTA (HTML Application). IdTimer = tTimeout(“PausedSection”, 5000, “VBScript”) So what kind of workaround do we have? This kind: But, wait, don’t go yet: we have a workaround for you. Oh, what the heck: the truth is, D, you can’t display a message box (for any amount of time) that doesn’t include a button of some kind. What’s up with that? And, that one thing, the one that was in the newspaper? That was really something, wasn’t …. So instead of saying that you can’t display a message box that doesn’t have a button on it (and then – after dashing your hopes – telling you that we have a workaround anyway) we’ll just talk about something else. In our defense, though, with Peter it’s sometimes hard to tell. ![]() Which didn’t make Peter all that happy, considering the fact that he’s still very much alive. Because of that we swore on Peter’s grave that we would never use such a corny opener ever again. The first time we told people they couldn’t do something and then immediately turned around and told them how to do it, well, that was pretty cute by the 138 th time, hwoever, it wasn’t quite so cute anymore. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |