Form1 Form1 0 0 462 340 Form1 unnamed 11 6 Usage: kmdr-executor cmdline.kmdr [BUTTON='title'] arg1 ... ListBox1 Spacer1 Horizontal Expanding 149 0 ExecButton1 Read command line # Put command-line arguments into list dcop @dcopid KommanderIf clearList ListBox1 VALUE=`dcop @dcopid KommanderIf global ARGS` for i in $VALUE; do dcop @dcopid KommanderIf addListItem ListBox1 "$i" 999 done ARGS=`dcop @dcopid KommanderIf global ARGCOUNT` dcop @dcopid KommanderIf addListItem ListBox1 "Arguments count: $ARGS" 999 # Read button text BUTTONTEXT=`dcop @dcopid KommanderIf global BUTTON` if [ "$BUTTONTEXT" ]; then dcop @dcopid KommanderIf changeWidgetText ExecButton1 "$BUTTONTEXT" fi Spacer3 Horizontal Expanding 148 0