Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- API: 2
- OpenSesame: 3.1.0
- Platform: posix
- ---
- set width 1024
- set uniform_coordinates yes
- set title MatchingPairsControl
- set subject_parity even
- set subject_nr 0
- set start experiment
- set sampler_backend legacy
- set mouse_backend xpyriment
- set keyboard_backend legacy
- set height 768
- set foreground white
- set font_size 18
- set font_italic no
- set font_family mono
- set font_bold no
- set experiment_path "/Users/allisonoleary/Desktop/Papers for Shelby"
- set description "Default description"
- set coordinates uniform
- set compensation 0
- set color_backend legacy
- set clock_backend legacy
- set canvas_backend xpyriment
- set bidi no
- set background black
- define loop InitialStudy
- set source_file ""
- set source table
- set repeat 1
- set order random
- set description "Repeatedly runs another item"
- set cycles 24
- set continuous no
- set break_if_on_first yes
- set break_if never
- setcycle 0 word1 Advice
- setcycle 0 word2 Boredom
- setcycle 0 difficulty Difficult
- setcycle 1 word1 Blandness
- setcycle 1 word2 Pact
- setcycle 1 difficulty Difficult
- setcycle 2 word1 Comparison
- setcycle 2 word2 Increment
- setcycle 2 difficulty Difficult
- setcycle 3 word1 Confidence
- setcycle 3 word2 Instance
- setcycle 3 difficulty Difficult
- setcycle 4 word1 Cost
- setcycle 4 word2 Hatred
- setcycle 4 difficulty Difficult
- setcycle 5 word1 Criterion
- setcycle 5 word2 Attitude
- setcycle 5 difficulty Difficult
- setcycle 6 word1 Diffusion
- setcycle 6 word2 Hope
- setcycle 6 difficulty Difficult
- setcycle 7 word1 Episode
- setcycle 7 word2 Majority
- setcycle 7 difficulty Difficult
- setcycle 8 word1 Elaboration
- setcycle 8 word2 Belief
- setcycle 8 difficulty Difficult
- setcycle 9 word1 Excuse
- setcycle 9 word2 Mercy
- setcycle 9 difficulty Difficult
- setcycle 10 word1 Immunity
- setcycle 10 word2 Miracle
- setcycle 10 difficulty Difficult
- setcycle 11 word1 Impulse
- setcycle 11 word2 Jeopardy
- setcycle 11 difficulty Difficult
- setcycle 12 word1 Angle
- setcycle 12 word2 Curve
- setcycle 12 difficulty Easy
- setcycle 13 word1 Cinnamon
- setcycle 13 word2 Roll
- setcycle 13 difficulty Easy
- setcycle 14 word1 Cord
- setcycle 14 word2 Plug
- setcycle 14 difficulty Easy
- setcycle 15 word1 Doll
- setcycle 15 word2 Child
- setcycle 15 difficulty Easy
- setcycle 16 word1 Golf
- setcycle 16 word2 Sport
- setcycle 16 difficulty Easy
- setcycle 17 word1 Graduation
- setcycle 17 word2 College
- setcycle 17 difficulty Easy
- setcycle 18 word1 Grow
- setcycle 18 word2 Shrink
- setcycle 18 difficulty Easy
- setcycle 19 word1 Stand
- setcycle 19 word2 Fall
- setcycle 19 difficulty Easy
- setcycle 20 word1 Pond
- setcycle 20 word2 Frog
- setcycle 20 difficulty Easy
- setcycle 21 word1 Jelly
- setcycle 21 word2 Bread
- setcycle 21 difficulty Easy
- setcycle 22 word1 Mouse
- setcycle 22 word2 Hole
- setcycle 22 difficulty Easy
- setcycle 23 word1 Stadium
- setcycle 23 word2 Concert
- setcycle 23 difficulty Easy
- run InitialStudySequence
- define sequence InitialStudySequence
- set flush_keyboard yes
- set description "Runs a number of items in sequence"
- run WordPairs always
- define sketchpad Instructions
- set duration keypress
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="During this experiment, you will learn a list of 24 word pairs <br>during a series of alternating study and test phases. <br /><br><br />In the first phase, you will see each word pair in sequence for 5 seconds each. <br><br><br>Try to remember each pair to the best of your ability, <br>as you will be tested on them later.<br /><br><br><br />It is important to pay attention through the entire study phase, <br>so you do not miss any of the word pairs.<br><br />Press the spacebar to proceed to the study phase. <br />" x=0 y=-32 z_index=0
- define form_text_display InstructionsX
- set timeout infinite
- set spacing 10
- set rows "1;4;1"
- set only_render no
- set ok_text OK
- set margins "50;50;50;50"
- set form_title "<span size=24>Instructions</span>"
- __form_text__
- During this experiment, you will learn a list of 24 word pairs during a series of alternating study and test phases.
- In the first phase, you will see each word pair for 5 seconds, at which point it will automatically proceed to the next word pair. Try to remember each pair to the best of your ability, as you will be tested on them later.
- It is important to pay attention through the entire study phase, so you do not miss any of the word pairs.
- Please click the OK button to proceed to the initial study phase.
- __end__
- set description "A simple text display form"
- set cols "1;1;1"
- set _theme gray
- widget 0 0 3 1 label text="[form_title]"
- widget 0 1 3 1 label center=no text="[form_text]"
- widget 1 2 1 1 button text="[ok_text]"
- define sketchpad IntroRestudy
- set duration keypress
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="In the next phase of the experiment, you will have a chance to study <br>the same word pairs a second time before being tested. <br>To re-study, on each trial, you may choose to:<br><br />1) see the pair a second time, or to <br><br />2) test your knowledge of the pair. <br><br><br />Press the spacebar to proceed." x=0 y=0 z_index=0
- define form_text_display IntroRestudyX
- set timeout infinite
- set spacing 10
- set rows "1;4;1"
- set only_render no
- set ok_text Ok
- set margins "50;50;50;50"
- set form_title "<span size=24>Title</span>"
- __form_text__
- In the next phase of the experiment, you will have a chance to study the same word pairs a second time before being tested. To re-study, on each trial, you may choose to:
- 1) see the pair a second time, or to
- 2) test your knowledge of the pair.
- __end__
- set description "A simple text display form"
- set cols "1;1;1"
- set _theme gray
- widget 0 0 3 1 label text="[form_title]"
- widget 0 1 3 1 label center=no text="[form_text]"
- widget 1 2 1 1 button text="[ok_text]"
- define form_multiple_choice JOLQ
- set timeout infinite
- set spacing 10
- set question "How well do you think you will be able to remember these word pairs? "
- __options__
- Very Likely
- Likely
- Unsure
- Unlikely
- Very Likely
- __end__
- set margins "50;50;50;50"
- set form_var response
- set form_title "Form title"
- set description "A simple multiple choice item"
- set button_text Ok
- set allow_multiple no
- set advance_immediately yes
- set _theme gray
- define loop ReStudy
- set source_file ""
- set source table
- set repeat 1
- set order random
- set description "Repeatedly runs another item"
- set cycles 24
- set continuous no
- set break_if_on_first yes
- set break_if never
- setcycle 0 word1 Advice
- setcycle 0 word2 Boredom
- setcycle 0 difficulty Difficult
- setcycle 1 word1 Blandness
- setcycle 1 word2 Pact
- setcycle 1 difficulty Difficult
- setcycle 2 word1 Comparison
- setcycle 2 word2 Increment
- setcycle 2 difficulty Difficult
- setcycle 3 word1 Confidence
- setcycle 3 word2 Instance
- setcycle 3 difficulty Difficult
- setcycle 4 word1 Cost
- setcycle 4 word2 Hatred
- setcycle 4 difficulty Difficult
- setcycle 5 word1 Criterion
- setcycle 5 word2 Attitude
- setcycle 5 difficulty Difficult
- setcycle 6 word1 Diffusion
- setcycle 6 word2 Hope
- setcycle 6 difficulty Difficult
- setcycle 7 word1 Episode
- setcycle 7 word2 Majority
- setcycle 7 difficulty Difficult
- setcycle 8 word1 Elaboration
- setcycle 8 word2 Belief
- setcycle 8 difficulty Difficult
- setcycle 9 word1 Excuse
- setcycle 9 word2 Mercy
- setcycle 9 difficulty Difficult
- setcycle 10 word1 Immunity
- setcycle 10 word2 Miracle
- setcycle 10 difficulty Difficult
- setcycle 11 word1 Impulse
- setcycle 11 word2 Jeopardy
- setcycle 11 difficulty Difficult
- setcycle 12 word1 Angle
- setcycle 12 word2 Curve
- setcycle 12 difficulty Easy
- setcycle 13 word1 Cinnamon
- setcycle 13 word2 Roll
- setcycle 13 difficulty Easy
- setcycle 14 word1 Cord
- setcycle 14 word2 Plug
- setcycle 14 difficulty Easy
- setcycle 15 word1 Doll
- setcycle 15 word2 Child
- setcycle 15 difficulty Easy
- setcycle 16 word1 Golf
- setcycle 16 word2 Sport
- setcycle 16 difficulty Easy
- setcycle 17 word1 Graduation
- setcycle 17 word2 College
- setcycle 17 difficulty Easy
- setcycle 18 word1 Grow
- setcycle 18 word2 Shrink
- setcycle 18 difficulty Easy
- setcycle 19 word1 Stand
- setcycle 19 word2 Fall
- setcycle 19 difficulty Easy
- setcycle 20 word1 Pond
- setcycle 20 word2 Frog
- setcycle 20 difficulty Easy
- setcycle 21 word1 Jelly
- setcycle 21 word2 Bread
- setcycle 21 difficulty Easy
- setcycle 22 word1 Mouse
- setcycle 22 word2 Hole
- setcycle 22 difficulty Easy
- setcycle 23 word1 Stadium
- setcycle 23 word2 Concert
- setcycle 23 difficulty Easy
- run ReStudySequence
- define sequence ReStudySequence
- set flush_keyboard yes
- set description "Runs a number of items in sequence"
- run ReStudy_1 always
- run new_sketchpad always
- define inline_script ReStudy_1
- set description "Executes Python code"
- set _run "my_canvas_choice = canvas(exp, auto_prepare = False)"
- set _prepare ""
- my_mouse = mouse(exp)
- my_mouse.set_visible(visible=True)
- my_mouse.set_timeout(timeout=None)
- my_mouse.set_pos()
- start_time = self.time()
- #seq_num = self.get('count_sequence')
- #print seq_num, ')))))))'
- #show rectangles
- my_canvas_choice.text('How would you like to re-study this pair?', x = 0, y = -224)
- my_canvas_choice.text("word", x = -32, y = -0)
- my_canvas_choice.text("______", x = 32, y = 0)
- my_canvas_choice.text("-", x = 0, y = 0)
- #position button text inside of rectangles
- my_canvas_choice.rect(color="grey", fill=1, h=130, penwidth=1, w=192, x=-256, y=96)
- my_canvas_choice.rect(color="grey", fill=1, h=130, penwidth=1, w=192, x=64, y=96)
- my_canvas_choice.show()
- #consider randomizing position on screen?
- while True:
- button, position, timestamp = my_mouse.get_click()
- if ((-256) < position[0] < (-64)) and ((96) < position[1] < (226)): #change to rectangle1 position
- choice_response = 'L'
- study_option = 'seepair'
- break
- elif ((64) < position[0] < (256)) and ((96) < position[1] < (226)): #change to rectangle 2 position
- choice_response = 'R'
- study_option = 'selftest'
- break
- my_canvas_choice.clear()
- my_canvas_choice.show()
- self.experiment.set('choice_side', choice_response)
- self.experiment.set('choice_study', study_option)
- self.experiment.set('choice_RT', timestamp - start_time)
- global choice_response
- __end__
- ___prepare__
- from openexp.canvas import canvas
- from openexp.mouse import mouse
- from openexp.keyboard import keyboard
- my_canvas = canvas(exp)
- __end__
- define form_text_display Restudy1
- set timeout infinite
- set spacing 10
- set rows "1;4;1"
- set only_render no
- set ok_text Ok
- set margins "50;50;50;50"
- set form_title "<span size=24>Title</span>"
- __form_text__
- If you choose to restudy the word pairs intact, you will see a pair that looks like this:
- ant - hill
- __end__
- set description "A simple text display form"
- set cols "1;1;1"
- set _theme gray
- widget 0 0 3 1 label text="[form_title]"
- widget 0 1 3 1 label center=no text="[form_text]"
- widget 1 2 1 1 button text="[ok_text]"
- define sketchpad Restudy1_1
- set duration keypress
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="On each trial during the re-study phase, you will see the first item:<br /><br><br><br><br><br><br /><br><br><br>You will then be asked to select one of two study methods <br>by clicking on the corresponding button: " x=0 y=-64 z_index=0
- draw rect color=grey fill=1 h=130 penwidth=1 show_if=always w=192 x=-256 y=96 z_index=0
- draw rect color=grey fill=1 h=130 penwidth=1 show_if=always w=192 x=64 y=96 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="See Pair" x=-160 y=160 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="Self-Test" x=160 y=160 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="Press the spacebar for an explanation of each study option." x=0 y=288 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="-" x=0 y=-64 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text=Ant x=-64 y=-64 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="______" x=64 y=-64 z_index=0
- define form_text_display Restudy2
- set timeout infinite
- set spacing 10
- set rows "1;4;1"
- set only_render no
- set ok_text Ok
- set margins "50;50;50;50"
- set form_title "<span size=24>Title</span>"
- __form_text__
- If you choose to self-test, you will see a screen that looks like this:
- ant - _________
- And you will be asked to complete the pair by typing in the second item. You will have 10 seconds to do so.
- __end__
- set description "A simple text display form"
- set cols "1;1;1"
- set _theme gray
- widget 0 0 3 1 label text="[form_title]"
- widget 0 1 3 1 label center=no text="[form_text]"
- widget 1 2 1 1 button text="[ok_text]"
- define sketchpad Restudy2_1
- set duration keypress
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="If you choose the <b>See Pair</b> option, <br>you will see the full pair for up to 10 seconds: <br /><br><br><br><br><br>" x=0 y=-64 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="Press the spacebar to proceed." x=0 y=128 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text=Ant x=-64 y=0 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="-" x=0 y=0 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text=Hill x=64 y=0 z_index=0
- define form_text_display Restudy3
- set timeout infinite
- set spacing 10
- set rows "1;4;1"
- set only_render no
- set ok_text Ok
- set margins "50;50;50;50"
- set form_title "<span size=24>Title</span>"
- __form_text__
- On each trial, you will see the first item:
- ant - _________
- And be asked to select your method of study by clicking one of the two buttons:
- -------- ---------
- See Pair Self-Test
- -------- ---------
- __end__
- set description "A simple text display form"
- set cols "1;1;1"
- set _theme gray
- widget 0 0 3 1 label text="[form_title]"
- widget 0 1 3 1 label center=no text="[form_text]"
- widget 1 2 1 1 button text="[ok_text]"
- define sketchpad Restudy3_1
- set duration keypress
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="If you choose the <b>Self-Test</b> option, <br>you will see a screen that looks like this:<br /><br><br><br><br><br><br /><br><br><br>You will then be prompted to complete the pair by typing in <br>the missing item. You will have 10 seconds to do so. <br /><br><br>Press the spacebar to proceed." x=0 y=32 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text=Ant x=-64 y=0 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="-" x=0 y=0 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="______" x=64 y=0 z_index=0
- define form_text_display Restudy4
- set timeout infinite
- set spacing 10
- set rows "1;4;1"
- set only_render no
- set ok_text Ok
- set margins "50;50;50;50"
- set form_title "<span size=24>Title</span>"
- __form_text__
- On each trial, after you choose your method of study, and study the pair a second time, you will be asked to rate your confience for that item.
- You will be asked to rate how condfident you are how confident you are that you will accurately remember that word pair during the test phase.
- You will make your judgment by choosing a confidence level between 0 and 100 percent, with 0 meaning you will definitely not remember the pair, and 100 meaning that you will definitely remember the pair. You may choose a value of 0, 100, or any whole number in between.
- Click the OK button to proceed to the restudy phase.
- __end__
- set description "A simple text display form"
- set cols "1;1;1"
- set _theme gray
- widget 0 0 3 1 label text="[form_title]"
- widget 0 1 3 1 label center=no text="[form_text]"
- widget 1 2 1 1 button text="[ok_text]"
- define sketchpad Restudy4_1
- set duration keypress
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="After you choose your method of study and study the pair a second time, <br>you will be asked to rate your confidence for that item, or how sure <br>you are that you will accurately remember that word pair during the test phase. <br><br><br />You will make your judgment by typing a confidence level between 0 and 100 percent. <br>A response of 0 means you think you will definitely not remember the pair. <br>A response of 100 means you think you will definitely remember the pair. <br>You may choose a value anywhere between 0 and 100." x=0 y=-224 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="____" x=0 y=0 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="Press the spacebar to proceed to the re-study phase. " x=0 y=96 z_index=0
- define loop RestudyPhases
- set source_file ""
- set source table
- set repeat 1
- set order random
- set description "Repeatedly runs another item"
- set cycles 24
- set continuous no
- set break_if_on_first yes
- set break_if never
- setcycle 0 word1 Advice
- setcycle 0 word2 Boredom
- setcycle 0 difficulty Difficult
- setcycle 1 word1 Blandness
- setcycle 1 word2 Pact
- setcycle 1 difficulty Difficult
- setcycle 2 word1 Comparison
- setcycle 2 word2 Increment
- setcycle 2 difficulty Difficult
- setcycle 3 word1 Confidence
- setcycle 3 word2 Instance
- setcycle 3 difficulty Difficult
- setcycle 4 word1 Cost
- setcycle 4 word2 Hatred
- setcycle 4 difficulty Difficult
- setcycle 5 word1 Criterion
- setcycle 5 word2 Attitude
- setcycle 5 difficulty Difficult
- setcycle 6 word1 Diffusion
- setcycle 6 word2 Hope
- setcycle 6 difficulty Difficult
- setcycle 7 word1 Episode
- setcycle 7 word2 Majority
- setcycle 7 difficulty Difficult
- setcycle 8 word1 Elaboration
- setcycle 8 word2 Belief
- setcycle 8 difficulty Difficult
- setcycle 9 word1 Excuse
- setcycle 9 word2 Mercy
- setcycle 9 difficulty Difficult
- setcycle 10 word1 Immunity
- setcycle 10 word2 Miracle
- setcycle 10 difficulty Difficult
- setcycle 11 word1 Impulse
- setcycle 11 word2 Jeopardy
- setcycle 11 difficulty Difficult
- setcycle 12 word1 Angle
- setcycle 12 word2 Curve
- setcycle 12 difficulty Easy
- setcycle 13 word1 Cinnamon
- setcycle 13 word2 Roll
- setcycle 13 difficulty Easy
- setcycle 14 word1 Cord
- setcycle 14 word2 Plug
- setcycle 14 difficulty Easy
- setcycle 15 word1 Doll
- setcycle 15 word2 Child
- setcycle 15 difficulty Easy
- setcycle 16 word1 Golf
- setcycle 16 word2 Sport
- setcycle 16 difficulty Easy
- setcycle 17 word1 Graduation
- setcycle 17 word2 College
- setcycle 17 difficulty Easy
- setcycle 18 word1 Grow
- setcycle 18 word2 Shrink
- setcycle 18 difficulty Easy
- setcycle 19 word1 Stand
- setcycle 19 word2 Fall
- setcycle 19 difficulty Easy
- setcycle 20 word1 Pond
- setcycle 20 word2 Frog
- setcycle 20 difficulty Easy
- setcycle 21 word1 Jelly
- setcycle 21 word2 Bread
- setcycle 21 difficulty Easy
- setcycle 22 word1 Mouse
- setcycle 22 word2 Hole
- setcycle 22 difficulty Easy
- setcycle 23 word1 Stadium
- setcycle 23 word2 Concert
- setcycle 23 difficulty Easy
- run Sequence2
- define form_multiple_choice RestudyQuestion
- set timeout infinite
- set spacing 10
- set question "You will now have a chance to see the words again before the test. Would you like to see the word pairs intact again or practice retrieval? "
- __options__
- See the Word Pairs Intact
- Practice Retrieval
- __end__
- set margins "50;50;50;50"
- set form_var response
- set form_title "Form title"
- set description "A simple multiple choice item"
- set button_text Ok
- set allow_multiple no
- set advance_immediately yes
- set _theme gray
- define sequence Sequence2
- set flush_keyboard yes
- set description "Runs a number of items in sequence"
- run WordPairs2 always
- define sketchpad WordPairs
- set duration 5000
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="[word1]" x=-64 y=0 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="[word2]" x=64 y=0 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="-" x=0 y=0 z_index=0
- define sketchpad WordPairs2
- set duration 5000
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="[word1]" x=-256 y=0 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="[word2]" x=256 y=0 z_index=0
- define sequence experiment
- set flush_keyboard yes
- set description "Runs a number of items in sequence"
- run new_inline_script always
- run Instructions always
- run InitialStudy never
- run IntroRestudy always
- run Restudy1_1 always
- run Restudy2_1 always
- run Restudy3_1 always
- run Restudy4_1 always
- run ReStudy always
- define notepad getting_started
- __note__
- Welcome to OpenSesame 3.1 "Jazzy James"!
- If you are new to OpenSesame, it is a good idea to follow one of the tutorials,
- which can be found on the documentation site:
- - <http://osdoc.cogsci.nl/>
- You can also check out the examples. These can be opened via:
- - Menu -> Tools -> Example experiments.
- And feel free to ask for help on the forum:
- - <http://forum.cogsci.nl/>
- Have fun with OpenSesame!
- __end__
- set description "A simple notepad to document your experiment. This plug-in does nothing."
- define inline_script new_inline_script
- set description "Executes Python code"
- set _run ""
- ___prepare__
- #set max x and y resolution
- res = exp.resolution()
- x_res = res[0]
- y_res = res[1]
- #take half of the x resolution, globalize that variable
- x_half = x_res/2
- global x_half
- #take a quarter of the x resolution, globalize that variable
- x_quarter = x_half/2
- global x_quarter
- x_eighth = x_quarter/2
- global x_eighth
- #take half of the y resolution, globalize that variable
- y_half = y_res/2
- global y_half
- y_quarter = y_half/2
- global y_quarter
- y_eighth = y_quarter/2
- global y_eighth
- __end__
- define sketchpad new_sketchpad
- set duration keypress
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="[word1]" x=-64 y=0 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="-" x=0 y=0 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="______" x=64 y=0 z_index=0
- draw rect color=grey fill=1 h=130 penwidth=1 show_if=always w=192 x=-256 y=96 z_index=0
- draw rect color=grey fill=1 h=130 penwidth=1 show_if=always w=192 x=64 y=96 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="Self-Test" x=160 y=160 z_index=0
- draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="See Pair" x=-160 y=160 z_index=0
- define sketchpad welcome
- set start_response_interval no
- set reset_variables no
- set duration keypress
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=serif font_italic=no font_size=32 html=yes show_if=always text="OpenSesame 3.1 <i>Jazzy James</i>" x=0 y=0 z_index=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement