Re: [python-win32] error in list length

2008-07-10 Thread Tim Golden
kNish wrote: The following lines of code gives an error starting with line where len() is used [... snip code for the moment ...] META-ADVICE: kNish, when you're posting a question, please, please, post post the traceback you got. Cut-and-paste it from the console window into the email.

Re: [python-win32] error in list length

2008-07-10 Thread Larry Bates
kNish wrote: Hi, The following lines of code gives an error starting with line where len() is used local_BkFiles = glob.glob(localDirectoryName+'\\*' + data + '*bk*') local_BkFiles.sort(key=str.upper) last_pv_File_Name = local_PvFiles[len(local_PvFiles)-1] spl

[python-win32] How to get IWebBrowser2 from a HWND

2008-07-10 Thread salvatore ventura
Hi, I am trying to get the IWebBrowser2 object from the HWND of an open IE window. I have seen this topic covered in many languages, and I am following the same steps, but in python, yet I am hitting a wall that I can't figure how to break... So, yes, I have been 'googling', browsing and test

Re: [python-win32] How to get IWebBrowser2 from a HWND

2008-07-10 Thread Mark Hammond
> # ... and the IWebBrowser2: > ie = pIServiceProvider.QueryService(IWebBrowserApp._iid_, > IWebBrowser2._iid_) > > # which - of course - fails. > > > Error returned: > Traceback (most recent call last): > File "", line 1, in > COMError: (-2147467262, 'No such interface supported', (None, Non