Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
szilvasidave opened this issue Jan 8, 2021 · 1 comment

Comments

@szilvasidave
Copy link

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

FuPeiJiang added a commit that referenced this issue Jan 8, 2021
list VD w. windows Desktop ALL w. filter.ahk
@FuPeiJiang
Copy link
Owner

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants