I've created a progarm which randomly presents a series of words on a screen. The program then randomly selects a letter which it colours either blue, green or red (again in a random fashion). However, I now need code that will allow two arrows (or graphics) to appear one above and one below the randomly selected letter (ie to point to the letter and direct attention). Can anyone help me with code which will do this??
The biggest problem is that the word varies in length on any given trial...
My rev skills are limited so simple code would be much appreciated!
The code I have thus far is (if that helps at all?)....
put the number of characters of item 1 of line wordnumber of fld "wordField" into charnumber
put empty into fld "charfield"
put 1 into s
repeat until s > charnumber
put s & linefeed after fld "charfield"
add 1 to s
end repeat
put scramble(fld "charfield") into fld "charfield"
set the text of fld "colourLabel" to line wordnumber of fld "wordField"
put item 1 of line 1 of fld "charfield" into fred
set the textcolor of char fred of fld "colourLabel" to item 1 of line wordnumber of fld "colour"
Show fld "colourLabel"
No problem, glad to help! I discovered Rev two years ago but I am limited to psyc experiments so I tend to just recyle old code. I love it when I finally get to do something new and more challenging. I enjoy the puzzle
Can you tell me more about that? I am a cognitive psychologist. I produced this museum of perception and cognition a few years back (well many years back now, as the look and feel of the website shows)
Very cool. I want to start doing more web based stuff.
The work varies.
If it's a clinical project then I'd be creating survey's (ie a depression questionnaire) using Rev. Where responses would be recorded and anaylsed by Rev which would output their score ie. severely depressed, moderately depressed etc.
If it's cognitive psyc it would be say a learning study where stimuli is presented on the screen and the person would learn response contingencies and their rate of learning would be measured.
Most recently it's been a Stroop task where response times are recorded. This is the project I was asking all the questions about.