Sign in to follow this  
Followers 0
PsaltyDS

SysTreeView32 breakthroughs?

3 posts in this topic

Just wondering if there have been any breakthroughs in functions for automating SysTreeView32 controls in windows apps. My current pain is MS SQL 2K Enterprise Manager windows, but there are others that use SysTreeView32 controls.

I remember reading somewhere there were smart people working on a UDF for SysTreeView32, similar to the excellent ControlListView(). Not being a smart enough programmer to help with that effort, I just want to cheer it on and see if there is progress toward ControlTreeView() nirvana... :whistle:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I tried to make it but no success.

But tweast has solved problem and made great working DLL - AutoItTreeViewExtension.dll.

I'm using it in my projects and it's working fine.

But note that this Dll is not working on WIN9x.

Dll can be renamed to what you want, I renamed it to TreeViewExtension.dll,

because that Dll can be used like universal Dll not only from AutoIt but also from another program languages.

Using is very simple:

#include "TreeViewExtension.au3"

$tree = ControlGetHandle('Win Title','Win Text', 'SysTreeView321')
$node_root = TreeViewGetRoot($tree)
ExpandTreeViewItem($tree, $node_root)
$node = TreeViewNextChild($tree, $node_root)
While $node
    $node_text = GetTreeViewNameByItem($tree, $node)
    SelectTreeViewItem($tree, $node)
    ; do something with $node_text  ...
    $node = TreeViewNextSibling($tree, $node)
WEnd
oÝ÷ Ù±!?ÛêÞÆÓ­çìÆק²*'jíÿnl¬(!¶¢ºÞr׶©¥êߢ»aÀå׫÷~º&¢¸ v¥N·V'°Më-x»v®¶­sbb33c¶u÷6ö6FÆÂÒFÆÄ÷VâgV÷CµG&VUfWtWFVç6öâæFÆÂgV÷C² £²FW7Bô°¤gVæ2GV×G&VUfWrb33c·G&VRÂb33c¶æöFR vÆRb33c¶æöFP¢Æö6Âb33c·7G"ÒvWEG&VUfWtæÖT'FVÒb33c·G&VRÂb33c¶æöFR¢6öç6öÆUw&FRgV÷C¶æöFR2gV÷C²fײb33c·7G"fײÄb°¢¢WæEG&VUfWtFVÒb33c·G&VRÂb33c¶æöFR¢¢Æö6Âb33c¶6ÆBÒG&VUfWtæWD6ÆBb33c·G&VRÂb33c¶æöFR¢bb33c¶6ÆBfÇC²fwC²FVâGV×G&VUfWrb33c·G&VRÂb33c¶6ÆB¢¢b33c¶æöFRÒG&VUfWtæWE6&Æærb33c·G&VRÂb33c¶æöFR¢tVæ@¤VæFgVæ0 £²FW7Bô°¤gVæ26VÆV7EG&VUfWtFVÔ'æÖRb33c·G&VRÂb33c·7G" Æö6Âb33c¶çDFVÒÒvWEG&VUfWtFVÔ'æÖRb33c·G&VRÂb33c·7G" 6VÆV7EG&VUfWtFVÒb33c·G&VRÂb33c¶çDFVÒ¤VæFgVæ0 £²FW7Bô°¤gVæ2vWEG&VUfWtFVÔ'æÖRb33c¶væBÂb33c·7G"Âb33c¶FVÓÓ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´vWEG&VUfWtFVÔ'æÖRgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒÂgV÷C·7G"gV÷C²Âb33c·7G"¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂvWEG&VUfWtFVÔ'æÖRgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²FW7Bô°¤gVæ26VÆV7EG&VUfWtFVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷Cµ6VÆV7EG&VUfWtFVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂ6VÆV7EG&VUfWtFVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²VçFW7FV@¤gVæ2Vç7W&Uf6&ÆUG&VUfWtFVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´Vç7W&Uf6&ÆUG&VUfWtFVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂVç7W&Uf6&ÆUG&VUfWtFVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²FW7Bô°¤gVæ2WæEG&VUfWtFVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´WæEG&VUfWtFVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂWæEG&VUfWtFVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²ô°¤gVæ26öÆÆ6UG&VUfWtFVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´6öÆÆ6UG&VUfWtFVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂ6öÆÆ6UG&VUfWtFVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²ô°¤gVæ2vWE6VÆV7FVEG&VUfWtFVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´vWE6VÆV7FVEG&VUfWtFVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂvWE6VÆV7FVEG&VUfWtFVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²FW7Bô°¤gVæ2vWEG&VUfWtæÖT'FVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c·7G"ÒgV÷C²gV÷C°¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´vWEG&VUfWtæÖT'FVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒÂgV÷C·7G"gV÷C²Âb33c·7G"¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂvWEG&VUfWtæÖT'FVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³5ФVæFgVæ0 £²FW7Bô°¤gVæ2G&VUfWtvWE&ö÷Bb33c¶væB¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷CµG&VUfWtvWE&ö÷BgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væB¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂG&VUfWtvWE&ö÷BgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²FW7Bô°¤gVæ2G&VUfWtæWD6ÆBb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷CµG&VUfWtæWD6ÆBgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂG&VUfWtæWD6ÆBgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²FW7Bô°¤gVæ2G&VUfWtæWE6&Æærb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷CµG&VUfWtæWE6&ÆærgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂG&VUfWtæWE6&ÆærgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0
Edited by Zedna

Share this post


Link to post
Share on other sites

Excellent! :whistle:

New toy to play with tomorrow! :)

I tried to make it but no success.

