Re: [python-win32] Get path of the current open document of the current active application

2011-09-22 Thread Marte Soliza
very informative answer! On Thu, Sep 22, 2011 at 4:35 AM, Tim Roberts wrote: > Marte Soliza wrote: > > > > I'm looking for a way to, first, determine the current active > > application (i.e. the one with the top-most window). I think I got > > this now, but I'm not s

[python-win32] Get path of the current open document of the current active application

2011-09-21 Thread Marte Soliza
Hello, I'm looking for a way to, first, determine the current active application (i.e. the one with the top-most window). I think I got this now, but I'm not sure how much of this will help in my final goal which is to get the path of the current open document (for those that have them). I believ

Re: [python-win32] Immediately disconnecting a socket in Windows

2009-08-14 Thread Marte Soliza
s. On Fri, Aug 14, 2009 at 3:59 PM, Gerdus van Zyl wrote: > Do you set a socket timeout value via socket.setdefaulttimeout? > see: > http://www.python.org/doc/2.6/library/socket.html#socket.setdefaulttimeout > > ~Gerdus > > On Thu, Aug 13, 2009 at 7:17 PM, Marte Soliza wrote: &

[python-win32] Immediately disconnecting a socket in Windows

2009-08-13 Thread Marte Soliza
I'm using httplib as an HTTP client for a custom HTTP server. One thing I need is to be able to immediately force disconnect a request that takes too long on the server side (and hasn't returned any data) or if the connection becomes problematic to the point that no data returns for a long period o