Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mouse Move event Arguements Issue

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
582 Views, 3 Replies

Mouse Move event Arguements Issue

 

Hello API Support,

 

I have an issue with Mouse Events:

After I register for the mouse events, I started getting all the mouse events which is correct.

After this, click on the left button and release. Now, if I check the following event by moving the mouse,

 

STDMETHODIMP CNEMouseEventHandler::MouseEvents_OnMouseMove (MouseButtonEnum Button, ShiftStateEnum ShiftKeys, Point *pModelPosition, Point2d *pViewPosition, View *pView)

 

I get the Button = kLeftMouseButton.

Why do I get this behavior even though I released Left Mouse Button.

I expect in this case the Button = kNoneMouseButton which is the default case.

Please let me know If I am wrong.

 

Regards

Sekhar

3 REPLIES 3
Message 2 of 4
xiaodong_liang
in reply to: Anonymous

Hi Sekhar,

I created a simple VBA project to test, printing the mouse type MouseButtonEnum of mouse down. mouse up and mouse move. Next I performed the operation to click left mouse, release it and move the mouse. OnMouseMove returns kNoneMouseButton after that.

 

My test project is attached. I may probably not get the exact scenario if yours. Could you share a small, complete demo project for investigation?

 

My test version is 2014.

 

 

Message 3 of 4
Anonymous
in reply to: xiaodong_liang

Hi Xiaodong Liang  ,

 

Can you also add SelectEvents and try.

In my case, I have added both.

 

Set oSE = oIE.SelectEvents
oSE.Enabled = True

 

Regards

Sekhar

Message 4 of 4
xiaodong_liang
in reply to: Anonymous

Hi Sekhar,

 

I added it (attached the updated version). It still works well to me. The following is the dumping info.I doubt there is some special within your workflow. It will be hard to diagnose without a sample. OR could you modify my VBA code till the problem reproduces?

 

 

move 0
move 0
move 0
down 1
OnSelect
up 1
click 1
move 0
OnPreSelect
OnPreSelect
move 0 
OnPreSelect
OnPreSelect
move 0 
OnPreSelect
move 0
OnPreSelect
move 0
move 0
move 0
move 0

 

 

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

Post to forums  

Autodesk Design & Make Report