AutoHotkey Community

It is currently May 27th, 2012, 12:45 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: September 30th, 2005, 5:24 pm 
Offline

Joined: September 30th, 2005, 5:15 pm
Posts: 58
Location: Fort Wayne, IN
I was trying to get the index number of the selected ListBox item. After reading the help file, I tried the following:
Code:
ControlGet, SelectedItemIdx, List, Count Focused, ListBox1, A


Unfortunately, it appears Count Focused only applies to ListViews. The help file didn't make this very clear. Maybe each command/option in the help file should have a comment like "Applies To: ListBox, ComboBox".

Just a suggestion. Thanks for a great tool.

PS: My permanent solution was to use SendMessage, 0x188. I also saw that AltSubmit could be used when creating the ListBox.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2005, 3:03 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I think my dislike of verbose documentation sometimes results in confusing organization and formatting. In this case, I'll change the wording to, "All the text is retrieved from the control (that is, the ListView options above such as Count and Selected are not supported)."

Thanks.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group