AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject:
PostPosted: October 15th, 2011, 6:10 pm 
Offline

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
Lexikos wrote:
Changed GuiControl and GuiControlGet to allow a HWND to be passed in the ControlID parameter.
Does this also mean that other parameters that accept gui variables or ClassNNs (such as Gui, ListView) will work with window handles? Or is the implementation specific to these two commands?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 15th, 2011, 11:59 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Anything which uses GuiType::FindControl() now supports identifying a control by HWND. This includes GuiControl, GuiControlGet and Gui ListView/TreeView.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 16th, 2011, 11:23 am 
Offline

Joined: January 8th, 2007, 1:14 pm
Posts: 83
Lexikos wrote:
Anything which uses GuiType::FindControl() now supports identifying a control by HWND. This includes GuiControl, GuiControlGet and Gui ListView/TreeView.


It might be good idea to change the documentation to include that you can use the HWND directly instead of ClassNN or associated variable. i.e. in help, section "Built-in Functions for ListViews."

Quote:
If the window has more than one ListView control, by default the functions operate upon the one most recently added. To change this, specify Gui, ListView, ListViewName, where ListViewName is the name of the ListView's associated variable or its ClassNN as shown by Window Spy. Once changed, all existing and future threads will use the indicated ListView


Amazing work as usual. Thanks!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot 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