By the way, I would like to replace the "inputdevice = keyboard" with "inputdevice = voicerecord". Could anyone help me how to do it? The whole script is below:
---------------------------------------------------------------------------------------
*** DEFAULTS ***
---------------------------------------------------------------------------------------
<defaults>
/ screencolor = (255,255,255)
/ font = ("Arial", -18, 400, 0, 34)
/ txbgcolor = (0, 0, 0)
/ txcolor = (0,0,0)
/ inputdevice = keyboard
</defaults>
<data>
/ columns = [date time subject trialcode blockcode blocknum trialnum trialdata trialdata latency response]
</data>
------------------------------------------------------------------------------------
*** TEXTS AND TARGETS ***
------------------------------------------------------------------------------------
<text word>
/ select = noreplace
/ position = (5,50)
/ items = word
/ font = ("Arial", -20, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item word>
/1 = "word"
</item>
<text nonword>
/ select = noreplace
/ position = (93,50)
/ items = nonword
/ font = ("Arial", -20, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item nonword>
/1 = "nonword"
</item>
<text relatedwords1>
/ select = noreplace
/ erase = true(0,0,0)
/ position = (50,50)
/ items = relatedwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item relatedwords1>
/ 1 = "above"
/ 2 = "acquire"
/ 3 = "back"
/ 4 = "baggage"
/ 5 = "bake"
/ 6 = "cafeteria"
/ 7 = "dad"
/ 8 = "dairy"
/ 9 = "early"
/ 10 = "famine"
/ 11 = "gangster"
/ 12 = "garden"
/ 13 = "labor"
/ 14 = "laugh"
/ 15 = "laws"
/ 16 = "league"
/ 17 = "pail"
/ 18 = "rake"
</item>
<text relatedwords2>
/ select = linked(relatedwords1)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = relatedwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item relatedwords2>
/ 1 = "below"
/ 2 = "get"
/ 3 = "front"
/ 4 = "luggage"
/ 5 = "cake"
/ 6 = "food"
/ 7 = "mom"
/ 8 = "milk"
/ 9 = "late"
/ 10 = "hunger"
/ 11 = "mob"
/ 12 = "flower"
/ 13 = "work"
/ 14 = "cry"
/ 15 = "rules"
/ 16 = "baseball"
/ 17 = "bucket"
/ 18 = "leaves"
</item>
<text unrelatedwords1>
/ select = noreplace
/ erase = true(0,0,0)
/ position = (50,50)
/ items = unrelatedwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item unrelatedwords1>
/ 1 = "ache"
/ 2 = "addict"
/ 3 = "bacon"
/ 4 = "bait"
/ 5 = "cable"
/ 6 = "calcium"
/ 7 = "dagger"
/ 8 = "eagle"
/ 9 = "fable"
/ 10 = "galaxy"
/ 11 = "garage"
/ 12 = "gem"
/ 13 = "lather"
/ 14 = "lawn"
/ 15 = "leaf"
/ 16 = "least"
/ 17 = "pain"
/ 18 = "sack"
</item>
<text unrelatedwords2>
/ select = linked(unrelatedwords1)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = unrelatedwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item unrelatedwords2>
/ 1 = "grade"
/ 2 = "math"
/ 3 = "leather"
/ 4 = "potato"
/ 5 = "last"
/ 6 = "birthday"
/ 7 = "balance"
/ 8 = "damp"
/ 9 = "damage"
/ 10 = "gallon"
/ 11 = "danger"
/ 12 = "biology"
/ 13 = "show"
/ 14 = "just"
/ 15 = "minor"
/ 16 = "mortgage"
/ 17 = "feather"
/ 18 = "routine"
</item>
<text relatednonwords1>
/ select = noreplace
/ erase = true(0,0,0)
/ position = (50,50)
/ items = relatednonwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item relatednonwords1>
/ 1 = "saddle"
/ 2 = "toes"
/ 3 = "tapioca"
/ 4 = "adult"
/ 5 = "afraid"
/ 6 = "ballot"
/ 7 = "banker"
/ 8 = "calf"
/ 9 = "closet"
/ 10 = "daisy"
/ 11 = "elbow"
/ 12 = "father"
/ 13 = "fawn"
/ 14 = "geometry"
/ 15 = "girl"
/ 16 = "leaves"
/ 17 = "lemon"
/ 18 = "lend"
</item>
<text relatednonwords2>
/ select = linked(relatednonwords1)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = relatednonwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item relatednonwords2>
/ 1 = "hirse"
/ 2 = "feep"
/ 3 = "podding"
/ 4 = "cheld"
/ 5 = "scire"
/ 6 = "vode"
/ 7 = "muney"
/ 8 = "cov"
/ 9 = "clethes"
/ 10 = "flover"
/ 11 = "arn"
/ 12 = "mather"
/ 13 = "deeq"
/ 14 = "meth"
/ 15 = "bok"
/ 16 = "tlee"
/ 17 = "loam"
/ 18 = "birrow"
</item>
<text unrelatednonwords1>
/ select = noreplace
/ erase = true(0,0,0)
/ position = (50,50)
/ items = unrelatednonwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item unrelatednonwords1>
/ 1 = "salmon"
/ 2 = "width"
/ 3 = "adorable"
/ 4 = "affection"
/ 5 = "age"
/ 6 = "band"
/ 7 = "bounce"
/ 8 = "clorox"
/ 9 = "crib"
/ 10 = "dark"
/ 11 = "elderly"
/ 12 = "fatigue"
/ 13 = "genius"
/ 14 = "gift"
/ 15 = "good"
/ 16 = "left"
/ 17 = "legs"
/ 18 = "lens"
</item>
<text unrelatednonwords2>
/ select = linked(unrelatednonwords1)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = unrelatednonwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item unrelatednonwords2>
/ 1 = "ronge"
/ 2 = "oringe"
/ 3 = "haxe"
/ 4 = "jongle"
/ 5 = "businoss"
/ 6 = "cibbage"
/ 7 = "shoa"
/ 8 = "balloen"
/ 9 = "bene"
/ 10 = "cictus"
/ 11 = "cofe"
/ 12 = "eerthquake"
/ 13 = "cilm"
/ 14 = "tinic"
/ 15 = "yohurt"
/ 16 = "socretary"
/ 17 = "fruets"
/ 18 = "vergo"
</item>
<text target>
/ items = target
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0, 0, 0)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>
<item target>
/1 = "*"
</item>
<shape erase>
/ color= (255,255,255)
/ size = (400,400)
</shape>
------------------------------------------------------------------------------------
*** INSTRUCTION PAGES ***
------------------------------------------------------------------------------------
<instruct>
/ nextkey = (" ")
/ lastlabel = "Press the spacebar to continue"
/ nextlabel = "Press the spacebar to continue"
/ font = ("Arial", -18, 400, 0, 34)
/ screencolor = (255,255,255)
/ txcolor = (0,0,0)
</instruct>
<page welcome>
^^^^
Welcome to the Lexical Decision Experiment.
</page>
<page instruction>
Directions: In each trial two words will be flashed on the screen. After you've seen both words, your task is to decide as quickly as possible whether both members of the pair are real words (e.g., apple chair ) or if one is a nonword (e.g., box appoe).
^^
Press the 'q' key if both are real words and press the 'p' key if one is a nonword. Try to be as fast and accurate as possible. There are 72 trials.
^^
Press the spacebar when you are ready to start.
</page>
<page end>
^^
This is the end. Thank you for participating.
</page>
------------------------------------------------------------------------------------
*** TRIALS ***
------------------------------------------------------------------------------------
<trial relatedwords>
/ pretrialpause = 60
/ validresponse = (16,25)
/ correctresponse = (25)
/ stimulustimes = [200=target; 1200=relatedwords1; 1500=erase; 2100=relatedwords2; 2400=erase]
/ trialdata = [relatedwords1,relatedwords2]
</trial>
<trial unrelatedwords>
/ pretrialpause = 60
/ validresponse = (16,25)
/ correctresponse = (25)
/ stimulustimes = [200=target; 1200=unrelatedwords1; 1500=erase; 2100=unrelatedwords2; 2400=erase]
/ trialdata = [unrelatedwords1,unrelatedwords2]
</trial>
<trial relatednonwords>
/ pretrialpause = 60
/ validresponse = (16,25)
/ correctresponse = (16)
/ stimulustimes = [200=target; 1200=relatednonwords1; 1500=erase; 2100=relatednonwords2; 2400=erase]
/ trialdata = [relatednonwords1,relatednonwords2]
</trial>
<trial unrelatednonwords>
/ pretrialpause = 60
/ validresponse = (16,25)
/ correctresponse = (16)
/ stimulustimes = [200=target; 1200=unrelatednonwords1; 1500=erase; 2100=unrelatednonwords2; 2400=erase]
/ trialdata = [unrelatednonwords1,unrelatednonwords2]
</trial>
------------------------------------------------------------------------------------
*** BLOCKS ***
------------------------------------------------------------------------------------
<block trials>
/ preinstructions =(instruction)
/ bgstim =(word,nonword)
/ trials = [1-72 =noreplace(relatedwords,unrelatedwords,relatednonwords,unrelatednonwords)]
</block>
------------------------------------------------------------------------------------
*** EXPERIMENT***
------------------------------------------------------------------------------------
<expt>
/ blocks = [1=trials]
/ preinstructions = (welcome)
/ postinstructions = (end)
</expt>