Jump to content

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>

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)

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

Pls any one help me,

to solve this problem,

Thanx,

Hari.

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...