I'm trying to get something done with COM objects - esp. using ITaskbarList on WIN7. My final goal is to get some overlay icons over Taskbar-Items.
As I'm a noob in COM programming, I need some initial help to get into it.
Here is what I tried - it simply should display one taskbar button after the other as active ...
; Autohotkey_L: COM_CoInitialize() $CLSID_ITaskBarlist := "{56FDF344-FD6D-11D0-958A-006097C9A090}" $IID_ITaskbarList := "{56FDF342-FD6D-11d0-958A-006097C9A090}" piTBL := COM_CreateObject($CLSID_ITaskbarList, $IID_ITaskBarlist) piTBL.HrInit() WinGet, id, list,,, Program Manager Loop, %id% { this_id := id%A_Index% piTBL.ActivateTab(this_id) Sleep, 5000 } COM_CoUninitialize() COM_Release(piTBL)
But this does not work - I tried several things and searched the internet for help, but had no success yet.
Could anybody give initial help please?
BTW: I'm using latest Autohotkey_L ...
Hoppfrosch
---------
Here are some helpful links:
ITaskBarList:http://msdn.microsof...2(v=VS.85).aspx
ITaskBarList2: http://msdn.microsof...8(v=VS.85).aspx
ITaskBarList3: http://msdn.microsof...692(VS.85).aspx
ITaskBarList4: http://msdn.microsof...0(v=VS.85).aspx
Windows 7 Taskbar: Overlay Icons and Progress Bars: http://blogs.microso...gress-bars.aspx
Edit: Corrected typo within sourcecode ...