You are not logged in.

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