I am creating a fake chat application for running an experiment.
I have the Subject ID which is different depending on each participant (Ex. AAAAAAA01; always seven letters and 2 numbers) so I have it in the global variable (as I call it on multiple cards) gSubjectID
An image of the window is attached
When the subject types something in and presses send, it displays the text after what is already there (so it is constantly updating)
Here is an example of the code in simplest form:
Code: Select all
on mouseUp
put return after fld "chatfield"
put gSubjectID & ":" & space & fld"textfield" after fld "chatfield"
put empty into fld "textfield"
wait 4 seconds
put return & return & Confederate & ":" & space & fld "OtherAnswer1" after fld "chatfield"
add 1 to ChatCount
end
An example of what it could display in the chat window:
This puts the Subject ID and : before whatever they type. I want the Subject ID to be a different color.Please wait connecting...
Connected
AAAAAAA01 has joined the room
AAAAAAA01: Hello this is my first chat message
I have tried Htmltext but it only works for replacing everything in the new field not for updating the field with additional text.
Any thought? Is this even possible?