Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 6
»
show error when mouse moves outside of image
show error when mouse moves outside of image
Post Reply
Like
4
show error when mouse moves outside of image
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
peter.k.p
peter.k.p
posted 4 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 13,
Visits: 307
Hi there,
I am having the following setup: Two images are displayed on the screen and one of them is to be selected by clicking on it. Once the mouse has moved over one of the images I want to restrict the mouse movement. The mouse is not supposed to move out of the image and when it does an error message is supposed to be displayed. So far I have the following which does not work:
<trial clickresponse>
/ ontrialbegin = [
values.starttime = script.elapsedtime;
values.errortype = 1]
/ stimulusframes = [1=left, right, stim_left, default_stim_right]
/ inputdevice = mouse
// validresponse = (left,right)
/ isvalidresponse = [
if(trial.clickresponse.responsey > shape.left.bottom) {
return trial.error
}
]
</trial>
Any help is appreciated, thank you :)
Tags
mouse tracking
valid response
Reply
Like
4
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
show error when mouse moves outside of image
peter.k.p
-
4 Years Ago
I have not found an edit option thus I am going to add something to my...
peter.k.p
-
4 Years Ago
Post Reply
Like
4
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search