Bug 131290

Summary: Scripting documentation is inadequate
Product: [Applications] konversation Reporter: David <danzel>
Component: documentationAssignee: Konversation Developers <konversation-devel>
Status: RESOLVED FIXED    
Severity: wishlist CC: hein, wordsizzle
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 187307    

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.