blob: e2dee415b5b9c2cc6d50868d4c60e85e7beed231 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/usr/bin/env kjscmd
var d = new DCOPClient();
if ( d.attach())
{
println("Attached...");
if( d.isAttached() )
{
var app = d.dcopStart("kwrite");
if( app != "" )
{
println( "Got ref");
var worked = d.send(app, "EditInterface#1","setText(QString)", "This is a test");
println("Returned a : " + worked);
}
else
println( "Error: no appname returned." );
}
else
println( "Error!" )
}
else
println("Failed...");
println( "Done" );
|