Hello.
Would it be possible to complete the implementation of the MouseCallback class.
There is no possibility to catch the MousWheel event.
And it is not possible to know if the ALT key is pressed.
jmv
Hi @kitjmv,
I’ve logged your request.
https://mcneel.myjetbrains.com/youtrack/issue/RH-70560
I doubt this will happen any time soon. So you look into hooking the keyboard and mouse using Win32’s SetWindowHookEx. I’m sure I mentioned this before.
– Dale
Ok thank you,
You are right, you have mentioned it several times.
Make sure I do my best to be able to manage on my own.
But at my level (a carpenter), using the system API to know if the ALT key is pressed is complex.
protected override Result RunCommand(RhinoDoc doc, RunMode mode)
{
if (GetKeyState(VK_MENU) < 0)
RhinoApp.WriteLine("ALT key is down");
else
RhinoApp.WriteLine("ALT key is up");
return Result.Success;
}
private static int VK_MENU = 0x12;
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern short GetKeyState(int keyCode);
– Dale
2 Likes
effectively…
1 Like