Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
- <meta http-equiv="MSThemeCompatible" content="Yes"> <!-- For HTA -->
- <title>Blah blah</title>
- <style>
- *
- {
- font-family: "Tahoma";
- font-size: 9pt;
- }
- .resultdisplay
- {
- font-family: "Lucida Console";
- color: white; background: black;
- position: fixed;
- left: 0; top: 5em; right: -0; bottom: -0;
- white-space: nowrap;
- overflow: scroll;
- }
- </style>
- <script type="text/javascript">
- function createCOMObject( progId )
- {
- return new ActiveXObject( progId );
- }
- var wshShell = createCOMObject( "WScript.Shell" )
- function updateResult()
- {
- //alert( wshShell.CurrentDirectory );
- var process = wshShell.Exec( "uh.console_app.exe" ); // TODO: name.
- var input = username.value;
- process.StdIn.Write( input + "\r\n" );
- var output = process.StdOut.ReadAll();
- resultDisplay.innerText = output; // TODO: Remove prompt text, etc.
- }
- </script>
- </head>
- <body>
- <div id="wrapper">
- <div>
- <label for="username">Your name?</label>
- <input id="username" type="text" width="40em"/>
-
- <button onclick="updateResult()">Update results</button>
- </div>
- <div id="resultDisplay" class="resultdisplay" style="">
- Blah blah
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement