Sarmistha Posted July 9, 2012 Posted July 9, 2012 Hi All, I am new to AutoIT GUI, Can anyone help me in Grid Control. I have a table That have 4 column. I need to read the data from 4th Col. Follwing property I got from AutoIT window info. >>>> Window <<<< Title: XY Calibration Setup Class: #32770 Position: 262, 101 Size: 852, 678 Style: 0x94C800E4 ExStyle: 0x00010101 Handle: 0x00000000003D195E >>>> Control <<<< Class: WindowsForms10.window.8.app.0.1748312_r29_ad1 Instance: 2 ClassnameNN: WindowsForms10.window.8.app.0.1748312_r29_ad12 Name: m_ultraGrid Advanced (Class): [NAME:m_ultraGrid] ID: 3148888 Text: Position: 80, 189 Size: 402, 342 ControlClick Coords: 128, 151 Style: 0x56010000 ExStyle: 0x00000000 Handle: 0x0000000000300C58
Moderators JLogan3o13 Posted July 9, 2012 Moderators Posted July 9, 2012 Hi, Sarmistha. Is this a GUI you have created, or an external application window? Can you post a screen shot of the window you're trying to manipulate? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Sarmistha Posted July 23, 2012 Author Posted July 23, 2012 (edited) Hi, I am using the follwing code to get the items from grid. controlgethandle is getting me the control id but _GUICtrlListView_GetItemCount returns Null GUI is a external application window. Please help. screenshot for the GUI is attached. $hCtrl = ControlGetHandle("XY Calibration Setup", "", "[NAME:m_ultraGrid]") $sMsg &= @TAB & "Handle= = " & $hCtrl & @CRLF $Finditem = _GUICtrlListView_GetItemCount($hCtrl) $sMsg &= @TAB & "ITEM= " & $Finditem & @CRLF ConsoleWrite($sMsg) Edited July 23, 2012 by Sarmistha
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now