Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mouse wheel in lisp?

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
484 Views, 4 Replies

Mouse wheel in lisp?

Anonymous
Not applicable
Hi,

Someone knows how to obtain user input from a wheel mouse wheel? Not
(grread), I presume?)

Risto




--

Risto Makela
autor@cadapter.com
Cadapter Software
http://www.cadapter.com
0 Likes

Mouse wheel in lisp?

Hi,

Someone knows how to obtain user input from a wheel mouse wheel? Not
(grread), I presume?)

Risto




--

Risto Makela
autor@cadapter.com
Cadapter Software
http://www.cadapter.com
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
I'm pretty sure this is not possible. LISP interacts with the command line
(keyboard) and with DCL dialog boxes (keyboard and mouse pick) and with
selecting objects on screen (mouse pick) and of course you can start an
AutoCAD command that uses the mouse.

But if you want to write your own routine to do something like zooming or
panning with the mouse then you would need a different programming language.

"Risto Mäkelä" wrote in message >
> Someone knows how to obtain user input from a wheel mouse wheel? Not
> (grread), I presume?)
0 Likes

I'm pretty sure this is not possible. LISP interacts with the command line
(keyboard) and with DCL dialog boxes (keyboard and mouse pick) and with
selecting objects on screen (mouse pick) and of course you can start an
AutoCAD command that uses the mouse.

But if you want to write your own routine to do something like zooming or
panning with the mouse then you would need a different programming language.

"Risto Mäkelä" wrote in message >
> Someone knows how to obtain user input from a wheel mouse wheel? Not
> (grread), I presume?)
Message 3 of 5
jakob_holmquist
in reply to: Anonymous

jakob_holmquist
Enthusiast
Enthusiast

Twenty two years later I ask the same question, is it really not possible to code a function in lisp that utilizes scrolling of the mouse wheel? Like for example rotating a block 90 degrees when turning the mouse wheel.

0 Likes

Twenty two years later I ask the same question, is it really not possible to code a function in lisp that utilizes scrolling of the mouse wheel? Like for example rotating a block 90 degrees when turning the mouse wheel.

Message 4 of 5

john.uhden
Mentor
Mentor

@jakob_holmquist ,

Yes, I think you can do a lot with (grread).

I have a decades old program that takes all its input from grread, though I never figured out how to interpret a menu pick.

But for just a mouse wheel it must rely on setvars like VIEWCTR and others (as I recall).

Sadly, I'm not aware of using the mouse wheel to rotate an object.

In many ways I'm still stuck in the dark ages.

Can you teach me?  Maybe then I can help you.

John F. Uhden

0 Likes

@jakob_holmquist ,

Yes, I think you can do a lot with (grread).

I have a decades old program that takes all its input from grread, though I never figured out how to interpret a menu pick.

But for just a mouse wheel it must rely on setvars like VIEWCTR and others (as I recall).

Sadly, I'm not aware of using the mouse wheel to rotate an object.

In many ways I'm still stuck in the dark ages.

Can you teach me?  Maybe then I can help you.

John F. Uhden

Message 5 of 5
ronjonp
in reply to: jakob_holmquist

ronjonp
Advisor
Advisor

@jakob_holmquist @john.uhden Since the scroll wheel is zoom I don't think GRREAD can detect it. It would generate a code 5 (point) since the cursor is technically moving.

 

Quick test:

(while (and (setq a (grread t 15 1)) (not (member (cadr a) '(13))) (not (member (car a) '(3 25))))
  (print a)
)

@jakob_holmquist @john.uhden Since the scroll wheel is zoom I don't think GRREAD can detect it. It would generate a code 5 (point) since the cursor is technically moving.

 

Quick test:

(while (and (setq a (grread t 15 1)) (not (member (cadr a) '(13))) (not (member (car a) '(3 25))))
  (print a)
)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report