Computer Science Canada With this code, how do i do this: the amount of time the mouse clicks without the user pressing the button constantly. |
Author: | turing1094 [ Mon Jun 14, 2010 10:47 am ] | ||
Post subject: | With this code, how do i do this: the amount of time the mouse clicks without the user pressing the button constantly. | ||
What is it you are trying to achieve? I need to make the user click on the blue circle and evertime they do that it records it, so it gives the results after a certain period of time, however you can just press and hold the button, how do i change this. What is the problem you are having? read above Describe what you have tried to solve this problem cant solve it Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using <Answer Here> |
Author: | copthesaint [ Mon Jun 14, 2010 11:09 am ] | ||
Post subject: | RE:With this code, how do i do this: the amount of time the mouse clicks without the user pressing the button constantly | ||
|
Author: | Tony [ Mon Jun 14, 2010 11:14 am ] |
Post subject: | RE:With this code, how do i do this: the amount of time the mouse clicks without the user pressing the button constantly |
The detail to copthesaint's post is that you record the mouse state over 2 instances in time. 2 binary choices give you 4 possible mouse states: -- clicked down -- held down -- released -- held released |
Author: | chrisbrown [ Mon Jun 14, 2010 11:33 am ] |
Post subject: | Re: RE:With this code, how do i do this: the amount of time the mouse clicks without the user pressing the button consta |
<a href="http://compsci.ca/holtsoft/doc/mouse_buttonmoved.html">Mouse.ButtonMoved</a> and <a href="http://compsci.ca/holtsoft/doc/mouse_buttonwait.html">Mouse.ButtonWait</a> are higher-level alternatives that take care of the details for you, if you prefer. |
Author: | Cezna [ Tue Jun 15, 2010 3:08 pm ] | ||
Post subject: | RE:With this code, how do i do this: the amount of time the mouse clicks without the user pressing the button constantly | ||
This is the method I normally use:
|