talking to konqueror with an external program

Pupeno pupeno at kde.org
Sat Oct 11 15:51:16 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday October 11 2003 03:19, Christian Mueller wrote:
> Am Samstag, 11. Oktober 2003 02:25 schrieb John Morris:
> > Is there a method for an external program (command line even) of opening
> > a new URL in an already open konqueror window?
> >
> > I am able to open a new konqueror window with a specified URL using
> > dcop, but I would like to change URLs in an already open window if
> > possible.
> >
> > Thanks,
> >
> > John
>
> Yes that's possible if you have the Id of the konqueror window.
> If you don't care which one of the konqis opens the new page
> you can do the following (in a shell script):
>
> -------------------------
> url='http://www.kde.org'
>
> konqi=`dcop 'konqueror-*' | head -1`
>
> dcop $konqi 'qt/konqueror-mainwindow#1/qt_top_dock/locationToolBar/history
> combo/combo lineedit' \ setProperty text "$url"
>
> dcop $konqi
> 'qt/konqueror-mainwindow#1/qt_top_dock/locationToolBar/toolbutton_go_url'
> animateClick -------------------------
>
> It opens the URL in the first konqi it finds.

Just an idea that may help... wouldn't it be posible to iterate thru all the 
konquerors and find which one has focus if one has, or else, give focus to 
the konqueror someone uses for showing a page with dcop ?
- -- 
Pupeno: pupeno at kde.org
http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/iBjmLr8z5XzmSDQRAvh2AKCtVf9NpaEOzo7Cp6XNUHfrR378EACdF4re
3ye7D9Q91Pd28Wr6kRkMs+c=
=IkP+
-----END PGP SIGNATURE-----

___________________________________________________
This message is from the kde mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list