Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8714 > unrolled thread

Re: web browsing short cut

Started byChris Rebert <crebert@ucsd.edu>
First post2011-07-02 20:08 -0700
Last post2011-07-02 20:08 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: web browsing short cut Chris Rebert <crebert@ucsd.edu> - 2011-07-02 20:08 -0700

#8714 — Re: web browsing short cut

FromChris Rebert <crebert@ucsd.edu>
Date2011-07-02 20:08 -0700
SubjectRe: web browsing short cut
Message-ID<mailman.580.1309662568.1164.python-list@python.org>
> On Sat, Jul 2, 2011 at 7:10 PM, Chris Rebert <clp2@rebertia.com> wrote:
>> On Sat, Jul 2, 2011 at 6:21 PM, Dustin Cheung <dustin299@gmail.com> wrote:
>> > Hey guys,
>> > I am new to python. I want to make a shortcut that opens my websites
>> > and re-sizes them to
>> > point to to the right direction? Here is what I came up with so far..
>>
>> The window positioning+resizing bit will likely require using
>> platform-specific APIs. Since you appear to be on Windows, the
>> relevant library would be pywin32 (http://pypi.python.org/pypi/pywin32
>> ). You would use it to invoke some COM API that does window
>> positioning+resizing. I am unable to give more details as I'm on a
>> Mac.
>>
>> Sidenote: Have you tried Firefox's "Bookmark All Tabs" feature?

On Sat, Jul 2, 2011 at 7:34 PM, Dustin Cheung <dustin299@gmail.com> wrote:
> Hey,
> Thanks for showing me to pywin32. I'll look into it and see what i can come
> up with. Also, I haven't tried the Firefox feature. I thought the bookmark
> all feature only saved one browser with multiple tabs.

Correct. I don't know your precise use-case and thought that this
could possibly be sufficient but significantly less complicated.

> I'm sorry but this
> might be a stupid question but was do you mean by COM API?

COM as in:
http://en.wikipedia.org/wiki/Component_Object_Model

API as in a programming interface:
http://en.wikipedia.org/wiki/Application_programming_interface

It's my understanding that most Windows GUI automation stuff tends to
involve using COM. Again, I don't know specifics, I've just followed
other Windows-specific posts on the mailinglist.

Cheers,
Chris

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web