Ciantic / AltTabAccessor

Access ALT TAB related functions
MIT License
4 stars 0 forks source link

Are you interested in accessing the taskbar #2

Open ZhuangQu opened 1 year ago

ZhuangQu commented 1 year ago

image (1) Get the count of buttons in taskbar. (2) Get the index of the active button. (3) Activate a button by its index.

If implement these 3 functions, we will overcome a lot of difficulties, such as:

https://www.autohotkey.com/boards/viewtopic.php?f=76&t=105129&p=466883&hilit=taskbar#p466883 https://www.autohotkey.com/boards/viewtopic.php?f=6&t=107976&p=480328&hilit=taskbar#p480328 https://www.autohotkey.com/boards/viewtopic.php?f=76&t=108539&p=482839&hilit=taskbar#p482839 https://www.autohotkey.com/boards/viewtopic.php?f=76&t=108597&p=483071&hilit=taskbar#p483071 https://www.autohotkey.com/boards/viewtopic.php?f=76&t=108826&p=483921&hilit=taskbar#p483921 https://www.autohotkey.com/boards/viewtopic.php?f=76&t=110582&p=491690&hilit=taskbar#p491690 ... more and more ...

Ciantic commented 1 year ago

Hmm.

I plan to stick to VirtualDesktop related functions. Are you talking about IApplicationView functions? I know those can be used to replicate ALT+TAB switcher accurately, I don't know about buttons in taskbar, but I guess they are same.

I have removed those helpers in Rust version, there was a bunch of those in the C++ version.

I don't plan to add those here.

ZhuangQu commented 1 year ago

Thank you for your advice. Could you give me a URL about IApplicationView? I can't find it by bing or google.

Ciantic commented 1 year ago

I moved this issue to AltTabAccessor repo, it's pretty straightforward to make a DLL from this simple example, if you are interested and know how to deal with Rust.

I don't know much about these IApplicationView things, I just experimented, and found the stub from somewhere.