Macros with mouse clicks

Questions and answers about 3Dconnexion devices on Windows.

Moderator: Moderators

Post Reply
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Macros with mouse clicks

Post by dougmurrray85 »

I want to have a macro that is Ctrl+Alt+LeftClick

What is the command for doing this in the new macro editor?
Screenshot 2023-02-17 145432.png
Screenshot 2023-02-17 145432.png (2.87 KiB) Viewed 11682 times
This sequence does not work. It does not continue to hold the Ctrl and Alt buttons as the left click engages, yet there is no way I can figure out to have all three commands engage simultaneously.
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

OK this is a gross oversight by the programmers here because you CAN'T add concurrent mouseclicks in a macro... I tried to brute force the desired macro by using my macropad to do Ctrl+Alt+LeftClick for me and only the Ctrl+Alt would register :roll:

You could do this in the previous version :x

Who the hell missed this :?: :!:
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

Had to rollback the driver to 10.7 to get mouseclicks and modifier keys concurrently in my macros.

FIX THIS 3D CONNEXION :!:
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

bump
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

bump
jwick
Moderator
Moderator
Posts: 3340
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Macros with mouse clicks

Post by jwick »

You are correct. The GUI does not create that correctly. I'll create a bug report for it.
You will need to edit the XML.
Replace the <MacroEntry> it writes in the cfg file for your app in %appdata%\3Dconnexion\3DxWare\Cfg\<yourapp>.xml
with:

Code: Select all

    <MacroEntry>
      <ID>Ctrl+Alt</ID>
      <KeyStroke>
        <Modifiers>
          <Modifier>Control</Modifier>
          <Modifier>Alt</Modifier>
        </Modifiers>
        <MouseButton>Left</MouseButton>
      </KeyStroke>
    </MacroEntry>
  
Thanks for pointing it out.
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

Thank you ever so much. :twisted:
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

What are the commands for Left/Right button chords?

There is also a Bug in radial Menus that will not let macros with concurrent mouse clicks and modifiers operate.
jwick wrote: Tue May 02, 2023 1:24 am You are correct. The GUI does not create that correctly. I'll create a bug report for it.
You will need to edit the XML.
Replace the <MacroEntry> it writes in the cfg file for your app in %appdata%\3Dconnexion\3DxWare\Cfg\<yourapp>.xml
with:

Code: Select all

    <MacroEntry>
      <ID>Ctrl+Alt</ID>
      <KeyStroke>
        <Modifiers>
          <Modifier>Control</Modifier>
          <Modifier>Alt</Modifier>
        </Modifiers>
        <MouseButton>Left</MouseButton>
      </KeyStroke>
    </MacroEntry>
  
Thanks for pointing it out.
jwick
Moderator
Moderator
Posts: 3340
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Macros with mouse clicks

Post by jwick »

Some details from you for what you tried and what you expected would be helpful.

If by chording, you are asking what MouseButtons and Modifiers you can have in a MacroEntry,
you can have multiple MouseButton elements, with values Left, Right, Middle.
For Modifiers, you can have multiple Modifiers, with values Control, Shift, Alt, Windows, LeftMouse, MiddleMouse, RightMouse

The above MacroEntry works on a Radial Menu. But Radial Menus don't have a distinctive press & release cycle. They press the action and quickly run the release of the action. That often makes it look like it doesn't do anything. E.g., if you assigned a Shift key to a RM, it would appear to do nothing because it does it so fast.

Also, many keys on Devices behave similarly. Any key that has a long press function (often brings up a Virtual LCD), doesn't have a distinct press and release. It needs to wait for the long press detection, if it doesn't get it, it fires the press and quickly the release. This can be disabled by disabling the "On-Screen Display".

The log file logs what is happening. For advanced usage, it is useful to turn on the log file and watch what is happening. baretail (free download) is your friend for that. Turn on the log file with the 3Dx systray icon (Write Log File).
Then run baretail on %localappdata%\3Dconnexion\3DxWare\3DxService.log.

You are definitely getting into an area that is not used much. Problems may have crept in since it was implemented.
It is helpful to have people use the less commonly used parts of the software. As you see, you've already found a bug.
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

A chord is pressing two mouse buttons together at the same time. It's a critical function in most CAD programs from the pre-mousewheel days. Basically getting five buttons out of three. You would then then add the seven different combinations of Shift, Ctrl and Alt to get a variety of commands with little break to your flow.

5 x 7 = a whopping 35 unique commands from just three buttons! :D

But wait! When you include double clicks, and click-and-hold you get 3 x 35 = 105 commands :mrgreen:

Many of those commands can be linked to popup menus with their own sub-commands too. So much control with so few buttons :twisted:

IF we can get the damn driver working properly :roll:
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

*six buttons
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

Gah my maths is off...

Mouse = 18 functions > 6 button combos of single click, Dbl Click and Hold
Left
Middle
Right
Left+Middle
Left+Right
Middle+Right

Modifiers = 8 combos
NONE
Shift
Ctrl
Alt
Shift+Ctrl
Shift+Alt
Ctrl+Alt
Shift+Ctrl+Alt

18 x 8 = 144 possible commands from only six buttons!!!
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

Bump
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

bump
dougmurrray85
Posts: 35
Joined: Thu Feb 16, 2023 8:48 pm

Re: Macros with mouse clicks

Post by dougmurrray85 »

This CRITICAL issue is over a year old. How has this not yet been fixed? Older versions of the driver could handle far more complex macro construction! :evil:
Post Reply