MulliGun Posted Sunday at 05:35 PM Posted Sunday at 05:35 PM Having the GUI like below: How can I access the list view items in the Collections tab? I'd like to iterate the list elements and call some action on every one of them. What I've managed to accomplish so far is getting the handle to the SysTabControl32 control, getting the tabs count, listing the tab names itself: #include <Array.au3> #include <WinAPI.au3> #include <WinAPISysWin.au3> #include <GUIConstantsEx.au3> #include <GuiMenu.au3> #include <GuiTab.au3> #include <GUIConstantsEx.au3> #include <GuiTab.au3> $hWnd = WinGetHandle("Sprite Creator") $hMenu = _GUICtrlMenu_GetMenu($hWnd) $searchTAB = "Images" $txt = "" $hSysTabControl32 = ControlGetHandle ( $hWnd,"",'[CLASS:SysTabControl32; INSTANCE:2]' ) For $i = 0 To _GUICtrlTab_GetItemCount ( $hSysTabControl32 ) - 1 $txt = _GUICtrlTab_GetItemText ( $hSysTabControl32,$i ) ConsoleWrite($i&": " & $txt & @CRLF) Next ConsoleWrite("Row count: " & _GUICtrlTab_GetRowCount($hSysTabControl32)& @CRLF) BUT have no idea HOW can i access the list view embedded into the Collections tab? Thx for any suggestions and help in advance!
Moderators Melba23 Posted Sunday at 05:54 PM Moderators Posted Sunday at 05:54 PM MulliGun, Please read the forum rules regarding game automation before you post again. However, as this particular query only deals with accessing listview items I am happy for it to remain open. But no actual game automation in future posts - understood? 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
MulliGun Posted 22 hours ago Author Posted 22 hours ago Game automation!??? WHERE do You have game automation? Firstly, It's definitely NOT a GAME - it's ONLY a fan made third party app - a tool for a game resources edition. Secondly - I'm absolutely NOT going to crack/de-compile or do sth. similar task that CAN potentially violate any copyrights stuff! I'd like ONLY to automate some actions which one have to perform manually just by clicking some buttons etc. One again I'm NOT going to integrate to the code of the application in ANY way, BTW as we've already said this is NOT a game but an unofficial fan made tool for a game! So I'm completely do NOT understand Yours concerns... Anyway thx. for topic suggestions.
MulliGun Posted 22 hours ago Author Posted 22 hours ago MOREOVER I'm definitely doing this task ONLY for my PRIVATE purpose!. I'm NOT going to public share this code anywhere and for anyone! I'm assure You!!!
Moderators Melba23 Posted 13 hours ago Moderators Posted 13 hours ago MulliGun, I quite clearly stated that this was not game automation - but it is obviously gaming-related so I thought a gentle reminder might be in order. And it makes no difference if you are coding for yourself or for more general use. M23 P.S. Did you learn capitalisation in the Trump school of writing? 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
argumentum Posted 12 hours ago Posted 12 hours ago 17 hours ago, MulliGun said: Having the GUI like below: ..looks Delphi like ( the coding language ). Where can I get the sprite utility to look at it and give it a try ? Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
MulliGun Posted 8 hours ago Author Posted 8 hours ago 5 hours ago, Melba23 said: Did you learn capitalisation in the Trump school of writing? Not quite, I've learned it from His wife, but please keep it in secret with us;-))) Have a good afternoon:-). Melba23 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now