### Module win32com.axscript - ActiveX Scripting Support

## SYNOPSIS

    # Parent Module
    win32com

    # Sub-Packages
    win32com.axscript.client
    win32com.axscript.server

## DESCRIPTION

### Introduction

This module contains support for Python as an ActiveX Script Language, (and also limited support as an ActiveX Script Host.)

In general, you will not need to use any of the modules provided in this package - it is purely implementation code. You can simply use your favorite language in any ActiveX Scripting environment.

### ActiveX Scripting

ActiveX scripting exposes an object model independant of the programming language. Each ActiveX host exposes a different object model - for example, the code "alert('hi')" will produce a message box under Internet Explorer, but fail under Active Server Pages. You need to consult the documentation for the host for information on its object model.

### Registration

To register the ActiveX Scripting client, simply change to the "win32com\axscript\client" directory, and run "python pyscript.py". You should see a message telling you the server was registered. Internet Explorer and Active Server Pages (if installed) should both now recognise Python.

Windows scripting host needs a few registry keys added under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Scripting Host\Script Extensions\.pys" You should be able to (pretty much) copy one of the other entries already there.

### Examples

Please check out the "win32com\axscript\demos\client" directory for all the demos and test code.

Copyright © Greg Stein, Mark Hammond, Curt Hagenlocher and a few other contributors
All Rights Reserved
Comments to author:
Generated: Sun Apr 20 1997