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

[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 Script Block line 9, in module import

[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

[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

Re: [python-win32] executing dos commands

2009-03-06 Thread Graeme Glass
On Fri, Mar 6, 2009 at 1:29 PM, solomon.zewdie.al...@zf.com 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

[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

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] 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

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

[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