profile switching desktop <> programs

Questions and answers about 3Dconnexion devices on Windows.

Moderator: Moderators

Post Reply
davykyndt
Posts: 7
Joined: Wed Jul 01, 2020 9:58 am

profile switching desktop <> programs

Post by davykyndt »

Hi,

I'm trying to get the Driver_Desktop_ToggleGrab working.

My goal is to have a fixed button to toggle between the program profiles and a general profile, where I have some day-use shortcuts
I managed to get some things working like the shortcuts, axis movements, etc.

I have overwritten thee global.xml and desktop.xml file in the program files and the Appdata folder with the files shown below.
I did this, because It seemed that the file in the PF folder overwrites the appdata files after a restart.

However I'm struggling with some other issues:
*The displayed title is not a fix name, though I have set is as "general" in my desktop.xml
*The <grab>Hard<\grab> in my desktop file is always been overwritten by <grab>None<\grab>
*When I unplug the spacemouse, and replug the driver stops working.
*When I'm at the program profile and like to change some buttons by the GUI, the moment I click the GUI, I see the 3DxSmartUi title appear in the buttons windows, and I can only change the buttons that control the 3DxSmartUi instead of the programs

Global.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<Global Default="false" xmlns="" CfgFormatVersion="1.3" ThisFileVersion="2.0">
	<CfgProperties>
	
		<ID>ID_Global_Cfg</ID>
		<Name>STR_GLOBALCFG</Name>
		<InheritsFromID>ID_Global_Cfg</InheritsFromID>
	</CfgProperties>
	<MacroTable>
		<MacroEntry>
		  <ID>Next_Screen</ID>
		  <KeyStroke>
			<Modifiers>
			  <Modifier>Control</Modifier>
			</Modifiers>
			<Key>E3</Key>
			<Key>1B</Key>
		  </KeyStroke>
		</MacroEntry>
			<MacroEntry>
			<ID>PrintScreen</ID>
			<KeyStroke>
				<Key>6E</Key>
			</KeyStroke>
		</MacroEntry>
	</MacroTable>

	<Settings>
		<OverallScale>1.00</OverallScale>
		<Deadband>0</Deadband>
		<ResponseCurve>1.70</ResponseCurve>
		<SystrayIcon>true</SystrayIcon>
		<InstallerAutoCheckForUpdates>true</InstallerAutoCheckForUpdates>
		<LastAutoCheckForUpdates>3-7-2020</LastAutoCheckForUpdates>
		<LEDsEnabled>true</LEDsEnabled>
		<OnScreenDisplayEnabled>true</OnScreenDisplayEnabled>		
	</Settings>
	<ButtonActions>
		<ButtonAction Type="Driver">
			<ID>Driver_ShowDriverGUI</ID>
			<Name>STR_DRIVER_SHOWDRIVERGUI</Name>
			<Image>
				<Source>[driver_images:Driver_ShowDriverGUI.png]</Source>
			</Image>
		</ButtonAction>
	</ButtonActions>
	<AuthorInfo>
		<DriverVersion>17.6.8.17515</DriverVersion>
		<LastChange>
			<Tool>3DxService.exe</Tool>
			<Version>17.6.8.17515</Version>
			<Date>2020:7:5:3:20:23:14:199</Date>
			<User>dkyndt</User>
		</LastChange>
		<Created>
			<Tool>3DxService.exe</Tool>
			<Version>17.6.3.16588</Version>
			<Date>2019:10:2:8:10:59:19:315</Date>
			<User>jwick</User>
		</Created>
	</AuthorInfo>
	
	<Devices>
		<Device>
			<ID>ID_ProductID_C633</ID>
			<Name>SpaceMouse Enterprise</Name>
			<Settings>
				<OverallScale>1.0000</OverallScale>
				<LCDIntensity>100</LCDIntensity>
				<ButtonStyle>IconsAndText</ButtonStyle><TextSize>Small</TextSize>
			</Settings>
			<ButtonBank Default="true">
			<Name>STR_DEFAULT_BUTTONBANK</Name>
			<ID>Default</ID>
				<Button><Input><ActionID>HIDButton_103</ActionID></Input><Output><ActionID>Driver_Desktop_ToggleGrab</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_104</ActionID></Input><Output><ActionID>Macro_Copy</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_105</ActionID></Input><Output><ActionID>Macro_Paste</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_176</ActionID></Input><Output><ActionID>Printscreen</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_11</ActionID></Input><Output><ActionID>Driver_ShowDriverGUI</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_5</ActionID></Input><Output><ActionID>Macro_MaximizeWindow</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_6</ActionID></Input><Output><ActionID>Next_Screen</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_3</ActionID></Input><Output><ActionID>Macro_QuitProgram</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_27</ActionID></Input><Output><ActionID>Driver_ToggleDominantFilter</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_37</ActionID></Input><Output><ActionID>Macro_AlignWindowRight</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_36</ActionID></Input><Output><ActionID>Macro_AlignWindowLeft</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_1</ActionID></Input><Output><ActionID>HIDMouse_Left</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_2</ActionID></Input><Output><ActionID>HIDMouse_Right</ActionID></Output></Button>
			</ButtonBank>
		</Device>
	</Devices>
	<UI>
		<ButtonFlyouts>
		  <Category Sort="false">
			<ID>UI_3Dx</ID>
			<Name>STR_UI_3DX</Name>
				<ButtonAction><ID>Driver_ShowDriverGUI</ID></ButtonAction>
				<ButtonAction><ID>Driver_Toggle_3DxNumPad</ID></ButtonAction>
				<ButtonAction><ID>Driver_Toggle_3DxLCD</ID></ButtonAction>
				<ButtonAction><ID>Driver_DecreaseAppScale</ID></ButtonAction>
				<ButtonAction><ID>Driver_IncreaseAppScale</ID></ButtonAction>
				<ButtonAction><ID>Driver_ToggleTranslations</ID></ButtonAction>
				<ButtonAction><ID>Driver_ToggleRotations</ID></ButtonAction>
				<ButtonAction><ID>Driver_ToggleDominantFilter</ID></ButtonAction>
				<ButtonAction><ID>Driver_Disabled</ID></ButtonAction>
				<ButtonAction><ID>Driver_Start_FileManager</ID></ButtonAction>
				<ButtonAction><ID>Driver_Start_Browser</ID></ButtonAction>
				<ButtonAction><ID>Driver_Desktop_ToggleGrab</ID></ButtonAction>
		  </Category>
		  <Category Sort="false">
			<ID>UI_Macros</ID>
			<Name>STR_UI_MACROS</Name>
				<ButtonAction><ID>Macro_Search</ID></ButtonAction>
				<ButtonAction><ID>Macro_LockScreen</ID></ButtonAction>
				<ButtonAction><ID>Macro_TaskManager</ID></ButtonAction>
				<ButtonAction><ID>Macro_TabApplication</ID></ButtonAction>
				<ButtonAction><ID>Macro_AlignWindowLeft</ID></ButtonAction>
				<ButtonAction><ID>Macro_AlignWindowRight</ID></ButtonAction>
				<ButtonAction><ID>Macro_MaximizeWindow</ID></ButtonAction>
				<ButtonAction><ID>Macro_MinimizeAll</ID></ButtonAction>
				<ButtonAction><ID>Macro_QuitProgram</ID></ButtonAction>
				<ButtonAction><ID>Macro_FileManager</ID></ButtonAction>
				<ButtonAction><ID>Macro_InternetBrowser</ID></ButtonAction>
				<ButtonAction><ID>Settings</ID></ButtonAction>
				<ButtonAction><ID>Macro_Copy</ID></ButtonAction>
				<ButtonAction><ID>Macro_Paste</ID></ButtonAction>
		  </Category>
			<Category Sort="false">
				<ID>UI_Mouse</ID><Name>STR_UI_MOUSE</Name>
				<ButtonAction><ID>HIDMouse_Left</ID></ButtonAction>
				<ButtonAction><ID>HIDMouse_Middle</ID></ButtonAction>
				<ButtonAction><ID>HIDMouse_Right</ID></ButtonAction>
				<ButtonAction><ID>HIDMouse_Forward</ID></ButtonAction>
				<ButtonAction><ID>HIDMouse_Backward</ID></ButtonAction>
				<ButtonAction><ID>Macro_DoubleClickLeft</ID></ButtonAction>
				<ButtonAction><ID>Macro_DoubleClickMiddle</ID></ButtonAction>
			</Category>
		  <Category>
			<ID>UI_RadialMenus</ID>
			<Name>STR_UI_RADIALMENUS</Name>
				<ButtonAction><ID>Base_RadialMenu_MenuRM1</ID></ButtonAction>
				<ButtonAction><ID>Base_RadialMenu_MenuRM2</ID></ButtonAction>
				<ButtonAction><ID>Base_RadialMenu_MenuRM3</ID></ButtonAction>
			</Category>
		</ButtonFlyouts>
	</UI>
