diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
| commit | 8362bf63dea22bbf6736609b0f49c152f975eb63 (patch) | |
| tree | 0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kpresenter/scripts/automate_presentation.sh | |
| download | koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip | |
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpresenter/scripts/automate_presentation.sh')
| -rwxr-xr-x | kpresenter/scripts/automate_presentation.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/kpresenter/scripts/automate_presentation.sh b/kpresenter/scripts/automate_presentation.sh new file mode 100755 index 000000000..1f91f6412 --- /dev/null +++ b/kpresenter/scripts/automate_presentation.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# +# This script uses KPresenter's DCOP interface to automate a presentation +# Every 10 seconds, it goes to the next sequence or page (just as if +# 'space' was pressed) +# +# Idea from Christopher Molnar <molnarc@mandrakesoft.com> +# Implementation by David Faure <faure@kde.org> using Matthias Ettrich dcop shell +# +# Open the presentation in kpresenter, then launch this script +# +appname=`dcop | grep -m 1 ^kpresenter` +#echo $appname + +viewname=`dcop $appname | grep ^View` +#echo $viewname + +dcop $appname $viewname screenStart + +sleep 5; + +while true; do + sleep 10; + dcop $appname $viewname screenNext +done |
