USSSR Posted March 12, 2021 Share Posted March 12, 2021 I have tried to find info from autoit help and google, but no luck. For example in our "Auto It Window Info" program we have text in different locations but this kind of text cannot be selected with mouse. Can this kind of text be read by AutoIt? Please see pictures. If so, can you help how it is done? Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 12, 2021 Share Posted March 12, 2021 @USSSR You could try to obtain the handle of the control, and then use _GUICtrlListView_* functions to see if you can retrieve what you are looking for; else, try UIASpy and use UIAutomation USSSR 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
USSSR Posted March 12, 2021 Author Share Posted March 12, 2021 Francesco, these GUICtrlListView functions are totally new for me. Could you help me to get started? For example if I would like to get the text "Class:" or "Command ID" in the AutoIt window Info identified by AutoIT? Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 12, 2021 Share Posted March 12, 2021 @USSSR As you can see, the Window's class is "WorkerW", so you could take the handle of this window using WinGetHandle() and the Class of the window. Having the handle of the window, you could take the handle of the ListView control always using the class name with ControlGetHandle(). Once you have these handles, you could use _GUICtrlListView_* to get what you need (in this case, the text of an item). But, as you can see from here, there are plenty functions to be used with ListView (all those which start with _GUICtrlListView_), and so, you can try to use those to get some information from the ListView handle previousely taken USSSR 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
USSSR Posted March 12, 2021 Author Share Posted March 12, 2021 Yes that far I did make but I cant find which GUICtrlListView function would do the trick. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 12, 2021 Share Posted March 12, 2021 @USSSR Post the script. Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette 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