473,508 Members | 2,292 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Active Scripting

I am very very new to python. I implemented an application to run
vbscript using IActiveScriptSite and others. It works well in
vbscript. I want to include python script and run into problems.

The way i setup my application, I create the script language engine,
call AddNamedItem("XXX", SCRIPTITEM_ISVISIBLE | SCRIPTITEM_ISSOURCE),
give the engine the script to execute, and finally
SetScriptState(SCRIPTSTATE_CONNECTED). After that, I fire a event
OnStart (through IConnectionPoint).

My vbscript looks like this:

some code 1...

Sub XXX_OnStart
some code 2...
End Sub

SetScriptState runs "some code 1...". The event I fired runs "some
code 1..." and "some code 2...".

After switching to python engine, I have my python script like this:

some code 1...

def XXX_OnStart():
some code 2...

SetScriptState runs "some code 1...". However, the event I fired is
not handled. In fact, there is no connections.

What am I missing? I installed python 2.4.1 and
pywin32-204.win32-py2.4 and went through the registration part.

Aug 26 '05 #1
0 1123

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2864
by: Chung Jiho | last post by:
Hello, We have been deploying our web application over win2k servers. It is written in Python and uses Active Scripting to meet our requirements that it must be ASP application. So far, it was...
0
1497
by: Cameron Laird | last post by:
QOTW: "Rule of thumb: if you can't find it, it's in section 2 of the library docs." John J. Lee http://groups.google.com/groups?selm=87he1wxfxs.fsf%40pobox.com "Monte Carlo sampling is no way...
13
5471
by: Marcel van den Dungen | last post by:
Does anybody know how to use Python as the scripting language for HTML applications? I tried the following, but I get a script error ('Object expected') on the body element. <html> <head>...
7
1434
by: Tempo | last post by:
I recently uploaded a sample ASP-Python page to my web server and it didn't show up correctly. Before I explain what it did, I should mention that I got the same result when I tried to view the...
37
2429
by: John Salerno | last post by:
I contacted my domain host about how Python is implemented on their server, and got this response: ------------------- Hello John, Please be informed that the implementation of python in our...
12
2322
by: rurpy | last post by:
Is there an effcient way (more so than cgi) of using Python with Microsoft IIS? Something equivalent to Perl-ISAPI?
13
2011
by: aum | last post by:
Hi, I'm a Python programmer, just starting to get into javascript. On reading some of the js guides, and not liking any of the OO usage patterns I saw, I've cooked up something which python...
4
7927
by: michael.pearmain | last post by:
Hi Experts, Looking for a very quick bit on of advice on how to make some python code run. I'm a newbie to both VBA and Python, so i apologise if this is very easy but i'm about to tear my hair...
3
2595
by: Michel Claveau | last post by:
Hi! SilverLight ("MS flash killer"), is a plug-in for InternetExplorer (Win), FireFox (Win), and Safari (Mac). The release 1.1-Alpha come with JScript & Python (or ironPython?) See :...
6
1542
by: Terry Reedy | last post by:
http://www.linux.com/feature/150399 Interesting article with one minor incompleteness. "For instance, the print statement got turned into a print function; you must now put parentheses around what...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.