</Global>
Desktop.xml

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<AppCfg Default="false" xmlns="" CfgFormatVersion="1.3" ThisFileVersion="1.9">

	<AppInfo>
	<Signature>
	<Name>General</Name>
	</Signature><Options/>
	</AppInfo>

	<CfgProperties>
	<ID>ID_Desktop_Cfg</ID>
	<Name>General</Name>
	<InheritsFromID>ID_Desktop_Cfg</InheritsFromID>
	<Grab>Hard</Grab>
	</CfgProperties>

	<AuthorInfo>
	<DriverVersion>17.6.8.17515</DriverVersion>
	<LastChange>
	<Tool>3DxService.exe</Tool>
	<Version>17.6.8.17515</Version>
	<Date>2020:7:5:3:11:47:54:852</Date>
	<User>dkyndt</User>
	</LastChange>

	<Created>
	<Tool>3DxService.exe</Tool>
	<Version>17.6.8.17515</Version>
	<Date>2020:7:4:2:12:6:32:113</Date>
	<User>dkyndt</User>
	</Created>

	</AuthorInfo>

	  <MacroTable>
		<MacroEntry>
		  <ID>Settings</ID>
		  <Sequence>
			<KeyPress>E3</KeyPress>
			<KeyPress>C</KeyPress>
			<KeyRelease>C</KeyRelease>
			<KeyRelease>E3</KeyRelease>
		  </Sequence>
		</MacroEntry>
		<MacroEntry>
		  <ID>PresentationMode</ID>
		  <Sequence>
			<KeyPress>E3</KeyPress>
			<KeyPress>13</KeyPress>
			<KeyRelease>13</KeyRelease>
			<KeyRelease>E3</KeyRelease>
		  </Sequence>
		</MacroEntry>
		<MacroEntry>
		  <ID>Sysinfo</ID>
		  <Sequence>
			<KeyPress>E3</KeyPress>
			<KeyPress>0</KeyPress>
			<KeyRelease>0</KeyRelease>
			<KeyRelease>E3</KeyRelease>
		  </Sequence>
		</MacroEntry>
		<MacroEntry>
		  <ID>Start Menu</ID>
		  <Sequence>
			<KeyPress>E0</KeyPress>
			<KeyPress>29</KeyPress>
			<KeyRelease>29</KeyRelease>
			<KeyRelease>E0</KeyRelease>
		  </Sequence>
		</MacroEntry>
	  </MacroTable>
	  <ButtonActions xmlns:driver_images="./images/3DxService/" xmlns:device_images="C:\Users\dkyndt\AppData\Roaming\3Dconnexion\3DxWare\Cfg\Images\">
		<ButtonAction Type="App">
		  <ID>PresentationMode</ID>
		  <Name>Project</Name>
		  <Arg>None</Arg>
		  <Image>
			<Source>[driver_images:PresentMode.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="App">
		  <ID>Taskmgr</ID>
		  <Name>Task Manager</Name>
		  <Arg>None</Arg>
		  <Image>
			<Source>[driver_images:Taskmgr.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="Driver">
		  <ID>Driver_Start_3DxViewer</ID>
		  <Name>STR_DRIVER_START3DXVIEWER</Name>
		  <Image>
			<Source>[driver_images:Viewer.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="Exe">
		  <ID>EXE_Start_Sysinfo32</ID>
		  <Name>System Information</Name>
		  <Executable>msinfo32.exe</Executable>
		  <Arg>None</Arg>
		  <Image>
			<Source>[driver_images:SysInfo.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="App">
		  <ID>Settings</ID>
		  <Name>Settings</Name>
		  <Arg>None</Arg>
		  <Image>
			<Source>[driver_images:Settings.png]</Source>
		  </Image>
		</ButtonAction>
			<ButtonAction Type="Exe">
		  <ID>EXE_Start_CMD</ID>
		  <Name>CMD</Name>
		  <Executable>CMD.EXE</Executable>
		  <Arg>None</Arg>
		  <Image>
			<Source>[device_images:PROG_CMD.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="Exe">
		  <ID>EXE_Start_Notepad</ID>
		  <Name>Notepad</Name>
		  <Executable>start NOTEPAD++</Executable>
		  <Arg>None</Arg>
		  <Image>
			<Source>[device_images:PROG_NPP.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="Exe">
		  <ID>EXE_Start_Everything</ID>
		  <Name>Everything</Name>
		  <Executable>C:\Program Files\Everything\Everything.exe</Executable>
		  <Arg>None</Arg>
		  <Image>
			<Source>[device_images:PROG_Everything.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="Exe">
			<ID>EXE_Start_NPP</ID>
			<Name>NP++</Name>
			<Executable>C:\Program Files\Notepad++\notepad++.exe</Executable>
			<Arg>None</Arg>
			<Image>
				<Source>[driver_images:notepad.png]</Source>
			</Image>
	</ButtonAction>
		<ButtonAction Type="Exe">
		  <ID>EXE_Start_Paint</ID>
		  <Name>Paint</Name>
		  <Executable>MSPAINT.EXE</Executable>
		  <Arg>None</Arg>
		  <Image>
			<Source>[driver_images:mspaint.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="Exe">
		  <ID>EXE_Start_calc</ID>
		  <Name>Calculator</Name>
		  <Executable>calc.EXE</Executable>
		  <Arg>None</Arg>
		  <Image>
			<Source>[driver_images:calc.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="Exe">
		  <ID>EXE_Start_Outlook</ID>
		  <Name>Outlook</Name>
		  <Executable>outlook.EXE</Executable>
		  <Arg>None</Arg>
		  <Image>
			<Source>[device_images:PROG_outlook.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="Exe">
		  <ID>EXE_Start_Vivaldi</ID>
		  <Name>Vivaldi</Name>
		  <Executable>C:\Users\dkyndt\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Vivaldi.lnk</Executable>
		  <Arg>None</Arg>
		  <Image>
			<Source>[device_images:PROG_Vivaldi.png]</Source>
		  </Image>
		</ButtonAction>
		<ButtonAction Type="Driver">
		  <ID>Driver_Desktop_ToggleGrab</ID>
		  <Name>Toggle 2D 3D mode</Name>
		</ButtonAction>
	  </ButtonActions>
	<Settings/>

	<Devices>
		<Device>
		<ID>ID_ProductID_C633</ID>
		<Name>SpaceMouse Enterprise</Name>
		<AxisFilter>None</AxisFilter>
		<CurrentButtonBank>Default</CurrentButtonBank>
		<CurrentAxisBank>Default</CurrentAxisBank>
			<AxisBank Default="true">
				<Name>STR_DEFAULT_BANK</Name>
				<ID>Default</ID>
				<Axis><Enabled>true</Enabled>
					<Input><ActionID>HIDMultiAxis_Rx</ActionID><Min>-512</Min><Max>511</Max></Input>
					<Output><ActionID>HIDMouse_Y</ActionID></Output></Axis>
				<Axis><Enabled>true</Enabled>
					<Input><ActionID>HIDMultiAxis_Ry</ActionID><Min>-512</Min><Max>511</Max></Input>
					<Output><ActionID>HIDMouse_X</ActionID><Reversed>true</Reversed></Output></Axis>
				<Axis><Enabled>true</Enabled>
					<Input><ActionID>HIDMultiAxis_Rz</ActionID><Min>-512</Min><Max>511</Max></Input>
					<Output><ActionID>HIDMouse_Wheel</ActionID><Scale>1.0000</Scale><Reversed>true</Reversed></Output></Axis>
				<Axis><Enabled>true</Enabled>
					<Input><ActionID>HIDMultiAxis_X</ActionID><Min>-512</Min><Max>0</Max><Deadband>200</Deadband></Input>
					<Output><ActionID>KB_Keystroke</ActionID><RepeatStyle>PressAndHold</RepeatStyle><KeyStroke><Key>50</Key></KeyStroke></Output></Axis>
				<Axis><Enabled>true</Enabled>
					<Input><ActionID>HIDMultiAxis_X</ActionID><Min>0</Min><Max>511</Max><Deadband>200</Deadband></Input>
					<Output><ActionID>KB_Keystroke</ActionID><RepeatStyle>PressAndHold</RepeatStyle><KeyStroke><Key>4F</Key></KeyStroke></Output></Axis>
				<Axis><Enabled>true</Enabled>
					<Input><ActionID>HIDMultiAxis_Y</ActionID><Min>0</Min><Max>511</Max><Deadband>200</Deadband></Input>
					<Output><ActionID>KB_Keystroke</ActionID><RepeatStyle>PressAndHold</RepeatStyle><KeyStroke><Key>51</Key></KeyStroke></Output></Axis>
				<Axis><Enabled>true</Enabled>
					<Input><ActionID>HIDMultiAxis_Y</ActionID><Min>-512</Min><Max>0</Max><Deadband>200</Deadband></Input>
					<Output><ActionID>KB_Keystroke</ActionID><RepeatStyle>PressAndHold</RepeatStyle><KeyStroke><Key>52</Key></KeyStroke></Output></Axis>
				<Axis><Enabled>true</Enabled>
					<Input><ActionID>HIDMultiAxis_Z</ActionID><Min>-512</Min><Max>511</Max><Deadband>100</Deadband></Input>
					<Output><ActionID>HIDMouse_Wheel</ActionID><Scale>1.0000</Scale><Reversed>true</Reversed><Modifiers><Modifier>Control</Modifier></Modifiers></Output></Axis>
			</AxisBank>

			<ButtonBank Default="true">
			<Name>STR_DEFAULT_BUTTONBANK</Name>
			<ID>Default</ID>
				<Button><Input><ActionID>HIDButton_14</ActionID></Input><Output><ActionID>EXE_Start_CMD</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_15</ActionID></Input><Output><ActionID>EXE_Start_Vivaldi</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_78</ActionID></Input><Output><ActionID>Macro_TaskManager</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_104</ActionID></Input><Output><ActionID>Driver_ToggleDominantFilter</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_20</ActionID></Input><Output><ActionID>EXE_Start_Everything</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_21</ActionID></Input><Output><ActionID>EXE_Start_Notepad</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_18</ActionID></Input><Output><ActionID>Macro_QuitProgram</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_19</ActionID></Input><Output><ActionID>EXE_Start_Outlook</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_16</ActionID></Input><Output><ActionID>Macro_AlignWindowLeft</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_17</ActionID></Input><Output><ActionID>Macro_AlignWindowRight</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_22</ActionID></Input><Output><ActionID>HIDMouse_Backward</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_77</ActionID></Input><Output><ActionID>HIDMouse_Forward</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_13</ActionID></Input><Output><ActionID>Macro_FileManager</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_1</ActionID></Input><Output><ActionID>HIDMouse_Left</ActionID></Output></Button>
				<Button><Input><ActionID>HIDButton_2</ActionID></Input><Output><ActionID>HIDMouse_Right</ActionID></Output></Button>
			</ButtonBank>
		</Device>
	</Devices>
</AppCfg>

Can you please help me out.
I have a bit knowledge of XML, and understand what to do, However I'm pretty stuck on this now.

Thanks.
davykyndt
Posts: 7
Joined: Wed Jul 01, 2020 9:58 am

Re: profile switching desktop <> programs

Post by davykyndt »

I think I solved already a couple of issues by myself.

When keeping the desktop.xml in the PF folder original as installed, following items do not appear anymore.

*The <grab>Hard<\grab> in my desktop file is always been overwritten by <grab>None<\grab>
*When I'm at the program profile and like to change some buttons by the GUI, the moment I click the GUI, I see the 3DxSmartUi title appear in the buttons windows, and I can only change the buttons that control the 3DxSmartUi instead of the programs
*When I unplug the spacemouse, and replug the driver stops working.

Now only left is the title name of my desktop.xml file.
Any idea how to change this?
Post Reply