Art, There are a few ways to do this. You can look at the fitts law/aimed movement task, or the 'hunt.pbl' task in demos for some examples.
Essentially, you give the command out <- GetMouseCursorPosition() which returns a list containing the x,y coordinates, relative to the window. You can use GetMouseState(), which also returns the state of the mouse buttons. Depending on issues like the driver and operating system, you may need to issue a Draw() command prior to this to make sure the mouse position is accurate. This was true in the 0.14 days; it might not be necessary anymore, but I haven't tried it out completely. Shane > Dear list, > > Forgive me if this is a lame question, but could anyone advise me on the > best way to capture the mouse x and y variables using PEBL? What > commands are used for this? > > Cheers, > > Art > > > > > -- > Art Pilacinski > Department of Cognitive Neurology > Hertie-Institute for Clinical Brain Research > Ottfried-Mueller-Strasse 27 > 72076 Tuebingen Germany > http://sites.google.com/site/nodlab/ > > > "Science is interesting (...)" > - Richard Dawkins > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Pebl-list mailing list > Pebl-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pebl-list > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Pebl-list mailing list Pebl-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pebl-list