1 |
If you use KDE, you can right click the Title Bar and go to Application |
2 |
Specific Settings (or something like that. I'm on a Mac now :-) ) and |
3 |
configure the windows to always open at the center, for instance. That helps |
4 |
on the "finding the right coordinates to click might not be easy" issue. =) |
5 |
|
6 |
On 11/28/07, YoYo Siska <yoyo@××××××.sk> wrote: |
7 |
> |
8 |
> felix@×××××××.com wrote: |
9 |
> > On Tue, Nov 27, 2007 at 10:07:10PM +0000, Neil Bothwick wrote: |
10 |
> >> On Tue, 27 Nov 2007 13:53:10 -0800, felix@×××××××.com wrote: |
11 |
> >> |
12 |
> >>> These web pages use Javascript; some render so-so without javascript, |
13 |
> >>> some don't render at all well. What I would like is some firefox (or |
14 |
> >>> Konqueror or ...) command line option to render the page and save it |
15 |
> >>> as any other format -- jpg, pdf, ps, doesn't matter. |
16 |
> >> You could probably do this with a shell script that loads Konqueror |
17 |
> with |
18 |
> >> the given URL and send it DCOP command(s) to print. |
19 |
> > |
20 |
> > I have been fooling around with this and following some of the google |
21 |
> > treasure, and it is a decent substitute for the nice simple command |
22 |
> > line options that I want. But it has a few problems: |
23 |
> > |
24 |
> > 1. The 'print' DCOP command pops up the print menu and requires at |
25 |
> > least one click. I can set the print type (to PDF file) and the |
26 |
> > default file name ahead of time, but I still have to click on |
27 |
> > "Print". |
28 |
> > |
29 |
> > 2. When I pass it the URL to display, it returns immediately, and I |
30 |
> > have to insert a sleep to wait before sending the print command. |
31 |
> > Is there any way to find out when the page is complete? |
32 |
> > |
33 |
> > 3. If I put in a one minute pause to allow even the slowest web sites |
34 |
> > to fully load, that limits how many of these URLs I can process. |
35 |
> > Is there any way to run multiple konqueror sessions at once? |
36 |
> > |
37 |
> > #1 is a real show stopper. The others are merely annoying. |
38 |
> |
39 |
> emerge -av x11-misc/xautomation |
40 |
> xte --help |
41 |
> |
42 |
> it allows you to move mouse, click, send keypresses... |
43 |
> finding the right coordinates to click might not be easy (although the |
44 |
> package contains som programs that allow you to find specific pictures |
45 |
> on screen...) but sending the correct tab and enter sequence should be |
46 |
> enough (I expect just pressing enter in the dialog should be enough) |
47 |
> |
48 |
> you should be able to use this also with firefox |
49 |
> send alt-f, p, few tabs to get to the "print to file", space, enter, |
50 |
> name of the file, enter.... |
51 |
> ;)) |
52 |
> |
53 |
> yoyo |
54 |
> -- |
55 |
> gentoo-user@g.o mailing list |
56 |
> |
57 |
> |
58 |
|
59 |
|
60 |
-- |
61 |
*Ricardo Saffi Marques* |
62 |
Laboratório de Administração e Segurança de Sistemas (LAS/IC) |
63 |
Universidade Estadual de Campinas (UNICAMP) |
64 |
*Cell:* +55 (19) 8128-0435 |
65 |
*Skype:* ricardo_saffi_marques |
66 |
*Website:* *http://www.rsaffi.com* |