Re: [python-win32] How do I get the URL of the active tab in Internet Explorer

2010-11-30 Thread He Jibo
Thanks. Following your link, I get the following code in C#, The following function GetActiveTabIndex seems to what I need. But I do not know how to do it in python. Any ideas? Thanks. http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/03a8c835-e9e4-405b-8345-6c3d36bc8941

Re: [python-win32] How do I get the URL of the active tab in Internet Explorer

2010-11-30 Thread sharpblade
This might be of some help: http://social.msdn.microsoft.com/forums/en-US/ieextensiondevelopment/thread/e3a501d6-2163-4cc0-be2d-5011e7fa9613/ Check out Dan Morris's post, or T E dixons

Re: [python-win32] odbc exceptions

2010-11-30 Thread Vernon Cole
On Tue, Nov 30, 2010 at 10:25 AM, Preston Landers wrote: > That's strange. I don't get that under Python 2.6.5 and PyWin32 v214. I > get the kind of error one would expect. > > >>> try: > ... odbc.odbc("asdf") > ... except: > ... raise > ... > Traceback (most recent call last): > File "", lin

Re: [python-win32] How do I get the URL of the active tab in Internet Explorer

2010-11-30 Thread He Jibo
Thanks so much for your valuable information. I will only need the url of a browser when it is in the front. I am going to try SendKey, it seems to be a good way to go. Have a nice day! --- He Jibo Department of Psychology, Beckman Institute for Advanced Science and Technol

Re: [python-win32] odbc exceptions

2010-11-30 Thread Preston Landers
That's strange. I don't get that under Python 2.6.5 and PyWin32 v214. I get the kind of error one would expect. >>> try: ... odbc.odbc("asdf") ... except: ... raise ... Traceback (most recent call last): File "", line 2, in dbi.opError: [Microsoft][ODBC Driver Manager] Data source name not f

Re: [python-win32] odbc exceptions

2010-11-30 Thread Vernon Cole
Robin: Odbc is still maintained. It is not deprecated, exactly, but is obsolescent since it uses db api version 1 calls. It is maintained that way so that it doesn't break old code. The bug report is appreciated, I'll make sure it gets into the sourceforge bug list if you don't beat me to it. The

[python-win32] odbc exceptions

2010-11-30 Thread Robin Becker
I don't know if the odbc module is deprecated, but I'm seeing this strangeness C:\code\rlextra\examples\graphics>cat toad.py try: import odbc print odbc.__file__ conn = odbc.odbc('not_a_db_path') except: raise C:\code\rlextra\examples\graphics>toad.py C:\Python26\lib\site-package

Re: [python-win32] How do I get the URL of the active tab in Internet Explorer

2010-11-30 Thread Mike Driscoll
On 1:59 PM, He Jibo wrote: Hi, I am writing a small program, which needs to get the URL of the active tab in either of firefox, internet exploerer or chrome. My need is similar as the one posted at, http://stackoverflow.com/questions/3631216/how-do-i-get-the-url-of-the-visible-tab-in-firefox-ie-c