Does anyone know a way to get a list, in order, of all the buttons in
the Windows Taskbar? I just need their caption text, in left-right
order. I've tried using FindWindowEx with the Taskbar's handle but
it doesn't work... and the following is supposed to show how many
buttons are in the Taskbar but it reports 0 all the time:
Code: Select all
hShellTray = FindWindow_("Shell_TrayWnd" , "")
hRebarWindow = FindWindowEx_(hShellTray, 0, "RebarWindow32" , "")
hTaskSwitch = FindWindowEx_(hRebarWindow, 0, "MSTaskSwWClass" , "")
hTaskbar = FindWindowEx_(hTaskSwitch, 0, "SysTabControl32" , "")
ItemCount = SendMessage_(hTaskBar, #TCM_GETITEMCOUNT, 0, 0)
PB - Registered PureBasic Coder