[python-win32] COM server accessible via "GetObject"

2009-03-06 Thread Greg Antal
Dear Experts: I want to program a COM server in Python where you can run it as its own application and work with it through its own UI, and you can also run an external script that connects to the running executable using (your language's equivalent of) VB's "GetObject" instead of "CreateObjec

Re: [python-win32] executing dos commands

2009-03-06 Thread Vernon Cole
One warning: If you do a chdir command (for example) or define a dos environment variable, etc, in a shell script -- using any of the subprocess or os.system or such commands -- it will only affect the child procees which is created for the call, not the process you make the call from. This is not

Re: [python-win32] LsaLogonUser in win32security?

2009-03-06 Thread Aditya Jayraman
Roger, Thanks for replying. I need it for a very specific case. I need to implement pass through authentication with different NTLM flavors. any suggestions on how this can be done with any of the current methods? LsaCallAuthenticationPackage() looks promising. Although the MSDN docs are not clea

Re: [python-win32] executing dos commands

2009-03-06 Thread Solomon.Zewdie.Altek
Many thanks toward you both! Now it works with: os.system(command) #Simon: well that was just an example... i was looking for a syntax in order to be able to execute certain dos commands, which is possible, like Graeme advised me correctly, with the the above command. Solomon __

Re: [python-win32] executing dos commands

2009-03-06 Thread King Simon-NFHD78
> -Original Message- > From: python-win32-bounces+simon.king=motorola@python.org > [mailto:python-win32-bounces+simon.king=motorola@python.or > g] On Behalf Of Graeme Glass > Sent: 06 March 2009 12:08 > To: python-win32@python.org > Subject: Re: [python-win32] executing dos command

[python-win32] Re: LsaLogonUser in win32security?

2009-03-06 Thread Roger Upole
Aditya Jayraman wrote: I was wondering if the pywin32 package implements the LsaLogonUser() method (not to be confused with the LogonUser() method) I looked through the win32security module and could not find it. Thanks --Aditya Nope, it's not there yet. I have a partial implementation local

Re: [python-win32] executing dos commands

2009-03-06 Thread Graeme Glass
On Fri, Mar 6, 2009 at 1:29 PM, wrote: > > Hi folkz, > just a simple question for a python guru:-) > > How can I execute dos commands via python? > The command exec("chdir \Dir1\dir2\..") doesn't do it. > > Many thanks in advance! > > Solomon > > ___ > p

[python-win32] executing dos commands

2009-03-06 Thread Solomon.Zewdie.Altek
Hi folkz, just a simple question for a python guru:-) How can I execute dos commands via python? The command exec("chdir \Dir1\dir2\..") doesn't do it. Many thanks in advance! Solomon ___ python-win32 mailing list python-win32@python.org http://ma

[python-win32] Focus lost when switching windows

2009-03-06 Thread Greg Ewing
The following program creates a FrameWnd with an Edit control in it. If I select some text in the control, then switch to another window and back again, the Edit control has lost the keyboard focus. Normal Windows applications don't behave that way. What do I have to do to get my controls to sta

[python-win32] Python activex Scripting engine error

2009-03-06 Thread julio . dilisa
Hello, If I run the code (with wsscript small_pys.pys) given here under, I got this error == " Windows Script Host" Error ___ Script:... Line 9 char 0 Error: Traceback... File "

Re: [python-win32] Confused about PreTranslateMessage

2009-03-06 Thread niki
Greg Ewing wrote: I'm having trouble understanding how PreTranslateMessage is supposed to work. According to M$: Return value: Nonzero if the message was translated and should not be dispatched; 0 if the message was not translated and should be dispatched. and according to the pywin32 do