Modify

Opened 17 years ago

Closed 17 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 by Valik, 17 years ago

Resolution: No Bug
Status: newclosed

Read WikiStart.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.