Sign in to follow this  
Followers 0
this-is-me

Click column header of listview in another window

9 posts in this topic

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?

Share this post


Link to post
Share on other sites



Does anyone know of a workaround to allow me to make this happen?


Who else would I be?

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by pootie tang

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0