rodrigo_sjc_sp Posted November 16, 2012 Posted November 16, 2012 Is possible ? In vlr-mouse-reactor , i find ( :vlr-begindoubleclick , :vlr-beginrightclick) Exists Mouse Move ? Thanks Quote
Lee Mac Posted November 16, 2012 Posted November 16, 2012 To my knowledge, there is no reactor that is triggered by movement of the mouse. The alternative would be to use the grread function to detect user input in the form of mouse movement, however, unlike a reactor, this function will take focus over all other actions. Quote
BlackBox Posted November 16, 2012 Posted November 16, 2012 Visual LISP currently does not support a mouse reactor 'move' event, however, the GRREAD LispFunction does (sort of). The only other way that I am aware of, is to employ a PointMonitor event handler using the .NET API, as I demonstrate in this post. HTH ** Edit to add - Lee, you speedy bloke! LoL Quote
Lee Mac Posted November 16, 2012 Posted November 16, 2012 ** Edit to add - Lee, you speedy bloke! LoL Though, its encouraging that we're echoing each other's comments Quote
rodrigo_sjc_sp Posted November 16, 2012 Author Posted November 16, 2012 I resolved my problem using using (: vlr-commandwillstart), before any command. Instead of using the mouse event, I'm using the event before executing a command thanks to all (if (null *save-reactor2*) (setq *save-reactor2* (vlr-command-reactor nil '((:vlr-commandwillstart . teste)))) ) (defun teste ( reactor params ) (if (= (getvar "ctab") "Model") (progn ) (progn (layer-on) ) ) (princ) ) Quote
BlackBox Posted November 16, 2012 Posted November 16, 2012 (edited) Though, its encouraging that we're echoing each other's comments For me to have the fortunate coincidence of echoing a mentor, is something to be proud of, in deed. Edited November 16, 2012 by BlackBox Phrasing Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.