[python-win32] How to get URL of open browser window?

2007-11-16 Thread Robert
What is the best way to get the URL of current open webbrowser Window (topmost) into a utility script? At least for IE & Mozilla's Robert ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to Get a pixel color?

2007-11-16 Thread Tim Roberts
Cyril.Liu wrote: > *Hello All, > I try to get a pixel color according to x,y pixel coordinates using > this code, but it doesn't work.* > > >>> import win32ui > >>> w = win32ui.FindWindow(None, "11") > >>> dc = w.GetWindowDC() > >>> color = dc.GetPixel(100,100) > Traceback (most recent call last):

Re: [python-win32] cgi fieldstorage

2007-11-16 Thread Tim Roberts
kNish wrote: > Hi, > >to get a text field value from a php page, getvalue function is used. > >. >. >form = cgi.FieldStorage() >artist = form.getvalue('artist') > Well, that's one way. You can also use form['artist'].value, which is the style I've seen m

[python-win32] How to Get a pixel color?

2007-11-16 Thread Cyril.Liu
*Hello All, I try to get a pixel color according to x,y pixel coordinates using this code, but it doesn't work.* >>> import win32ui >>> w = win32ui.FindWindow(None, "11") >>> dc = w.GetWindowDC() >>> color = dc.GetPixel(100,100) Traceback (most recent call last): File "", line 1, in win32ui: Ge

Re: [python-win32] Delete IIS website via wmi

2007-11-16 Thread Sten Spans
On Thu, 15 Nov 2007, Sten Spans wrote: > > I'm rewriting some iis management scripts in python, > using the python wmi bindings from > http://tgolden.sc.sabren.com/python/wmi.html > > Creating / Ennumerating sites works just fine. > But I can't seem to figure out how to delete sites. > > import w

[python-win32] cgi fieldstorage

2007-11-16 Thread kNish
Hi, to get a text field value from a php page, getvalue function is used. . . form = cgi.FieldStorage() artist = form.getvalue('artist') To get a value from a drop down box, what function should be used. bRgds, kNish