[python-win32] Clear the interactive screen

2011-03-25 Thread Blockheads Oi Oi
Hi all, my take on a way to achieve this, and apologies if someone has posted a better method that I don't know about:- from SendKeys import SendKeys def cls(): SendKeys("^a{BS}~~", 0) # adjust to your needs I've tried to setup my own config file using ALT-R to call this and have failed

[python-win32] WMI and Terminal Services

2011-03-25 Thread Mike Driscoll
Hi, I am looking for a way to query the client name parameter from Terminal Services. I have been testing several scripts I've found that use either win32com.client or win32ts, but they are giving me weird errors on Windows 7 64-bit. I get this traceback: Traceback (most recent call last)

Re: [python-win32] WMI and Terminal Services

2011-03-25 Thread Tim Golden
On 25/03/2011 6:19 PM, Mike Driscoll wrote: Hi, I am looking for a way to query the client name parameter from Terminal Services. I have been testing several scripts I've found that use either win32com.client or win32ts, but they are giving me weird errors on Windows 7 64-bit. I get this traceb

[python-win32] GetRefTypeOfImplType problem

2011-03-25 Thread Marc-Andre Belzile
Hi, I'm trying to get the base interface typeinfo with pythoncom.GetRefTypeOfImplType but it's always returning the typeinfo of the IDispatch interface. Does the code below seem wrong ? Thank you for your help. -mab def log_base_interface( tlb ): n = tlb.GetTypeInfoCount() for i in r