Opened 17 years ago
Closed 17 years ago
#173 closed Bug (Fixed)
SysListView32 and 3.2.11.2, Gets different instance than 3.2.11.1?
Reported by: | randallc | Owned by: | Jon |
---|---|---|---|
Milestone: | 3.2.11.4 | Component: | AutoIt |
Version: | 3.2.11.2 | Severity: | |
Keywords: | Cc: |
Description
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
Attachments (0)
Change History (1)
comment:1 Changed 17 years ago by Jon
- Milestone set to 3.2.11.4
- Owner set to Jon
- Resolution set to Fixed
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Fixed in version: 3.2.11.4