Jump to content

Recommended Posts

Posted

Having the GUI like below:

im1.thumb.png.f491a99bd0d90bd4e886a1c7ab35cd00.png

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
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Posted

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.

Posted

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!!!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...