VD.ahk icon indicating copy to clipboard operation
VD.ahk copied to clipboard

Virtual desktop number of a window is not recognized if window is set to appear on all virtual desktops

Open szilvasidave opened this issue 4 years ago • 1 comments

Virtual desktop number of a window is not recognized if window is set to appear on all virtual desktops ksnip_20210108-133520

szilvasidave avatar Jan 08 '21 12:01 szilvasidave

ty, I didn't know this feature existed

It is recognized, but since it's on all desktops, there's no desktopNumber so desktopOfWindow="" and I've happened to filter out windows with no desktopNumber using

    if (desktopOfWindow)
    {
         code here
    }

if you remove the filter, you'll see your explorer.exe, AND A LOT of other windows programs that are Shown on all desktops

Desktop ALL
WinTitle: Malwarebytes Tray Application
class: MBTrayClose
EXE: mbamtray.exe
FULLPATH: C:\Program Files\Malwarebytes\Anti-Malware\mbamtray.exe
PID: 336
ID: 0x8064e

Desktop ALL
WinTitle: Microsoft Store
class: ApplicationFrameWindow
EXE: ApplicationFrameHost.exe
FULLPATH: C:\Windows\System32\ApplicationFrameHost.exe
PID: 17336
ID: 0x102ac

Desktop ALL
WinTitle: Microsoft Store
class: Windows.UI.Core.CoreWindow
EXE: WinStore.App.exe
FULLPATH: C:\Program Files\WindowsApps\Microsoft.WindowsStore_12011.1001.1.0_x64__8wekyb3d8bbwe\WinStore.App.exe
PID: 19980
ID: 0x102c2

Desktop ALL
WinTitle: Settings
class: ApplicationFrameWindow
EXE: ApplicationFrameHost.exe
FULLPATH: C:\Windows\System32\ApplicationFrameHost.exe
PID: 17336
ID: 0x30196

Desktop ALL
WinTitle: Settings
class: Windows.UI.Core.CoreWindow
EXE: SystemSettings.exe
FULLPATH: C:\Windows\ImmersiveControlPanel\SystemSettings.exe
PID: 4236
ID: 0x20454

Desktop ALL
WinTitle: Microsoft Text Input Application
class: Windows.UI.Core.CoreWindow
EXE: WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.exe
FULLPATH: C:\Windows\SystemApps\InputApp_cw5n1h2txyewy\WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.exe
PID: 7104
ID: 0x3200fe

Desktop ALL
WinTitle: File Explorer
class: CabinetWClass
EXE: Explorer.EXE
FULLPATH: C:\Windows\explorer.exe
PID: 8444
ID: 0x14050e

I don't want these so I filter THESE out,

I created another file https://github.com/FuPeiJiang/VD.ahk/blob/master/other%20examples/list%20VD%20w.%20windows%20Desktop%20ALL%20w.%20filter.ahk
in this file, I remove the filter and:

    if (!desktopOfWindow)
    desktopOfWindow:="ALL"

and this is the filter I use (to only keep Explorer.EXE):

filter:=[{EXE:"mbamtray.exe"}
,{WinTitle:"Microsoft Store", EXE:"ApplicationFrameHost.exe"}
,{EXE:"WinStore.App.exe"}
,{WinTitle:"Settings", EXE:"ApplicationFrameHost.exe"}
,{EXE:"SystemSettings.exe"}
,{EXE:"WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.exe"}]

filterArrOfObj(arrayOfWindowsInfo,filter)

question: do you have easier to understand or shorter filenames for list VD of all windows.ahk and list VD w. windows Desktop ALL w. filter.ahk ?

FuPeiJiang avatar Jan 08 '21 18:01 FuPeiJiang