Jump to content

exporting results from SysTreeView32


Recommended Posts

hi

i have i window with a tree of folders what i want to do is to export the names of the folders and the names of the files inside them and then manipulate the names like write the to a text file or just display as text that i can copy

i used the windows info and this is the summary :

 

>>>> Window <<<<
Title:    EaseUS Data Recovery Wizard 8.5 Free
Class:    EaseUS_DRWUI
Position:    183, 14
Size:    1000, 700
Style:    0x94C0004C
ExStyle:    0x00050300
Handle:    0x0000000000350B60

>>>> Control <<<<
Class:    SysTreeView32
Instance:    1
ClassnameNN:    SysTreeView321
Name:    
Advanced (Class):    [CLASS:SysTreeView32; INSTANCE:1]
ID:    2032
Text:    
Position:    3, 112
Size:    240, 509
ControlClick Coords:    122, 5
Style:    0x56001037
ExStyle:    0x00000000
Handle:    0x0000000000470468

>>>> Mouse <<<<
Position:    306, 161
Cursor ID:    0
Color:    0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
ScrollWnd
CoverWnd
Preview
ScrollWnd
CoverWnd


>>>> Hidden Text <<<<
ScrollWnd
CoverWnd
ScrollWnd
CoverWnd
ScrollWnd
CoverWnd

 

keep in mind that i'm a newbie in autoit so if some one can help me it would be appreciated

Link to comment
Share on other sites

C:Program FilesAutoIt3AutoIt3.chm --> ControlTreeView()

or

C:Program FilesAutoIt3UDFs3.chm --> GuiTreeView Management

thanks for your reply

i tried accessing the treeview example that came with autoit and i did some commands like Expand and GetText but when i tried that on my real window i couldn't get it to work do you have any idea of this issue ?!!!

Link to comment
Share on other sites

Post your script ...

right now i'm just experimenting  so i just created s script that would return the name of an item in the treeview and this is my script

 

#include <GUIConstantsEx.au3>

#include <TreeViewConstants.au3>

#include <WindowsConstants.au3>

$gui = WinGetHandle("[CLASS:EaseUS_DRWUI]")

WinActivate("[CLASS:EaseUS_DRWUI]")

$h_tree = ControlGetHandle($gui,"","[CLASS:SysTreeView32; INSTANCE:1]")

$d = ControlTreeView($gui, "", $h_tree, "GetText", "#1")

MsgBox("","",$d)

 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...