You are not logged in.

1

Friday, December 21st 2007, 4:33pm

changing focus to a differnt window via a script

hello,

is there any way at all to change focus from one window to another via a script in kde?

i had hoped to use kstart but it does not seem to work how i had hoped.

i had hoped the following kstart command would always bring the kmail window to the top, and focus on it, but it does not. it sometimes manages to make kmail the second from the top, but never moves the focus. alt-esc works fine though.

kstart --window kmail --activate --skiptaskbar kmail

does anyone know of a way of doing this, or something like it? it seems fairly useful, it's like using alt-esc in a controlled way from a CLI.


Andrew

alecs1

Trainee

Posts: 53

Location: Romania

  • Send private message

2

Saturday, December 22nd 2007, 1:11am

Try the program kdcop. There search for what kwin exports, and also for what your programs export. It should be doable.
Enjoy