MScholtes / VirtualDesktop

C# command line tool to manage virtual desktops in Windows 10
MIT License
589 stars 56 forks source link

Trigger Task View #15

Closed bilogic closed 4 years ago

bilogic commented 4 years ago

Hi,

I'm curious if there is an switch to trigger task view? i.e. Win-Tab

LinqLover commented 4 years ago

Run the following:

explorer shell:::{3080F90E-D7AD-11D9-BD98-0000947B0257}
MScholtes commented 4 years ago

@bilogic: I developed VirtualDesktop in thought that there would be no need to start "Task View" anymore, therefore it is not useful to include this function.

@LinqLover: Thank you for your good advice

bilogic commented 4 years ago

@LinqLover thanks! Now I'm going to google on how to do that in VB/C# without dropping out to shell.

@MScholtes Perhaps I could explain, I have been using a 3rd party virtual desktop, Dextop since Windows 7. What I found to be very productive was to have the mouse move to one corner of the screen to activate its "Task View" and have an overview of everything that was happening or pick a desktop and switch there. However, Dextop has not been updated and on W10, it clutters up the overview with suspended applications as well, rendering it much harder to use.

I was looking around for a programmatic way to activate W10's task view but the only ones I found was via keystroke injection. Your codes are very different which is why I asked. Thank you.

bilogic commented 4 years ago

I gave up on google, could not find any relevant examples. I'm also aware this might be off topic, but I'm looking for 3 things specifically:

  1. How to activate task view
  2. How to deactivate task view
  3. How to tell if we are in task view

I tried the following for activating, but it did nothing

public static readonly Guid CLSID_taskview = new Guid("3080F90E-D7AD-11D9-BD98-0000947B0257");
Activator.CreateInstance(Type.GetTypeFromCLSID(Guids.CLSID_taskview));

Thanks!

MScholtes commented 4 years ago

Hello bilogic,

please understand that this is only the repository for the tool VirtualDesktop and only questions about it will be answered. Please ask general programming questions at Stack Overflow.

Greetings

Markus