You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, August 4th 2008, 2:01pm

How to focus some window programmatically (e.g. from shell script)?

I need some way to focus an existing Kate window with known process ID. Is there some command to do it from shell? I tried some DCOP commands, but none of them did it.
I'm using KDE 3.5.9 (at KUbuntu 8.04).

OhReally

Beginner

Posts: 52

Location: Den Haag, NL

  • Send private message

2

Monday, August 4th 2008, 8:34pm

Mmmmhhh... I was going to shout 'DCOP!'...

Still, DCOP should do the trick. I don't use Kate, so I don't know it's DCOP interface, but there should be a command in there to focus a window, I guess... Just try some more...

And use kdcop, so at least you won't have to type all the commands.

3

Tuesday, August 5th 2008, 10:34am

Thanks. I've found it.
Using "hide" and then "show" does what I want.

Similar threads