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

Wednesday, July 12th 2006, 11:43am

[kopete]alias script?

Hi all. I want to make a script for kopete with figlet.
At the moment i've done a script called figlet.sh wich contains:
figlet $*
And i've added an alias in kopete: figlet /exec figlet.sh
So when i write "/figlet hello" in a chat window the system says:
_ _ _
| |__ ___| | | ___
| '_ \ / _ \ | |/ _ \
| | | | __/ | | (_) |
|_| |_|\___|_|_|\___/

But its a system message. How can I code it to send the "hello" string to the people im talking to?.
Is that possible?
Thx!

GotenXiao

Beginner

Posts: 5

Location: England

  • Send private message

2

Monday, July 17th 2006, 6:59pm

You could try using DCOP as follows:

dcop kopete KopeteIface messageContact "$contact" "`figlet.sh`"

However, I don't know how you'd go about figuring where the last message was sent to/is being sent to. Fire up kdcop and poke around the Kopete DCOP interface - I've been doing this for the past few days :P

alsuren

Beginner

Posts: 6

Location: London

Occupation: Student

  • Send private message

3

Saturday, October 14th 2006, 5:17pm

I just asked this myself. Turns out '/help exec' says '/exec -o foo.sh' will give you the output into the channel.

hope that helps.