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.
[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!
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
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.