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
(TextToSpeech) and
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. Installation:Place msg.hta and msg.bat in the accessible directory, e.g., c:\Windows (Win 9x) or c:\Winnt (Win 2000/NT). Usage: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 ...
Examples:
System requirements:
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). The program is written in HTML language using JavaScript and VBScript languages, delivered as the initial code. Modification of the program needs only the elementary text editor, the compiler is not necessary. For simplification of operation it is possible to use any HTML-editor.
|