-
Notifications
You must be signed in to change notification settings - Fork 2
/
install-msoffice40
executable file
·53 lines (45 loc) · 1.02 KB
/
install-msoffice40
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh
. ./include/rc.sh
if [ "$#" -ne 1 ]; then
echo "Usage: $0 DIRECTORY" >&2
echo "DIRECTORY should contain an existing Windows 3.1 installation." >&2
echo "Example: $0 /tmp/win31" >&2
exit 1
fi
./dostricks $1/c/inst/office40 msoffice40
export dosemu__hdimage="$1/*"
export dosemu__X_title="automated by $$"
dosemu -E '\windows\win/3 \inst\office40\disk1\setup' &
set_window_id
sleep 3
wait_for_text_ocr 'they are in'
press space
wait_for_text_ocr 'already'
press space
wait_for_text_ocr 'you need to call'
press space
wait_for_text_ocr 'the OK button'
press space
wait_for_text_ocr 'the OK button'
press space
wait_for_text_ocr 'the OK button'
press space
wait_for_text_ocr 'the OK button'
press space
wait_for_text_ocr 'the type'
press space
# Lotus 123 help
wait_for_text_ocr 'about'
press alt+n
# WordPerfect help
wait_for_text_ocr 'tool'
press alt+n
wait_for_text_ocr 'to the group'
press alt+c
wait_for_text_ocr 'that are required to run'
press space
wait_for_text_ocr 'ully'
press space
echo_text
sleep 2
echo_text