newlooper / VirtualSpace

A Virtual Desktop Enhancement GUI Program For Win10 & Win11
GNU General Public License v3.0
182 stars 12 forks source link

[Feature Request] Switch desktops with command line arguments in VirtualSpace #102

Open bigplayer-ai opened 10 months ago

bigplayer-ai commented 10 months ago

🚀 Feature request: Command line arguments for desktop switching in VirtualSpace

VirtualSpace

VirtualSpace is a virtual desktop enhancement GUI program for Windows 10 and Windows 11. It allows you to create multiple desktops and switch between them with ease.

📝 Description

I would like to request a feature that allows us to switch between desktops in VirtualSpace using command line arguments. This would enable us to link the desktop switching to our customized keys on our keyboards or mice.

💡 Motivation

I am using a Logitech G915 keyboard and a Logitech G502 Plus mouse, both of which have many customizable buttons. However, I cannot use them effectively to switch desktops in VirtualSpace because the active window captures and forwards the button presses before VirtualSpace can react to them. This is different from the native Windows hotkeys, which work regardless of the active window.

This problem affects not only the customized keys, but also the VirtualSpace hotkeys in general. Whenever there is an active window, the VirtualSpace hotkeys do not work as expected because the active window intercepts them first.

🛠 Solution

A possible solution to this problem is to add command line arguments for VirtualSpace that allow us to switch between desktops. For example, something like:

VirtualSpace.exe -switch 1

This would switch to the first desktop in VirtualSpace. Then, we could assign these command line arguments to our customized keys using the Logitech software or other third-party tools.

This way, we could switch desktops in VirtualSpace without relying on the hotkeys or the active window.

🔄 Alternatives

An alternative solution is to make the VirtualSpace hotkeys work regardless of the active window, similar to the native Windows hotkeys. This would also solve the problem of switching desktops using customized keys, as well as improve the usability of VirtualSpace in general.

📌 Additional context

None.