recording mouse movements

342 views
Skip to first unread message

Ashtyster

unread,
Jun 10, 2010, 10:09:05 AM6/10/10
to E-Prime
For one of my studies, I would like to record mouse movements (I'm
using a touch pad, but it doesn't make a difference here) over a
certain period of time. No clicks, just the movements. I was wondering
whether it's possible to do it with E-Prime, and if yes - then how?

I will appreciate any help and advice regarding this issue.

ben robinson

unread,
Jun 10, 2010, 11:41:01 AM6/10/10
to e-p...@googlegroups.com
i think the syntax is Mouse.GetCursorPos (search for that in the Help file), and you could GetCursorPos every x number of milliseconds using a loop in an Inline, depending on the temporal resolution you desire.  that would be one, obvious way, though there may be better ways...


--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-p...@googlegroups.com.
To unsubscribe from this group, send email to e-prime+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.


David McFarlane

unread,
Jun 10, 2010, 4:11:25 PM6/10/10
to e-p...@googlegroups.com
Once you get the mouse coordinates (following Ben's sage advice) you
will want to save them somewhere. You can store them directly in the
.edat file using some combination of c.SetAttrib and c.Log (see the
Context topic in the online E-Basic Help), or to any text file of
your choosing using something like Print# (again, see the E-Basic Help).

Finally, don't overlook PST Web Support at
http://support.pstnet.com/e%2Dprime/support/login.asp , they like to
help out with this sort of thing.

-- David McFarlane, Professional Faultfinder

Message has been deleted

David McFarlane

unread,
Jun 10, 2010, 5:50:09 PM6/10/10
to e-p...@googlegroups.com
Oh, I should mention that PST has an example TrackMouseCoordinates
program on their web site that you may find useful to look at. (And
then I must warn you, as I did in another post today, that in general
PST programmers are pretty sloppy, so do not take their example
programs as models of proper programming practice. Instead, take
them only as rough examples of particular features and then abstract
the useful parts and recode it properly for yourself.)

-- David McFarlane, Professional Faultfinder


At 6/10/2010 04:41 PM Thursday, you wrote:
>Great ideas! Thank you for your help!


>
>
>
>On Thu, Jun 10, 2010 at 10:11 PM, David McFarlane
><<mailto:mcfa...@msu.edu>mcfa...@msu.edu> wrote:
>Once you get the mouse coordinates (following Ben's sage advice) you
>will want to save them somewhere. You can store them directly in
>the .edat file using some combination of c.SetAttrib and c.Log (see
>the Context topic in the online E-Basic Help), or to any text file
>of your choosing using something like Print# (again, see the E-Basic Help).
>
>Finally, don't overlook PST Web Support at

><http://support.pstnet.com/e%2Dprime/support/login.asp>http://support.pstnet.com/e%2Dprime/support/login.asp

>, they like to help out with this sort of thing.
>
>-- David McFarlane, Professional Faultfinder
>
>
>
>At 6/10/2010 11:41 AM Thursday, you wrote:
>i think the syntax is Mouse.GetCursorPos (search for that in the
>Help file), and you could GetCursorPos every x number of
>milliseconds using a loop in an Inline, depending on the temporal
>resolution you desire. that would be one, obvious way, though there
>may be better ways...
>
>On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster

><<mailto:asht...@gmail.com><mailto:asht...@gmail.com>asht...@gmail.com>

Ashtyster

unread,
Jun 15, 2010, 3:06:19 PM6/15/10
to E-Prime
I've been able to make E-Prime record cursor movements. However, after
looking at the recorded values, I realized it would be ideal if I
could record finger movements on the touch pad directly instead of
movements of the cursor on the screen. Does anyone know whether it's
possible to do it with E-Prime. I know I should address this question
to E-Prime tech support (which I've done already), but maybe somebody
has done this before and could give me some tips.

Thank you.

-Ashtyster
> ><<mailto:ashtys...@gmail.com><mailto:ashtys...@gmail.com>ashtys...@gmail.com>
Reply all
Reply to author
Forward
0 new messages