﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
173	SysListView32 and 3.2.11.2, Gets different instance than 3.2.11.1?	randallc	Jon	"Hi,
I presume there has been a change in obtaining windows in this version?; ? a bug (I see there was a change to "";"" in windows names?)
I have an App with a number of instances of same name/ ID SysListView32 on different tabs/ achild windows.
3.2.11.2 seems to retrieve a different instance; 
can I specify this better?
CODE: AutoIt    WinActivate('Medical')
    Local $WindowHwnd = HWnd(WinGetHandle('Medical'))
    If @error Then ConsoleWrite(""@error                                      $WindowHwnd@error="" & @error & @LF)
    ConsoleWrite(""$WindowHwnd ="" & $WindowHwnd & @LF)
    Local $TabControl_HWnd = ControlGetHandle($WindowHwnd, '', '[Class:SysTabControl32;Instance:1]')
    If @error Then ConsoleWrite(""@error                                      $TabControl_HWnd @error="" & @error & @LF)
    ConsoleWrite(""$TabControl_HWnd ="" & $TabControl_HWnd & @LF)
    ControlSend('Medical', """", $TabControl_HWnd, ""!l!x""); 'Curr&x'

    Local $FileListView_HWnd = ControlGetHandle($WindowHwnd, '', '[Class:SysListView32;Instance:8]');100);
    If @error Then ConsoleWrite(""@error                                      $FileListView_HWnd @error="" & @error & @LF)
    Local $d = 0, $i = 0, $colCount = _GUICtrlListView_GetColumnCount($FileListView_HWnd), $i, $aItems[100]
Working in 3.2.11.1

QUOTE 
$WindowHwnd =0x0078049C
$TabControl_HWnd =0x00A405D6
Col Count: 20 for $FileListView_HWnd=0x019D0606

Not Working in 3.2.11.2

QUOTE 
$WindowHwnd =0x0078049C
$TabControl_HWnd =0x00A405D6
Col Count: 7 for $FileListView_HWnd=0x00620792

So it retrieves a different instance with 7 cols instead of 20 cols


QUOTE 
Class SysListView32
Instance 8
ClassNameNN SysListView328
ID 100

Class SysListView32
Instance 8
ClassNameNN SysListView328
ID 111
Only the ID is different here (in fact sometimes the same, but not for this problem;)
But I can't seem to retrieve it using ID alone..
Is there some syntax method I am missing here?
Best, Randall 
http://www.autoitscript.com/forum/index.php?s=&showtopic=66499&view=findpost&p=492786"	Bug	closed	3.2.11.4	AutoIt	3.2.11.2		Fixed		
