Article ID: 259103 - Last Review: August 27, 2007 - Revision: 3.6 How to use the Windows Script Host to automate an application
This article was previously published under Q259103 SUMMARY
The Microsoft Windows Script Host is a language-independent scripting host for 32-bit Windows operating system platforms. Windows Script Host is integrated into Microsoft Windows 98, Windows ME, Microsoft Windows 2000, Windows XP, Windows Server 2003, and Microsoft Internet Information Server 4.0. It is included with Microsoft Windows NT 4 Option Pack. To download the Windows Script Host, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/ms950396.aspx
(http://msdn2.microsoft.com/en-us/library/ms950396.aspx)
MORE INFORMATION
This article describes how to use the Windows Script Host to run, activate, and send keystrokes to applications. The Windows Script Host Object Model includes a versatile Run() method that allows programmers to specify window states of the applications they run. The AppActivate method allows programmers to activate applications by passing the target application's windows caption. The SendKeys method allows programmers to send keystrokes to the activated application. Use the following code: REFERENCESFor additional information, visit the following MSDN Web site:
http://msdn2.microsoft.com/en-us/library/ms950396.aspx
(http://msdn2.microsoft.com/en-us/library/ms950396.aspx)
See the following documentation on this Web site:White paper: Windows Script Host: A Universal Scripting Host for Scripting Languages Technical Paper: Windows Script Host Programmer's Reference APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
