Nithila Posted October 27, 2020 Share Posted October 27, 2020 I am trying to get the text inside listview inside an edit,which is read only. I am trying to get item number. AutoItSetOption("MouseCoordMode",0) WinWait("SAMLTD - P/O Receipt Entry") WinActivate("SAMLTD - P/O Receipt Entry") MouseClick("primary",307,392,2) Sleep(3000) ControlClick("SAMLTD - P/O Receipt Entry", "", "[CLASS:AccpacEDIT; INSTANCE:2]",2) $Text=ControlGetText("SAMLTD - P/O Receipt Entry", "", "[CLASS:AccpacEDIT; INSTANCE:2]") MsgBox(0,"itemid",$Text) The output I am getting is And I have tried to get all items to an array as well using below code. $aItem = _GUICtrlListView_GetItemTextArray("[CLASS:ATL:SysListView32;INSTANCE:3]",1) ;$arr = WinGetText("SAMLTD - P/O Receipt Entry") _ArrayDisplay($aItem) The output is What am I doing wrong Link to comment Share on other sites More sharing options...
Nine Posted October 27, 2020 Share Posted October 27, 2020 (edited) You need the handle to use _GUICtrlListView* functions. It doesn't work with special definitions. If that doesn't solve your issue, show the au3info tool information about this control. Edited October 27, 2020 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Zedna Posted October 27, 2020 Share Posted October 27, 2020 As Nine said: $hLV = ControlGetHandle("Win title","","[CLASS:ATL:SysListView32;INSTANCE:3]") $aItem = _GUICtrlListView_GetItemTextArray($hLV,1) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Nithila Posted October 28, 2020 Author Share Posted October 28, 2020 (edited) Zedna I tried with your code the below is the output WinWait("SAMLTD - P/O Receipt Entry") WinActivate("SAMLTD - P/O Receipt Entry") $hLV = ControlGetHandle("SAMLTD - P/O Receipt Entry","","[CLASS:ATL:SysListView32;INSTANCE:3]") $aItem = _GUICtrlListView_GetItemTextArray($hLV,1) _ArrayDisplay($aItem) Edited October 28, 2020 by Nithila change output Link to comment Share on other sites More sharing options...
Zedna Posted October 28, 2020 Share Posted October 28, 2020 (edited) [CLASS:ATL:SysListView32;INSTANCE:3] This means it's nonstandard ListView, AutoIt can communicate only with STANDARD ListViews. EDIT: In such case you can try it and if it works then OK, if not then pity. Edited October 28, 2020 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Nithila Posted October 29, 2020 Author Share Posted October 29, 2020 (edited) Zedna, Ok If so what could be the solution. How else I can achieve it.I need the data inside listview inside read only edit.As you can see in my question the below code is not giving the output as well. ControlClick("SAMLTD - P/O Receipt Entry", "", "[CLASS:AccpacEDIT; INSTANCE:2]",2) $Text=ControlGetText("SAMLTD - P/O Receipt Entry", "", "[CLASS:AccpacEDIT; INSTANCE:2]") I can get Output from normal edit(text box) inside the same listview. Not from read only textbox. Are there any alternatives to get text from read only textbox. Edited October 29, 2020 by Nithila Link to comment Share on other sites More sharing options...
Nithila Posted October 29, 2020 Author Share Posted October 29, 2020 (edited) In that case is AutoIt does not support to Sage 300 Edited October 29, 2020 by Nithila Link to comment Share on other sites More sharing options...
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