this-is-me Posted September 24, 2005 Share Posted September 24, 2005 I am trying to use autoit to cause a listview in another window to sort. I have searched this forum and the web for any method (including sendmessage) to allow me to click a specific column on another window's syslistview. I see no method of doing this, especially when the listview automatically resizes the column headers according to the content of the listview. Does anyone have an idea on how to accomplish this or some workaround instead of an actual click on the column header? Who else would I be? Link to comment Share on other sites More sharing options...
this-is-me Posted September 26, 2005 Author Share Posted September 26, 2005 Does anyone know of a workaround to allow me to make this happen? Who else would I be? Link to comment Share on other sites More sharing options...
GaryFrost Posted September 26, 2005 Share Posted September 26, 2005 have you tried the _GUICtrlListViewSort($h_listview, $v_descending, $i_sortcol, $s_Title, $s_text) ? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
this-is-me Posted September 26, 2005 Author Share Posted September 26, 2005 I have not tried that, but do I remember correctly that _GUICtrlListViewSort also deletes the items in the listview and reenters them? Who else would I be? Link to comment Share on other sites More sharing options...
GaryFrost Posted September 26, 2005 Share Posted September 26, 2005 I have not tried that, but do I remember correctly that _GUICtrlListViewSort also deletes the items in the listview and reenters them? Yep SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
this-is-me Posted September 26, 2005 Author Share Posted September 26, 2005 (edited) Sorry to say that will not help me then. The program I am using is xplorer2, and it's listview in my current situation has on average around 5000 files in the view at any one time. In my situation, I _must_ allow the program to do the sorting, but I am looking for a way to simulate a click on the listview header. Is there any way you know of to retrieve the width of a remote listview header? Edited September 26, 2005 by this-is-me Who else would I be? Link to comment Share on other sites More sharing options...
Shevilie Posted February 23, 2007 Share Posted February 23, 2007 Now I got same situation.. any got a update to this problem ?? (Though im not using iexplorer) Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
PaulIA Posted February 23, 2007 Share Posted February 23, 2007 Now I got same situation.. any got a update to this problem ?? (Though im not using iexplorer)Use the ListView and Header functions from Auto3Lib. They are designed to work with external programs and do not have the side effects that the AutoIt controls have in this area. Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
pootie tang Posted July 15, 2008 Share Posted July 15, 2008 (edited) Use the ListView and Header functions from Auto3Lib. They are designed to work with external programs and do not have the side effects that the AutoIt controls have in this area.Since Auto3Lib is now part of the base. I couldn't find a replacement for header_click which I was using in the past. Any recommendations? Thanks in advance Edited July 15, 2008 by pootie tang 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