But tweast has solved problem and made great working DLL - AutoItTreeViewExtension.dll.

I'm using it in my projects and it's working fine.

But note that this Dll is not working on WIN9x.

Dll can be renamed to what you want, I renamed it to TreeViewExtension.dll,

because that Dll can be used like universal Dll not only from AutoIt but also from another program languages.

Using is very simple:

#include "TreeViewExtension.au3"

$tree = ControlGetHandle('Win Title','Win Text', 'SysTreeView321')
$node_root = TreeViewGetRoot($tree)
ExpandTreeViewItem($tree, $node_root)
$node = TreeViewNextChild($tree, $node_root)
While $node
    $node_text = GetTreeViewNameByItem($tree, $node)
    SelectTreeViewItem($tree, $node)
    ; do something with $node_text  ...
    $node = TreeViewNextSibling($tree, $node)
WEnd
oÝ÷ Ù±!?ÛêÞÆÓ­çìÆק²*'jíÿnl¬(!¶¢ºÞr׶©¥êߢ»aÀå׫÷~º&¢¸ v¥N·V'°Më-x»v®¶­sbb33c¶u÷6ö6FÆÂÒFÆÄ÷VâgV÷CµG&VUfWtWFVç6öâæFÆÂgV÷C² £²FW7Bô°¤gVæ2GV×G&VUfWrb33c·G&VRÂb33c¶æöFR vÆRb33c¶æöFP¢Æö6Âb33c·7G"ÒvWEG&VUfWtæÖT'FVÒb33c·G&VRÂb33c¶æöFR¢6öç6öÆUw&FRgV÷C¶æöFR2gV÷C²fײb33c·7G"fײÄb°¢¢WæEG&VUfWtFVÒb33c·G&VRÂb33c¶æöFR¢¢Æö6Âb33c¶6ÆBÒG&VUfWtæWD6ÆBb33c·G&VRÂb33c¶æöFR¢bb33c¶6ÆBfÇC²fwC²FVâGV×G&VUfWrb33c·G&VRÂb33c¶6ÆB¢¢b33c¶æöFRÒG&VUfWtæWE6&Æærb33c·G&VRÂb33c¶æöFR¢tVæ@¤VæFgVæ0 £²FW7Bô°¤gVæ26VÆV7EG&VUfWtFVÔ'æÖRb33c·G&VRÂb33c·7G" Æö6Âb33c¶çDFVÒÒvWEG&VUfWtFVÔ'æÖRb33c·G&VRÂb33c·7G" 6VÆV7EG&VUfWtFVÒb33c·G&VRÂb33c¶çDFVÒ¤VæFgVæ0 £²FW7Bô°¤gVæ2vWEG&VUfWtFVÔ'æÖRb33c¶væBÂb33c·7G"Âb33c¶FVÓÓ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´vWEG&VUfWtFVÔ'æÖRgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒÂgV÷C·7G"gV÷C²Âb33c·7G"¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂvWEG&VUfWtFVÔ'æÖRgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²FW7Bô°¤gVæ26VÆV7EG&VUfWtFVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷Cµ6VÆV7EG&VUfWtFVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂ6VÆV7EG&VUfWtFVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²VçFW7FV@¤gVæ2Vç7W&Uf6&ÆUG&VUfWtFVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´Vç7W&Uf6&ÆUG&VUfWtFVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂVç7W&Uf6&ÆUG&VUfWtFVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²FW7Bô°¤gVæ2WæEG&VUfWtFVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´WæEG&VUfWtFVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂWæEG&VUfWtFVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²ô°¤gVæ26öÆÆ6UG&VUfWtFVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´6öÆÆ6UG&VUfWtFVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂ6öÆÆ6UG&VUfWtFVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²ô°¤gVæ2vWE6VÆV7FVEG&VUfWtFVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´vWE6VÆV7FVEG&VUfWtFVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂvWE6VÆV7FVEG&VUfWtFVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²FW7Bô°¤gVæ2vWEG&VUfWtæÖT'FVÒb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c·7G"ÒgV÷C²gV÷C°¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷C´vWEG&VUfWtæÖT'FVÒgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒÂgV÷C·7G"gV÷C²Âb33c·7G"¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂvWEG&VUfWtæÖT'FVÒgV÷C²¢VæF`¢&WGW&âb33c¶föõ³5ФVæFgVæ0 £²FW7Bô°¤gVæ2G&VUfWtvWE&ö÷Bb33c¶væB¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷CµG&VUfWtvWE&ö÷BgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væB¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂG&VUfWtvWE&ö÷BgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²FW7Bô°¤gVæ2G&VUfWtæWD6ÆBb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷CµG&VUfWtæWD6ÆBgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂG&VUfWtæWD6ÆBgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0 £²FW7Bô°¤gVæ2G&VUfWtæWE6&Æærb33c¶væBÂb33c¶FVÒ¢Æö6Âb33c¶föòÒFÆÄ6ÆÂb33c¶u÷6ö6FÆÂÂgV÷C¶ÆöærgV÷C²ÂgV÷CµG&VUfWtæWE6&ÆærgV÷C²ÂgV÷C¶væBgV÷C²Âb33c¶væBÂgV÷C¶ÆöærgV÷C²Âb33c¶FVÒ¢bW'&÷"FVà¢×6t&÷ÂgV÷C´FV'VrgV÷C²ÂgV÷C´W'&÷"vFFÆÄ6ÆÂG&VUfWtæWE6&ÆærgV÷C²¢VæF`¢&WGW&âb33c¶föõ³Ð¤VæFgVæ0

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
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
Sign in to follow this  
Followers 0