-
Notifications
You must be signed in to change notification settings - Fork 0
/
read_mw.zp
90 lines (65 loc) · 1.6 KB
/
read_mw.zp
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/******************************************************************************\
FILE: read_mw.zp
AUTHOR: Theo Veenker <[email protected]>
ADAPTED BY: -
DESCRIPTION:
Implementation of task: Self-Paced Reading with Moving Window
For more information on the read_mw task see readme.txt in the
test folder.
Global structure of experiment:
- welcome
- phase 1 (see subfolder test)
- thankyou
HISTORY:
2013-07-03 TV Created.
\******************************************************************************/
requires 2.6;
import std_windows1;
import std_texts_en;
import std_entry_page1;
import std_exit_page1;
import std_pause_page;
import std_blank_page;
import test::task;
import io_beexybox;
Experiment experiment
{
on_event:entry()
{
control.enable_all_buttons(CONTINUE);
show_test_windows();
}
on_event:message()
{
// On Ctrl+F4 jump unconditionally to the thank-you part.
if (message_sender == control && message_arg == SYS_STOP)
{
control.mark_experiment_aborted();
thankyou.enter();
}
}
Part welcome
{
on_event:entry()
{
entry_page.set_text(WELCOME_TEXT);
entry_page.action(this, 0s);
}
}
Part phase1
{
on_event:entry()
{
test::action(this);
}
}
Part thankyou
{
on_event:entry()
{
control.end_experiment(); // Check-in session.
exit_page.set_text(THANK_YOU_TEXT);
exit_page.action(this, 10s);
}
}
}