Opened 15 years ago
Closed 15 years ago
#1109 closed Bug (No Bug)
I cannot double click on the list box located on window
Reported by: | hari.subramanyam07@… | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.0.0 | Severity: | None |
Keywords: | Cc: |
Description
Hi, i want to click on the list box window using autoit, i have given man.y click items it was not clicking, this is the code.
#include <GuiListBox.au3>
MsgBox(0,"","LLL")
;WinWaitActive("Consoles","",2000)
sleep(2000)
WinWaitActive("Application Name - 'EDKTestUtility'","",2000)
;~ WinActivate("Application Name - 'EDKTestUtility'","",2000)
;~ ControlFocus("","","")
Func RecordListSelect($Text)
Opt("WinTitleMatchMode", 4)
DIM $hLB, $Text
If WinExists("[CLASS:ThunderRT6FormDC; TITLE:Application Name - 'EDKTestUtility']") Then
msgbox(0,"","It Exist")
$hWin = WinGetHandle("[CLASS:ThunderRT6FormDC; TITLE:TITLE:Application Name - 'EDKTestUtility']")
$hLB = ControlGetHandle($hWin, "", "[CLASS:ThunderRT6ListBox; INSTANCE:2]")
$iLBCount = _GUICtrlListBox_GetCount($hLB)
msgbox(0,"",$iLBCount)
_GUICtrlListBox_SelectString($hLB,$Text,"")
;MouseClick("left")
;MouseClick("left")
;~ _GUICtrlListBox_ClickItem($hLB,$Text,"Left",2)
;~ _GUICtrlListBox_ClickItem(
Else
MsgBox(16, "Error", "Window is not present.")
EndIf
EndFunc
$Text = "US1REN"
call("RecordListSelect",$Text)
ControlClick("Application Name - 'EDKTestUtility","US1REN","[CLASS:ThunderRT6ListBox; INSTANCE:2]",2)
; _GUICtrlListBox_ClickItem($hLB, 2, "left", True)
can any one help me
Hari
Attachments (0)
Change History (1)
comment:1 Changed 15 years ago by Valik
- Resolution set to No Bug
- 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.
Read WikiStart.