P0LarWolF Posted October 6, 2015 Share Posted October 6, 2015 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 Link to comment Share on other sites More sharing options...
P0LarWolF Posted October 6, 2015 Author Share Posted October 6, 2015 (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 October 6, 2015 by P0LarWolF Link to comment Share on other sites More sharing options...
P0LarWolF Posted October 7, 2015 Author Share Posted October 7, 2015 No ideas, guys? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 7, 2015 Moderators Share Posted October 7, 2015 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
P0LarWolF Posted October 7, 2015 Author Share Posted October 7, 2015 (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 October 7, 2015 by P0LarWolF Link to comment Share on other sites More sharing options...
jguinch Posted October 7, 2015 Share Posted October 7, 2015 can you explain why you need this ? Maybe there are other ways... Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
P0LarWolF Posted October 7, 2015 Author Share Posted October 7, 2015 (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 October 7, 2015 by P0LarWolF Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 7, 2015 Moderators Share Posted October 7, 2015 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts