Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
Dynamic screen variables
Dynamic screen variables
Post Reply
Like
25
1
2
Next
Jump To Page
Dynamic screen variables
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
Using /correctmessage, /responsemessage or /branch to another <trial> that plays the respective <sound> are all valid approaches.
Reply
Like
20
zajac
zajac
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 28,
Visits: 98
Never mind - I'm pretty sure I can call it as a correctmessage=true(sound,200) etc.....
Reply
Like
21
zajac
zajac
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 28,
Visits: 98
Dave - just a quick question again: Is it possible to have a sound stimulus play on response? We're trying to put together a 'fruit squash' type game and when participants press the fruit we'd like to have a 'squash' sound played. Is this possible?
Ian.
Reply
Like
21
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
You either need to compute mean latency using <values> and log the respective value to the data file or do the same using one of the built-in meanlatency properties.
Reply
Like
20
zajac
zajac
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 28,
Visits: 98
Now just another quick question about <summarydata> : Can I get it to store meanlatency for an RT task, as per the last line of the raw data file? I'm guessing that I will need to define this in the script somewhere within values or variable, and then enter it as a summary column (i.e., values.meanlatency)
I've had a bit of a look through the help documentation, but am admittedly a little lost.
Thanks
Reply
Like
19
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
No worries -- I probably should have made the point more salient to begin with. Let me know if anything else comes up!
Reply
Like
22
zajac
zajac
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 28,
Visits: 98
Apologies for missing that part, Dave. Thanks for your help. All sorted.
Reply
Like
22
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
As already mentioned in my previous reply, you ought to multiply by pixels to cast the expression to the correct unit:
<values>
/ vertres = 1px * display.height
/ horizres = 1px * display.width
</values>
Reply
Like
22
zajac
zajac
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 28,
Visits: 98
Ok, so I'm not really getting anywhere with this. I have the following trial which is a cue image which I want to display centrally. I'm trying to set the position to be defined using an expression. I know that I can show centrally using 50%,50%. I'd rather use the expression for consistency though, and as a test to check I'm getting it right.
I first tried to define a vertical resolution and horizontal resolution value so that I can call these in expressions.
<values>
/ vertres=display.height
/ horizres=display.width
</values>
Then, I tried to call these for the position of the trial as follows:
<picture cuepic>
/ items = ("cue.jpg")
/ size = (100px,100px)
/ position = (values.vertres/2,values.horizres / 2)
</picture>
I'm not getting any errors and the script runs ok, I just can't see the cue at all. What am I doing wrong?
Thanks in advance
Reply
Like
21
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
> What I'm thinking is dynamically defining a position. For instance, can I create a variable (displaypos) which equals (verticalresolution/2)?
Yes, you can do that. You'll want to use the display.width and/or display.height properties to do that. Details can be found in the documentation for the <display> element. Note that width and height are returned as pure integers, so you'll have to multiply by 1px to convert to pixels.
Reply
Like
23
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
25
1
2
Next
Jump To Page
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search