Wrox Programmer Forums
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 26th, 2003, 02:43 AM
Registered User
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JScript

Automation of application developed about
1980-1990 and intended to run under MS-DOS.

Automation of the Windows calculator with Windows
XP Pro's JScript works fine but it seems
impossible to utilise JScript to automate 1980's
applications that were intended to run under

A DOS batch file can be used to launch the
application by clicking on an icon on the Windows
desktop but additional lines in a DOS batch file,
although intended to simulate keypresses, seem to
have no effect.

Is there any economical solution to work around this
problem - a special utility program or whatever?

Old July 28th, 2003, 05:05 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

Take a look at the Windows Scripting Host objects, in particular the WScript.Shell object and its Exec method. When you use the Exec method to run a program, it returns a WshScriptExec object which provides access to stdin (and stdout) which you can use to send inputs to the program while its running.


Similar Threads
Thread Thread Starter Forum Replies Last Post
JScript DumAss HTML Code Clinic 1 August 25th, 2004 02:46 AM
submit using jscript alyeng2000 ASP.NET 1.0 and 1.1 Basics 3 June 14th, 2004 07:38 AM
how to debug jscript alyeng2000 ASP.NET 1.x and 2.0 Application Design 4 May 22nd, 2004 05:13 AM
PLEASE HELP! ACTIVEX in JScript stalker Javascript 2 August 15th, 2003 05:04 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.