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

v2_port分支没有 TogglePinApp,PinApp,UnPinApp #67

Open
huo-feng-ding opened this issue Feb 28, 2024 · 6 comments
Open

v2_port分支没有 TogglePinApp,PinApp,UnPinApp #67

huo-feng-ding opened this issue Feb 28, 2024 · 6 comments

Comments

@huo-feng-ding
Copy link
Contributor

numpadDot::VD.TogglePinApp("A")
^numpadDot::VD.PinApp("A")
!numpadDot::VD.UnPinApp("A")
这三个方法在v2_port分支里没有找到

@FuPeiJiang
Copy link
Owner

why use PinApp instead of PinWindow ?

do you prefer PinApp because it pins all the subWindows of the same app ?

@huo-feng-ding
Copy link
Contributor Author

这个功能我也不怎么用,只是有点强迫症,试了下发现没有这三个方法,呵呵

@wzj-zz
Copy link

wzj-zz commented Sep 3, 2024

why use PinApp instead of PinWindow ?

do you prefer PinApp because it pins all the subWindows of the same app ?

I would like to share all windows of a specific application across all desktops and, after switching to a specified desktop, cancel the sharing. This would achieve the effect of batch moving windows to the specified desktop. Even simply sharing the same application to all desktops is valuable to me.

Also, thank you very much for your work; It's really cool!

@FuPeiJiang
Copy link
Owner

@wzj-zz

This would achieve the effect of batch moving windows to the specified desktop.

can you tell me which program it is ? Maybe another way would be simpler

I will very probably merge @huo-feng-ding's PR, I'm just exploring other options

@wzj-zz
Copy link

wzj-zz commented Sep 5, 2024

can you tell me which program it is ? Maybe another way would be simpler

I’m not sure if I fully understand your meaning. My scenario is that I want to create a script that can share a memo with multiple windows across all desktops. Another situation is that I could use this feature to share a game window across all desktops and then switch to a specific desktop to stop sharing, thereby indirectly achieving the functionality of moving multiple windows at once.

@FuPeiJiang
Copy link
Owner

@wzj-zz

memo.ah2

#Include %A_LineFile%\..\VD.ah2

myGui:=Gui()
myGui.Show("w100 h100 x0 y0")

myGui2:=Gui()
myGui2.Show("w100 h100 x200 y200")

f1::{
    VD.TogglePinExe(WinGetProcessPath(myGui.Hwnd))
}

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

3 participants