Replies: 1 comment 4 replies
-
It can certainly be done with some amount of work. Here you can see how minimized windows are skipped: windhawk-mods/mods/taskbar-wheel-cycle.wh.cpp Lines 341 to 342 in a61b96c Similarly, you can skip windows depending on other criteria such as the process name. The more challenging part would be to retrieve the process name from the data that you have. I think the easiest way is to rely on the AppId. You can use the iterated button group: windhawk-mods/mods/taskbar-grouping.wh.cpp Line 752 in a61b96c Then you can get the AppId from it as following: windhawk-mods/mods/taskbar-grouping.wh.cpp Line 797 in a61b96c It probably seems scary for somebody who's new to this code. Indeed, even simple things can be difficult since all this stuff is undocumented. Let me know if you need help with this. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'd like to ask guideline, or general help on how should proceed to fork and edit the mode
taskbar-wheel-cycle
. I'm a SWE myself, with some 5yo C++ knowledge that is a bit dusty, but I do a decent amount of Rust, so I should be able to code it myself. I just want to be pointed into the correct direct, if my goal is achievable. Alright...I do not take advantage of the scroll wheel to switch tab. I am way more interested in the
alt + [
andalt +]
key binds to cycle through the taskbar. I'd like to slightly customize the behavior, but maybe it could be an option in the standard mod. Let me explain.In my usage, I have an old piece of software (2004/2005 desktop app). And I open a lot of instances (8 to 10 of it) because it does not have tabs like a web browser have. I use the mod
Disable grouping on the taskbar
with the grouping mod setting inverted (only disable grouping if excluded) and I exclude mysoftware.exe
executable name.So, how could I limit the
taskbar-wheel-cycle
mod to specific executable, like theDisable grouping on the taskbar
is. So, I can cycle through my application instance instead of the whole task bar?For the full story:
I have made a very low quality C++ program (one of those atrocious ugly one file program, yes I'm ashamed of myself) that were taking advantage of the
windows.h
,windowsx.h
andwinuser.h
:EnumWindows
to find all the instance of my app, finding in the taskbar is way smarter, and store them in a vector.GetwindowText
to check if it was the application I was looking for.ShowWindowAsync
,SetForeGroundWindow
,SetActiveWindow
,SetFocus
andBringWindowToTop
.RegisterHotKey
to have my own key binds (next and previous app, refresh app list, etc.I was using it with 7+ Task bar. I am now running Windows 11.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions