Jump to content
Sign in to follow this  

click on the Listbox

Recommended Posts


HI, i want to double click on the listbox, that is located in the window,

without double click, i cannot go for the next page.

i want to left double click the mouse to open the listbox,

i tried it,can any tell the solution to solve this problem.

here is code,

either give some gudiness, or else change the code and send to me.

#include <GuiListBox.au3>




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)





;~ _GUICtrlListBox_ClickItem($hLB,$Text,"Left",2)

;~ _GUICtrlListBox_ClickItem(


MsgBox(16, "Error", "Window is not present.")



$Text = "US1REN"


ControlClick("Application Name - 'EDKTestUtility","US1REN","[CLASS:ThunderRT6ListBox; INSTANCE:2]",2)

; _GUICtrlListBox_ClickItem($hLB, 2, "left", True)

;MouseClick("left", 312, 32, 2)

Pls any one help me,

to solve this problem,



Share this post

Link to post
Share on other sites

I'm having a hard time reading your code. Sorry. From what I can figure out, you can use mouse click to click twice, or just use the command twice to allow for the space in between clicks to simulate the double click. You could use sleep() to space out the time between clicks. Look at the helpfile for how mouseclick is used. You will see in the example script different methods of using it. Also, search the forum for mouseclick. You may find what you need there.

Share this post

Link to post
Share on other sites

From what I can see you have the variable $text defined twice

once here

Func RecordListSelect($Text)

and once here

DIM $hLB, $Text

Also looks like you are missing a while loop.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this