P0LarWolF

How to get Items from Taskbar?

8 posts in this topic

Hey folks.

I'm new here and i need your help. I can't find a solution for my problem.

When you look in to your taskbar in WIN7, it sorts the child windows of a process in order  they have been created.

So. How can i get this information. I tried the simple way with WinList() but the problem is, that WinList() always shows the last active window as 1st. Not the created fisrt and so on.

I hope you know what i mean.

Thx in advance

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I also tryed this but it doesn't work :(

#include <GuiToolbar.au3>

$sTaskBarWindows = _WinListTaskBarWindows()
ConsoleWrite($sTaskBarWindows)

Func _WinListTaskBarWindows()
    Local $sRet_List = ""
    Local $hTaskBar = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "[CLASS:MSTaskListWClass; INSTANCE:1]")
    Local $iButton_Count = _GUICtrlToolbar_ButtonCount($hTaskBar)
    
    For $i = 1 To $iButton_Count - 1 Step 2
        $sRet_List &= _GUICtrlToolbar_GetButtonText($hTaskBar, _GUICtrlToolbar_IndexToCommand($hTaskBar, $i)) & @CRLF
    Next
    
    Return $sRet_List
EndFunc

 

Edited by P0LarWolF

Share this post


Link to post
Share on other sites

No ideas, guys? :(

Share this post


Link to post
Share on other sites

P0LarWolF,

Would ProcessList offer the order you seek?

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Hello Melba23.

Thx for your reply but this way doesn't work unfortunately. Also google find no solution to get windowtitles from taskbar :(

Edited by P0LarWolF

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Ok. I will try it.

I play often poker (Multitabling) at least 12 Tables. After tiling tables they are really small. In this case it's not always easy choose the right table when it's my turn.

Therefore i decided to write a script which moves the right table to the front and resize it. After i made my decission table moves back to old position. Like this Program does. Don' worry. It's not a BOT!!!

To detect "it's my turn" i use Pattern to get value. 3 = It's my turn, 0 = None. I could make it by flashing window attribute but it doesn't work correctly.

Example:

First Table was screated and still exists. To get the "it's my turn variable" from it the the OFFSET to the value is " $OFF_ToAct1[7]  = [0, 0x10, 0, 0x4, 0x4, 0xE0, 0x370] "

Second Table was screated and still exists. " $OFF_ToAct2[7]  = [0, 0x10, 4, 0x4, 0x4, 0xE0, 0x370] "

The next Table woul be 8, and so on.

If i close now Table 2 the offset of table 3 don't find the value " 3 " becuase table 3 moved on position af table2 and uses now his offset.

That's why i need always the right order of the tables.

I hope i could explain it clear :)

 

Edited by P0LarWolF

Share this post


Link to post
Share on other sites

P0LarWolF,

Perfectly clear. But, unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game interaction - and then you will understand why you will get no more help and this thread will now be locked.

M23

 


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.