Author Topic: GRREAD Question  (Read 1717 times)

0 Members and 1 Guest are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
GRREAD Question
« on: June 04, 2009, 12:33:18 PM »
I was just wondering, what is the difference between using:

Code: [Select]
(grread t)

And

Code: [Select]
(grread nil 1)

Both seem to be documented as returning the drag coordinates - so which should I use when creating a function that tracks mouse movements?

Thanks as always,

Lee

Sebb77

  • Guest
Re: GRREAD Question
« Reply #1 on: June 04, 2009, 01:02:54 PM »
I use it that way :  (grread t 4 4))  , that allows me to use any keyboard key in my routine (any letter, enter, space-bar..)

You might want to use this useful code below for your own testing/learning purpose

(while (setq input (grread t 4 4))
      (princ (strcat "\n" (vl-princ-to-string input)))
      )

cheers

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: GRREAD Question
« Reply #2 on: June 04, 2009, 02:02:57 PM »
Thanks Sebb,

I shall experiment  :-)