Bug 131290 - Scripting documentation is inadequate
Summary: Scripting documentation is inadequate
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: documentation (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks: 187307
  Show dependency treegraph
 
Reported: 2006-07-24 13:31 UTC by David
Modified: 2009-09-14 07:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2006-07-24 13:31:56 UTC
Version:           0.19 #3100 (using KDE KDE 3.5.2)
Installed from:    Ubuntu Packages
OS:                Linux

The scripting page in the Konversation Handbook provides inadequate information to create a script that does anything more than message.

I wanted to have konversation automatically log me into X on undernet when connecting. The commands box in edit menu was a prime candidate for performing the commands but it can only store one line of text and I need 2.
After a bit of looking in the docs I decided that I would need to write a script, but I could not figure out how to perform a mode change from a script. Luckily cartman from #konversation told me where the dcop list was and I was able to figure out how to do it:
dcop $PORT Konversation say $SERVER "x@channels.undernet.org" "login NICK PASSWORD";
dcop $PORT Konversation raw $SERVER "mode NICK +x";
(Possibly not very secure, but I'm only using it on a single user machine)

Could a list of the dcop calls and some short examples of using the different ones be added into the handbook? It would make the scripting page in the handbook alot more useful :)
Comment 1 Eike Hein 2006-07-24 13:41:48 UTC
The "Commands" box supports multiple commands by seperating them with ";" characters.
Comment 2 Eike Hein 2009-05-13 02:07:28 UTC
The scripting documentation also needs to be updated to reflect the KDE 4 version's D-Bus interface.
Comment 3 Travis McHenry 2009-09-14 07:54:42 UTC
Fixed in r1023175. Closing.