Message 1 of 3
lisp code to Get Cursor Position
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ηello everyone.
the following returns the currnt Cursor position
(defun fnCursorPoint ( / result)
(while(not(setq result (cadr (grread T 0 0))))
(setq result nil))
result
)
But if there is no mouse movement. it does not return, running inside the while loop, as grread waits for an event to be released from llop and return the cursor position.
I need if possible (if autolisp supports it), using autolisp another code that will return the current cursor position.
Thanks,
Gery.