CadMouse Wireless Macro problem
Moderator: Moderators
CadMouse Wireless Macro problem
Hello.
Just got CadMouse Wireless and i love it, but i cannot program macro for 'Ctrl + Win + Right Arrow'. The problem i think is with arrow key part, i just cannot enable it and despite i press it do not show in macro window. I want to adress macro for a hotkey to switch between windows virtual desktops. Maybe there is another way to do it.
Thank you very much.
Just got CadMouse Wireless and i love it, but i cannot program macro for 'Ctrl + Win + Right Arrow'. The problem i think is with arrow key part, i just cannot enable it and despite i press it do not show in macro window. I want to adress macro for a hotkey to switch between windows virtual desktops. Maybe there is another way to do it.
Thank you very much.
Re: CadMouse Wireless Macro problem
As you may have noticed, the driver's UI will no longer be active after execution of the macro, so it cannot record the macro entirely.
It may be possible to achieve this, but it requires some scripting. You could try to map the arrow key to a button and check in the generated XML what button is being reported. These files reside under: C:\Users\USERNAME\AppData\Roaming\3Dconnexion\3DxWare\Cfg and are generated per program. You could then combine the mapped arrow key with the Ctrl + Win-key macro using a text editor (Notepad++ is a good and free choice), don't forget to backup the files just in case. I don't know whether it is possible or not, since it's a macro reserved by Windows. Perhaps someone more knowledgeable could shed a light on this.
It may be possible to achieve this, but it requires some scripting. You could try to map the arrow key to a button and check in the generated XML what button is being reported. These files reside under: C:\Users\USERNAME\AppData\Roaming\3Dconnexion\3DxWare\Cfg and are generated per program. You could then combine the mapped arrow key with the Ctrl + Win-key macro using a text editor (Notepad++ is a good and free choice), don't forget to backup the files just in case. I don't know whether it is possible or not, since it's a macro reserved by Windows. Perhaps someone more knowledgeable could shed a light on this.
Re: CadMouse Wireless Macro problem
The OS gets in the way of recording some of these macros (e.g., Alt+Tab thinks you want to switch apps).
You should be able to create this macro by editing the XML.
To keep the OS from acting on them, create a kb macro for each of the pieces. The combine them.
E.g.,
The Key values (e.g., E0) are kb layout-specific. These were recorded on a EN-GB keyboard with an EN-US layout. It is possible that your kb may have a different layout. You may need to record them on your kb.
Make sure you release all keys you press. E.g., having a modifier key stuck down makes it very difficult to work with windows.
You should be able to create this macro by editing the XML.
To keep the OS from acting on them, create a kb macro for each of the pieces. The combine them.
E.g.,
Code: Select all
<MacroEntry>
<ID>Ctrl-Win-Right Arrow</ID>
<Sequence>
<KeyPress>E0</KeyPress> <!-- ctrl key -->
<KeyPress>E3</KeyPress> <!-- Win key -->
<KeyPress>4F</KeyPress> <!-- Right Arrow. FYI, Left Arrow is 50 -->
<KeyRelease>4F</KeyRelease>
<KeyRelease>E3</KeyRelease>
<KeyRelease>E0</KeyRelease>
</Sequence>
</MacroEntry>
Make sure you release all keys you press. E.g., having a modifier key stuck down makes it very difficult to work with windows.
Re: CadMouse Wireless Macro problem
Thanks, how can we know the IDs for differents keys?
My aim is to get "Alt gr+Tab" so i can reproduce the "Cycle apps" behaviour, not available for Revit.
My aim is to get "Alt gr+Tab" so i can reproduce the "Cycle apps" behaviour, not available for Revit.
Re: CadMouse Wireless Macro problem
Those are hex HID usage codes. It is far easier to just record them in our GUI with your current kb layout. Record whatever keys work for you in Revit (one at a time).
Re: CadMouse Wireless Macro problem
Sorry but i don't understand, so there is no way to know the codes so i can write my own combination in XML??
Now i was missing Cycle apps (achieved with "Alt Gr+Tab") and some other Macro available within Explorar, Chrome...but not Revit, AutoCAD...
Now i was missing Cycle apps (achieved with "Alt Gr+Tab") and some other Macro available within Explorar, Chrome...but not Revit, AutoCAD...
Re: CadMouse Wireless Macro problem
When you use our GUI to create a macro, it will write the needed codes into %appdata%\3Dconnexion\3DxWare\Cfg\Revit.xml (if you have Revit in focus at that time).
You can't create exactly the complex macro you want in the GUI because the O/S will intercept the keys before they get to the GUI. You have to edit the XML. If you record those keys separately, you can get the correct codes to create your own macro in the XML.
You can try to look up the keys in HID usage tables (available online) but they may not match your keyboard. It is far easier to use your current environment to record the keys needed by your current environment.
You can't create exactly the complex macro you want in the GUI because the O/S will intercept the keys before they get to the GUI. You have to edit the XML. If you record those keys separately, you can get the correct codes to create your own macro in the XML.
You can try to look up the keys in HID usage tables (available online) but they may not match your keyboard. It is far easier to use your current environment to record the keys needed by your current environment.
Re: CadMouse Wireless Macro problem
Thank you,
In my case the windows jump before they get the Tab key, so just returned to macro editor and after clicking the box pressed Tab. Then edited the XML to rmeove the "left click" code...It works
In my case the windows jump before they get the Tab key, so just returned to macro editor and after clicking the box pressed Tab. Then edited the XML to rmeove the "left click" code...It works
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Code: Select all
<MacroEntry>
<ID>CYCLE</ID>
<Sequence>
<KeyPress>E0</KeyPress>
<KeyPress>E2</KeyPress>
<KeyPress>2B</KeyPress>
<KeyRelease>2B</KeyRelease>
</Sequence>
</MacroEntry>
Re: CadMouse Wireless Macro problem
That's terrific. Hopefully others will find this post useful.
You might want to add the explicit release of E0 and E2. The driver will try to release them for you if it notices a new application coming in focus. Having control keys stuck down makes for a bad day.
You might want to add the explicit release of E0 and E2. The driver will try to release them for you if it notices a new application coming in focus. Having control keys stuck down makes for a bad day.
Re: CadMouse Wireless Macro problem
Thank you, added to the end by the case (was not giving problems).
BTW don't understand why are 3 codes if i only use 2 keys (Alt Gr and Tab)...
BTW don't understand why are 3 codes if i only use 2 keys (Alt Gr and Tab)...
Code: Select all
<ID>CYCLE</ID>
<Sequence>
<KeyPress>E0</KeyPress>
<KeyPress>E2</KeyPress>
<KeyPress>2B</KeyPress>
<KeyRelease>2B</KeyRelease>
<KeyRelease>E0</KeyRelease>
<KeyRelease>E2</KeyRelease>
</Sequence>
</MacroEntry>
Re: CadMouse Wireless Macro problem
It looks like the Control key was pressed, followed by Alt key, then the Tab key.
I don't have that key on my keyboard to test. Possibly it is implemented in the kb as a Ctrl+Alt combination.
But if it works it works.
I don't have that key on my keyboard to test. Possibly it is implemented in the kb as a Ctrl+Alt combination.
But if it works it works.
Re: CadMouse Wireless Macro problem
Hi! I'm using SOLIDWORKS. Is it possible to make a macro, that should make: rotation on/off (3dconnexion command)+ctrl+8? I'm trying to make it, but macro recorder catch only ctrl+8
Re: CadMouse Wireless Macro problem
You want to include running a driver function that toggles rotations, and in addition send a kb macro (ctrl+8), and assign all that to one button?
Not a bad idea, but no there is no way to create that in the macro editor. It's not that smart.
Not a bad idea, but no there is no way to create that in the macro editor. It's not that smart.
Re: CadMouse Wireless Macro problem
Maybe it's possible to control rotation on/off (3dconnexion command) via VBA? There is an opportunity to do a macro in Solidworks. Then I can assign the 3dmouse button for this macro. Any idea?
Re: CadMouse Wireless Macro problem
It's software. Anything is possible.
I've made [nearly] everything completely open and available for anyone to read, understand and modify.
All toggling rotations does is change three lines in your XML file in %appdata%. Try it and see.
That file rules. Anything that can change it can change it as well as the driver or our GUI.
All you have to do is change those same lines by some other means. VBA would work fine as well as anything else that can edit a file.
The ctl+8 can also be sent via software.
The driver has an extension mechanism where you can create custom ButtonActions that you can assign to buttons. Using this you can call exes, dlls, scripts, etc.
It's not trivial. The GUI doesn't help you until you have already created everything. You have to write code and change XML files.
I've made [nearly] everything completely open and available for anyone to read, understand and modify.
All toggling rotations does is change three lines in your XML file in %appdata%. Try it and see.
That file rules. Anything that can change it can change it as well as the driver or our GUI.
All you have to do is change those same lines by some other means. VBA would work fine as well as anything else that can edit a file.
The ctl+8 can also be sent via software.
The driver has an extension mechanism where you can create custom ButtonActions that you can assign to buttons. Using this you can call exes, dlls, scripts, etc.
It's not trivial. The GUI doesn't help you until you have already created everything. You have to write code and change XML files.