Sign in to follow this
Followers
0
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By BitRot
I'm trying to (un)tick checkboxes and select radiobuttons using ControlTreeView. The problem is that both refuse to work. However, "Exists" and "Select" both work (Although I do not see a (blue or dotted) selection box the latter causes the treeview to scroll the item into view).
What is going on here, and how do I fix it ?
Remark:
I've been both googeling and searching this forum for quite a bit of time. Although the problem seems to exist for years I've not seen an explanation (other than a 32 vs 64 bit OS) nor found a solution. Is this one of those "won't fix" issues ?
Ah, I almost forgot: The version (AutoIt3.exe) shows 3.2.12.1
-
By jdegraff
I'm trying to add a bit of functionality to the FastStone File Rename dialog. I can access every control that I need to except the one that contains the files to be renamed. If I do some exploring in a vbScript shell I get
:c = "TTntTreeView.UnicodeClass1"
:?aut.ControlTreeView(win,"",c,"GetItemCount","","")
5
You can see that the treeview control reports having five items, which is the number displayed. If I manually select (mouse) item #3 I can see the result by
:?aut.ControlTreeView(win,"",c,"GetSelected","1","")
#3
But I do not know how to get the text for the selected item. If "#3" is the item reference then I should be able to
:?aut.ControlTreeView(win,"",c,"GetText","1","#3")
or
:?aut.ControlTreeView(win,"",c,"GetText","1","#3")
if I go strictly by the help file, but it returns nothing.
:?aut.ControlTreeView(win,"",c,"Exists","","3")
1
So it appears that item 3 exists, but
:?aut.ControlTreeView(win,"",c,"GetText","","3")
does not have any text???
:?aut.ControlTreeView(win,"",c,"Exists","","9")
1
and it also appears item 9 exists (it does not)
:?aut.ControlTreeView(win,"",c,"Select","","")
1
causes the first item to be selected, as does
:?aut.ControlTreeView(win,"",c,"Select","","3")
1
Here is the output from the Window Info tool
>>>> Window <<<<
Title: Batch Image Convert / Rename
Class: TBatchConvert
Position: 501, 83
Size: 760, 520
Style: 0x16CD0000
ExStyle: 0x00010100
Handle: 0x0000000001950796
>>>> Control <<<<
Class: TTntTreeView.UnicodeClass
Instance: 1
ClassnameNN: TTntTreeView.UnicodeClass1
Name:
Advanced (Class): [CLASS:TTntTreeView.UnicodeClass; INSTANCE:1]
ID: 37030040
Text:
Position: 354, 79
Size: 378, 188
ControlClick Coords: 108, 86
Style: 0x54010039
ExStyle: 0x00000200
Handle: 0x0000000002350898
>>>> Mouse <<<<
Position: 970, 279
Cursor ID: 0
Color: 0xE1E1E1
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
>>>> Visible Text <<<<
Batch Rename
...
D:\temp\picsave\
Images + Videos (*.jpg;*.jpe;*.jpeg;*.bmp;*.gif;*.tif;*.tiff;*.cur;*.ico;*.png;*.pcx;*.jp2;*.j2k;*.tga;*.ppm;*.wmf;*.psd;*.crw;*.nef;*.cr2;*.orf;*.raf;*.dng;*.mrw;*.pef;*.srf;*.arw;*.rw2;*.x3f;*.sr2;*.srw;*.nrw;*.rwl;*.eps;*.avi;*.mpeg;*.mpg;*.wmv;*.mov;*.mp4;*.mts;*.mkv;*.m4v)
Search and Replace
Use Filename Template
No Sort
Clear
Remove
Add All
Add
Preview
Close
Rename
No Change
?
-
By ur
if ControlClick("[CLASS:MsiDialogCloseClass]"," ","[CLASS:SysTreeView32; INSTANCE:1]") Then $htreeview=ControlGetHandle($hwnd,"","[CLASS:SysTreeView32; INSTANCE:1]") ControlTreeView($hwnd," ",$htreeview,"Select","#4") The above code worked well to enable the martupgrade feature on windows 7.
As part of our Installation Testing Automation before delivering the installer to end user.To confirm whether all the screens are working good.
But it is not working on windows 10.
$h= ControlTreeView($hwnd," ",$htreeview,"Select","#4") The $h is getting value 1,which means error.
-
By antonioj84
;Hi there I am trying to to search a specific path c:\Documents and settings\rogers\Local Settings ;the code below work but can someone point how to define the path directly, instead of searching the folder then click to select and so on ; this code below work, it finds each folder click until Local settings $hWnd5 = WinGetHandle($Title,"") Sleep(300) $hlist = ControlGetHandle($hWnd5, "", "SysListView322") $listid = _GUICtrlListView_FindText($hlist,"Documents and Settings" ) _GUICtrlListView_ClickItem($hlist, $listid, "left", False, 2) Sleep(100) $hlist = ControlGetHandle($hWnd5, "", "SysListView322") $listid = _GUICtrlListView_FindText($hlist,"rogers" ) _GUICtrlListView_ClickItem($hlist, $listid, "left", False, 2) Sleep(100) $hlist = ControlGetHandle($hWnd5, "", "SysListView322") $listid = _GUICtrlListView_FindText($hlist,"Local Settings" ) _GUICtrlListView_ClickItem($hlist, $listid, "left", False, 1) **************************************************************************************************************************************************************** ;This code below does Not work some ideas ;$spath = "C:\" ;$sgettext = ControlTreeView($Title,"","SysTreeView322", "select", $spath) ;$spath = "C:\ | Documents and Settings" ;$sgettext = ControlTreeView($Title,"","SysTreeView322", "select", $spath) ;$spath = "Documents and Settings | rogers" ;$sgettext = ControlTreeView($Title,"","SysTreeView322", "select", $spath) ;$spath = "Documents and Settings | rogers| Local Settings" ;$sgettext = ControlTreeView($Title,"","SysTreeView322", "select", $spath) ;ConsoleWrite($spath &@CRLF) ;$Selectall = ControlListView($hWnd5, "", "SysListView322", $sgettext) ;$Finditem = ControlListView($hWnd5, "", "SysListView322", "Finditem", "Local Settings") ;$Select = ControlListView($hWnd5, "", "SysListView322", "Select",$Finditem) ; consolewrite($Select)
-
By kcvinu
Hi all,
I am experimenting with ControlTreeView function. But when i try this code, it is not doing anything.
ControlTreeView("PhraseExpress Freeware v10.5.41f","",132066,"Select","PhraseExpress|Ahat|#3") Please see this image. I have use "WinActivate" function before this code. But no way.
-