Jump to content
Sign in to follow this  
sandeep

Can somebody help Please!

Recommended Posts

sandeep

HI

As I am trying to get the control(number of list items and currently selected) of the combo box from my application.

But when i run my code i m getting output as Zero.

Can somebody please help me finding what am i doing wrong :">

#Include <GuiCombo.au3>

$id = 22032

#region --- ScriptWriter generated code Start ---

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

WinWait("EFI Colorproof XF Client","wxtreelistmainwindow")

If Not WinActive("EFI Colorproof XF Client","wxtreelistmainwindow") Then WinActivate("EFI Colorproof XF Client","wxtreelistmainwindow")

WinWaitActive("EFI Colorproof XF Client","wxtreelistmainwindow")

MouseMove(914,408)

MouseDown("left")

MouseUp("left")

Dim $count1 = _GUICtrlComboGetCount($id)

MouseMove(1148,471)

MouseClick("left",1148,471,1)

$list = _GUICtrlComboGetList(22032)

$ret = _GUICtrlComboGetCurSel($id)

MouseMove(1107,504)

MouseDown("left")

MouseUp("left")

MouseMove(902,423)

MouseDown("left")

MouseUp("left")

msgbox(0,"so",$list)

msgbox(0,"so",$ret)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.