Recording Mouse Position
Hi,
I'm attempting to collect/track mouse position on a particular image on a slide. I want the position to be collected often, every 200ms or so, but NOT contingent upon a click: just continuously tracked coordinates as the participant moves the mouse cursor. I'm using the following in-line code before my slide named "Test:"
Dim thePoint As Point
Mouse.ShowCursor True
While Clock.ReadMillisec < Test.OnsetTime + Test.Duration
Mouse.GetCursorPos thePoint
Debug.Print "Mouse is at location: " & thePoint.x & " " & thePoint.y
sleep 200
Wend
The code is designed to print the coordinates in the "debug" tab, but I can't get that to work: they're not being printed anywhere. I'd prefer it in the .edat output files or a .txt file, but can't seem to get any modifications to print the position.
Can anyone tell me what I'm missing?
Thanks,
Lauren
Please sign in to leave a comment.
Comments
5 comments