The Media-program for messages
The program is intended for output to the screen of messages in batch files,
scripts of loading/registration, in the system scheduler etc. The output message
is duplicated by a voice with usage TTS-technology
program component MS Agent. For engaging attention of the user the figure
of the agent moves on the screen and repeats the message through a sound
equipment of a computer.
The program consists of a main script msg.hta and an auxiliary batch file msg.bat and has the Russian-English interface - depending on system settings or parameters of the command line the window title and the voice message is output in the appropriate language.
Place msg.hta and msg.bat in the accessible directory, e.g., c:\Windows (Win 9x) or c:\Winnt (Win 2000/NT).
msg[.hta] [type:] [time:] [eng:] [noAg:] <the text of the message>
For acceleration of the process it is recommended to use the format
mshta.exe msg.hta ...
The description of algorithm, possibility on modification of the program:
The program is developed with usage of the hta-model, permitting to combine rather rich design possibilities dynamic HTML, supported IE 5+, and possibilities WSH for operation with objects on a local computer (a file system, the registry etc.). The operating system executes such programs locally, without taking into account customizations of safety of a browser of Internet Explorer (as exe-programs). The additional information can be obtained on a site of Microsoft Corporation.
Msg.hta program forms and displays the text of the message transferred(handed) through parameters of the command line in the window of special sort. The way and time of demonstrating of the message on the screen of the screen monitor are regulated with the help of commands on the command line. The order of commands and fragments of the text - arbitrary.
For engaging to the message of additional attention of the user in the program are used voice (TextToSpeech TTS technology) and animated possibilities the component of MS Agent (the additional information and source files for installation of the agent and TTS system on a computer - on a site of Microsoft corporation). The concrete variety of the agent (the author in the present moment knows four, for addition new or deleting unnecessary accordingly it it is necessary to update array AgentsKnown of the description of characters) is selected by random image from among placed(installed) on a computer. After output of the message to the screen the agent in the random image moves also a voice says the text of the message. For a stop of the agent there is a command a context menu (the right mouse button).
% Loading of archive with the program: site-1 site-2.
The simple version of the program