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

Toggle Show window/app on all desktops #73

Open
marium0505 opened this issue Jul 15, 2021 · 1 comment
Open

Toggle Show window/app on all desktops #73

marium0505 opened this issue Jul 15, 2021 · 1 comment

Comments

@marium0505
Copy link

Hey,

Can you look into how to toggle "Show this window on all desktops" and "Show windows from this app on all desktops"?
I tried the code here but looks like it is outdated.

@FuPeiJiang
Copy link

@marium0505
another repo: VD.ahk
example:

#Include path\to\VD.ahk

VD.PinWindow("ahk_exe explorer.exe")
Numpad0::VD.TogglePinWindow("A") ;active window

this is a class, #include it
https://github.com/FuPeiJiang/VD.ahk/blob/class_VD/VD.ahk


; "Show this window on all desktops"
; VD.IsWindowPinned(wintitle)
; VD.TogglePinWindow(wintitle)
; VD.PinWindow(wintitle)
; VD.UnPinWindow(wintitle)

; "Show windows from this app on all desktops"
; VD.IsAppPinned(wintitle)
; VD.TogglePinApp(wintitle)
; VD.PinApp(wintitle)
; VD.UnPinApp(wintitle)

https://github.com/FuPeiJiang/VD.ahk/blob/e74cfaa4a15a044a0ba58106b26b5927364947df/VD.ahk#L17-L27

I removed "Show windows from this app on all desktops"
because I didn't think anyone would use it, I personally would only use "Show this window on all desktops"
tell me if you are going to use it, and use case? I'm curious

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