coghlan Posted November 26, 2007 Share Posted November 26, 2007 I've stitched together to suggestions from other posters to create a block in an AutoIt script that will:Find item <i> in the listFind the coordinates of the icon's rectangleLeft-click in the iconIt appears I need a mix of Controlxxx, ControlListView and _ListView_GetItemRect function calls, but the first problem I've encountered is that I can't locate A3LListView.au3 (not sure if this is a typo).I used the latest 3.2.10.0 version, not the beta.Am I on the right track here? Previously, I used the Controlxxx functions without any problem, but a poster suggested using the _ListView xxx functions to get at the rectangle coordinates.;******************************************************************#include <A3LListView.au3>$controlHndl = ControlGetHandle( $winNameAdmin, "", "SysListView323" ) ; Handle (RDR list view)$targetIndex = _ListView_FindInText( $controlHndl, $rdrName ) ; Index of RDRControlListView( $controlHndl, "", "SysListView323", "Select", $targetIndex ) ; Select the item$rectCoord = _ListView_GetItemRect( $controlHndl, $rdrName ) Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 26, 2007 Share Posted November 26, 2007 A3L, isn't that an extra library from someone on the forum? It isn't distributed with the program, you'll have to download it separately. Link to comment Share on other sites More sharing options...
Fossil Rock Posted November 26, 2007 Share Posted November 26, 2007 A3L, isn't that an extra library from someone on the forum? It isn't distributed with the program, you'll have to download it separately.Most of those functions are now included in the new version but don't use the same names. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
coghlan Posted November 26, 2007 Author Share Posted November 26, 2007 Hmmm, yeah the other library may be the user's own. I got that example from a Google of _GUICtrlListViewxxxx. I guess part of the problem is that one needs to keep abreast of the updates to the AutoIt runtime environment. The version I initially downloaded (v3.2.8.1) didn't have any _Guictrllistview_xxxx routines. They seem to exist in the latest download and I can call them (cursor goes God-knows-where, but I'll investigate that tomorrow). Thanks. Link to comment Share on other sites More sharing options...
RS200Z Posted December 7, 2007 Share Posted December 7, 2007 Hmmm, yeah the other library may be the user's own. I got that example from a Google of _GUICtrlListViewxxxx.I guess part of the problem is that one needs to keep abreast of the updates to the AutoIt runtime environment. The version I initially downloaded (v3.2.8.1) didn't have any _Guictrllistview_xxxx routines. They seem to exist in the latest download and I can call them (cursor goes God-knows-where, but I'll investigate that tomorrow).Thanks.There is a solution provided by Gary in this thread: http://www.autoitscript.com/forum/index.ph...amp;hl=listviewHope it helps 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