Millisecond Forums

visual feedback

https://forums.millisecond.com/Topic27984.aspx

By nakayama - 11/12/2019

hi, Dave,
Thus maybe an old issue.
I wish to give a visual blue feedback on where was firstly clicked.
If I clicked after the second tone, there is no problem and the trial ends with the click.
If I click before the second tone,
once I click and hold, that's ok.
But once I click and further move the mouse the feedback shows the last position.

I wish to add something to prevent further correction and just want to record where was firstly clicked.
thank you for your attention.
Best,
By Dave - 11/12/2019

nakayama - 11/12/2019
hi, Dave,
Thus maybe an old issue.
I wish to give a visual blue feedback on where was firstly clicked.
If I clicked after the second tone, there is no problem and the trial ends with the click.
If I click before the second tone,
once I click and hold, that's ok.
But once I click and further move the mouse the feedback shows the last position.

I wish to add something to prevent further correction and just want to record where was firstly clicked.
thank you for your attention.
Best,

You cannot give visual feedback positioned where the click occurred while the trial is still running. It's just not possible.
By nakayama - 11/12/2019

Dave - 11/12/2019
nakayama - 11/12/2019
hi, Dave,
Thus maybe an old issue.
I wish to give a visual blue feedback on where was firstly clicked.
If I clicked after the second tone, there is no problem and the trial ends with the click.
If I click before the second tone,
once I click and hold, that's ok.
But once I click and further move the mouse the feedback shows the last position.

I wish to add something to prevent further correction and just want to record where was firstly clicked.
thank you for your attention.
Best,

You cannot give visual feedback positioned where the click occurred while the trial is still running. It's just not possible.


Giving visual feedback after the trial is ok, as long as the firstly clicked position was recorded when the click happened before the second tone.
Is it possible to do so?
Thank you for your advice.




By Dave - 11/12/2019

nakayama - 11/12/2019
Dave - 11/12/2019
nakayama - 11/12/2019
hi, Dave,
Thus maybe an old issue.
I wish to give a visual blue feedback on where was firstly clicked.
If I clicked after the second tone, there is no problem and the trial ends with the click.
If I click before the second tone,
once I click and hold, that's ok.
But once I click and further move the mouse the feedback shows the last position.

I wish to add something to prevent further correction and just want to record where was firstly clicked.
thank you for your attention.
Best,

You cannot give visual feedback positioned where the click occurred while the trial is still running. It's just not possible.


Giving visual feedback after the trial is ok, as long as the firstly clicked position was recorded when the click happened before the second tone.
Is it possible to do so?
Thank you for your advice.





Okay, then you can do

<trial sound>
/ ontrialbegin = [trial.sound.resetstimulusframes()]
/ stimulustimes = [0=screen, tone; 50=circleshape; 2000=tone]
/ inputdevice = mouse
/ validresponse = (circleshape)
/ isvalidresponse = [
if (trial.sound.response == "circleshape") {
values.ax=100%*(trial.sound.responsex/display.width);
values.ay=100%*(trial.sound.responsey/display.height);
}
]
/ beginresponsetime = 50
/ responseinterrupt = frames
/ responsemessage = ("circleshape", tone, 50)
</trial>


By nakayama - 11/12/2019

Dave - 11/12/2019
nakayama - 11/12/2019
Dave - 11/12/2019
nakayama - 11/12/2019
hi, Dave,
Thus maybe an old issue.
I wish to give a visual blue feedback on where was firstly clicked.
If I clicked after the second tone, there is no problem and the trial ends with the click.
If I click before the second tone,
once I click and hold, that's ok.
But once I click and further move the mouse the feedback shows the last position.

I wish to add something to prevent further correction and just want to record where was firstly clicked.
thank you for your attention.
Best,

You cannot give visual feedback positioned where the click occurred while the trial is still running. It's just not possible.


Giving visual feedback after the trial is ok, as long as the firstly clicked position was recorded when the click happened before the second tone.
Is it possible to do so?
Thank you for your advice.





Okay, then you can do

<trial sound>
/ ontrialbegin = [trial.sound.resetstimulusframes()]
/ stimulustimes = [0=screen, tone; 50=circleshape; 2000=tone]
/ inputdevice = mouse
/ validresponse = (circleshape)
/ isvalidresponse = [
if (trial.sound.response == "circleshape") {
values.ax=100%*(trial.sound.responsex/display.width);
values.ay=100%*(trial.sound.responsey/display.height);
}
]
/ beginresponsetime = 50
/ responseinterrupt = frames
/ responsemessage = ("circleshape", tone, 50)
</trial>



thank you;) u are the best!