[R] Returning position of mouse cursor (without button press) ?
Derek N Eder
derek.eder at neuro.gu.se
Wed Mar 28 12:31:20 CEST 2001
I would like a function that return the X,Y position of the mouse cursor
whenever it is called PERIOD, i.e., without the button presses of locator()
or identify().
E.G.,
> where.is.mouse()
[1] 123 34 # X and Y coordinates of present mouse position in current
graphics window
Is this a conceivable R function or does it need to be addressed with a call
to the OS (Windows 2000 in my case)?
Thanks,
Derek
Derek N. Eder
Göteborgs Universitet
Institutionen för klinisk neurovetenskap - psykiatri
Sahlgrenska universitetssjukhuset
Blå straket 17
SE 413 45 Göteborg
Sverige
tlf. +46 (031) 34 26 139
derek.eder at neuro.gu.se
Gothenburg University
Institute of clinical neuroscience,
section for Psychiatry
SU/SS
SE 413 45 Göteborg
Sweden
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list