TaranVH / 2nd-keyboard

ALL of Taran's scripts - not just for the 2nd keyboard.
https://www.youtube.com/watch?v=O6ERELse_QY
1.65k stars 538 forks source link

Making the command closeAllExplorers close all except the last focussed #132

Open paul-dab opened 3 years ago

paul-dab commented 3 years ago

Forgot to comment. I found that I could close all explorer windows if we don't use ahk_group for this function and instead get a list of the ahk_id's then only close the windows with each individual ahk_id except for the first we received from WinGet Autohotkey doesn't give us an ability to remove individual windows from a group. There is an extended method using alternate methods to create the group initially but it didn't work well (at all) for me and I don't trust using it for long if these extended functions stop working. This method by creating an array of ahk_id's can probably be used for the other functions where you want to manipulate window focus in other ways - for example activate windows in reverse order.

TaranVH commented 3 years ago

very cool -- i haven't had the time / energy to look into this yet and merge it, but it's on my list! thanks for your contribution.

On Sat, Aug 22, 2020 at 8:13 PM paul-dab notifications@github.com wrote:

Forgot to comment. I found that I could close all explorer windows if we don't use ahk_group for this function and instead get a list of the ahk_id's then only close the windows with each individual ahk_id except for the first we received from WinGet Autohotkey doesn't give us an ability to remove individual windows from a group. There is an extended method using alternate methods to create the group initially but it didn't work well (at all) for me and I don't trust using it for long if these extended functions stop working. This method by creating an array of ahk_id's can probably be used for the other functions where you want to manipulate window focus in other ways - for example activate windows in reverse order.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TaranVH/2nd-keyboard/pull/132#issuecomment-678723328, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2MGXYVZN4272O2KCSV7KLSCCCN5ANCNFSM4QINOAYQ .