Re: [python-win32] Python Windows Scripting Engine

2024-08-01 Thread Mark Hammond
On 2024-08-01 4:37 p.m., Valentin Abrutski wrote: Hello Mark. Sorry for bothering you again. I got another issue. When I call IActiveScript method: SetScriptSite(IActiveScriptSite site) I got invalid cast exception. Mostprobably it means that IActiveScriptSite  can't be properly passed as arg

Re: [python-win32] Python Windows Scripting Engine

2024-08-01 Thread Valentin Abrutski
Hello Mark. Sorry for bothering you again. I got another issue. When I call IActiveScript method: SetScriptSite(IActiveScriptSite site) I got invalid cast exception. Mostprobably it means that IActiveScriptSite can't be properly passed as argument to SetScriptSite. My assumption that my defini

Re: [python-win32] Python Windows Scripting Engine

2024-08-01 Thread Valentin Abrutski
Hi Mark, just to let you know. I found the root cause. I was trying to get 32bit version of interface and pywin32 export 64bit version(different GUID and slightly different function signature) Thank you for your help. On Wed, Jul 31, 2024 at 5:08 PM Valentin Abrutski wrote: > Thank you Mark. I

Re: [python-win32] Python Windows Scripting Engine

2024-07-31 Thread Valentin Abrutski
Thank you Mark. I will try that. Appreciate ср, 31 июл. 2024 г., 17:01 Mark Hammond : > Sorry, I can't explain that - running pyscript.py should register things > and support for IActiveScriptParse is unconditional. You could try running > `pyscript.py --debug` which might print some debug stuff,

Re: [python-win32] Python Windows Scripting Engine

2024-07-31 Thread Mark Hammond
Sorry, I can't explain that - running pyscript.py should register things and support for IActiveScriptParse is unconditional. You could try running `pyscript.py --debug` which might print some debug stuff, or even add print statements to client.py's QueryInterface function to make sure it's act

Re: [python-win32] Python Windows Scripting Engine

2024-07-31 Thread Valentin Abrutski
Hi Mark. Thank you for the idea. And appreciate your help. I tried it. And to be sure that I'm doing it right. I've tried to use this approach to get not only IActiveScriptParse, but also IActiveScript Still the same issue. I can get IActiveScript. But when try to get IActiveScriptParse I get err

Re: [python-win32] Python Windows Scripting Engine

2024-07-30 Thread Mark Hammond
On 2024-07-30 4:29 p.m., Valentin Abrutski wrote: Hi Mark. I double checked what I did with my previous attempt. And still can't get success. Probably you can give me an idea of what I'm doing wrong. I am working on an application(.Net) which provides scripting capabilities via AcriveScript

Re: [python-win32] Python Windows Scripting Engine

2024-07-30 Thread Valentin Abrutski
Hi Mark. I double checked what I did with my previous attempt. And still can't get success. Probably you can give me an idea of what I'm doing wrong. I am working on an application(.Net) which provides scripting capabilities via AcriveScript Engine. With the ability to debug script step by step a

Re: [python-win32] Python Windows Scripting Engine

2024-07-30 Thread Valentin Abrutski
Hi Mark Appreciate for fast response. I will look into it. Thank you. On Tue, Jul 30, 2024 at 5:56 PM Mark Hammond wrote: > IActiveScriptParse is supported - check out the com/win32comext/axscript > directory. > > Cheers, > > Mark > On 2024-07-30 10:14 a.m., Valentin Abrutski wrote: > > Hello

Re: [python-win32] Python Windows Scripting Engine

2024-07-30 Thread Mark Hammond
IActiveScriptParse is supported - check out the com/win32comext/axscript directory. Cheers, Mark On 2024-07-30 10:14 a.m., Valentin Abrutski wrote: Hello all, Hopefully somebody can help me. Microsoft provides implementations for Microsoft Scripting Engine - VbScript and JScript. I need to

[python-win32] Python Windows Scripting Engine

2024-07-30 Thread Valentin Abrutski
Hello all, Hopefully somebody can help me. Microsoft provides implementations for Microsoft Scripting Engine - VbScript and JScript. I need to add Python Script Engine support. I see that pywin32 already has a component for that(COM object). But it exposes only the IActiveScript interface. For my