[SpaceMouseCompact] Can I control LED in the middle of macro ?

Questions and answers about 3Dconnexion devices on Windows.

Moderator: Moderators

Post Reply
mostly2d
Posts: 24
Joined: Sat Dec 17, 2022 12:05 am

[SpaceMouseCompact] Can I control LED in the middle of macro ?

Post by mostly2d »

Like..;

Code: Select all

<Output>
	<ActionID>LED_OFF</ActionID>
	<Sleep Sec>0.1</Sleep>
	<ActionID>LED_ON</ActionID>
	<Sleep Sec>0.1</Sleep>
	<ActionID>LED_OFF</ActionID>
</Output>
jwick
Moderator
Moderator
Posts: 3374
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: [SpaceMouseCompact] Can I control LED in the middle of macro ?

Post by jwick »

My, you are a font of interesting ideas.
What use did you imagine for this?

There is no driver action to turn LEDs on/off. Though it's not the first time I've heard a request for it.
There is an API function in the old SDK (SiSetLEDs). You'd have to write code.
I haven't tested it in years, but it looks like it would still work.

Now that I think about it, I also have an external program that will do that if you want to try it. But I don't think you can spin up a new program in 0.1s.

You can also do it by changing cfg files, but the driver is not likely to react to your file change in such a short time.

The behavior may not be predictable with wireless devices, since they turn off their LEDs after a short time to save power.
mostly2d
Posts: 24
Joined: Sat Dec 17, 2022 12:05 am

Re: [SpaceMouseCompact] Can I control LED in the middle of macro ?

Post by mostly2d »

Thanks nice reply, as always.

I do not have any specific goal for LED control, just thinking several tiny personal stuffs.

I've checked SDK(or API),
but most of them are not familiar with me.
Do you happen to have any quite simple one for me to test and learn it through step by step method ?
Should you recommend one, I'd really appreciated with it.
- I could handle elementary level of C# though, no knowledge in C++ at all.

Using "cfg" file as a whole is a.. brilliant workaround.

Thanks
Post Reply